diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2014-02-16 01:42:21 -0500 |
---|---|---|
committer | Tom Rondeau <tom@trondeau.com> | 2014-02-16 14:35:22 -0500 |
commit | 7f57cf7d5011ad33dfee1bbd2dcd31499ab40bf0 (patch) | |
tree | 7a80b44887aad2cf2949e89b151256a9fb7661f1 /gr-blocks/grc | |
parent | 246ec97757c69d5296ebf56a273bf8e0e782a0b4 (diff) |
blocks: random_pdu (allow specifying the length modulo for random pdu lengths)
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r-- | gr-blocks/grc/blocks_random_pdu.xml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gr-blocks/grc/blocks_random_pdu.xml b/gr-blocks/grc/blocks_random_pdu.xml index bd484d05d2..a70fa7fbf7 100644 --- a/gr-blocks/grc/blocks_random_pdu.xml +++ b/gr-blocks/grc/blocks_random_pdu.xml @@ -9,7 +9,7 @@ <key>blocks_random_pdu</key> <import>from gnuradio import blocks</import> <import>import pmt</import> - <make>blocks.random_pdu($minsize, $maxsize, chr($mask))</make> + <make>blocks.random_pdu($minsize, $maxsize, chr($mask), $length_modulo)</make> <param> <name>Min Bytes</name> <key>minsize</key> @@ -28,6 +28,12 @@ <value>0xFF</value> <type>int</type> </param> + <param> + <name>Length Modulo</name> + <key>length_modulo</key> + <value>2</value> + <type>int</type> + </param> <sink> <name>generate</name> <type>message</type> |