Skip to content
Browse files

set optional tag on tuntap and socket msg ports

  • Loading branch information...
1 parent 0ead95c commit bec0ec52b51e6375b4a29f969f5a1d960be40ea4 @guruofquality committed Oct 3, 2012
Showing with 8 additions and 1 deletion.
  1. +2 −0 grc/extras_socket_msg.xml
  2. +2 −0 grc/extras_tuntap.xml
  3. +3 −0 include/gnuradio/extras/tuntap.h
  4. +1 −1 python/pmt_rpc.py
View
2 grc/extras_socket_msg.xml
@@ -38,9 +38,11 @@
<sink>
<name>in</name>
<type></type>
+ <optional>1</optional>
</sink>
<source>
<name>out</name>
<type></type>
+ <optional>1</optional>
</source>
</block>
View
2 grc/extras_tuntap.xml
@@ -20,9 +20,11 @@
<sink>
<name>in</name>
<type></type>
+ <optional>1</optional>
</sink>
<source>
<name>out</name>
<type></type>
+ <optional>1</optional>
</source>
</block>
View
3 include/gnuradio/extras/tuntap.h
@@ -37,6 +37,9 @@ class GR_EXTRAS_API tuntap : virtual public gr_hier_block2{
* Use the Universal TUN/TAP device driver to move packets to/from kernel
* See /usr/src/linux/Documentation/networking/tuntap.txt
*
+ * Tuntap should not be used to create a MAC layer!
+ * https://en.wikipedia.org/wiki/Transmission_Control_Protocol#TCP_over_wireless_networks
+ *
* \param dev the device name (depends on os, blank for automatic)
* \return a new TUN/TAP interface block
*/
View
2 python/pmt_rpc.py
@@ -58,7 +58,7 @@ def __init__(self, obj, result_msg = True):
name = "pmt rpc",
in_sig = None,
out_sig = None,
- has_msg_input=True,
+ num_msg_inputs=1,
num_msg_outputs = 1 if result_msg else 0,
)

0 comments on commit bec0ec5

Please sign in to comment.
Something went wrong with that request. Please try again.