summaryrefslogtreecommitdiff
path: root/grc/blocks/gr_random_pdu.xml
blob: ed5a79a9249e4355a8d968b33fdda6d7cf52ecfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0"?>
<!--
###################################################
## Random PDU
###################################################
 -->
<block>
	<name>Random PDU Generator</name>
	<key>gr_random_pdu</key>
	<import>from gnuradio import gr</import>
	<import>from gruel import pmt</import>
	<make>gr.random_pdu($minsize, $maxsize)</make>
	<param>
		<name>Min Bytes</name>
		<key>minsize</key>
		<value>50</value>
		<type>int</type>
	</param>
	<param>
		<name>Max Bytes</name>
		<key>maxsize</key>
		<value>2000</value>
		<type>int</type>
	</param>
	<sink>
		<name>generate</name>
		<type>message</type>
        <optional>1</optional>
	</sink>
	<source>
		<name>pdus</name>
		<type>message</type>
        <optional>1</optional>
	</source>
</block>