summaryrefslogtreecommitdiff
path: root/gr-blocks/grc
diff options
context:
space:
mode:
authorPaul Garver <garverp@gatech.edu>2015-01-24 11:32:57 -0500
committerPaul Garver <garverp@gatech.edu>2015-01-24 11:32:57 -0500
commit844d2d76ae994bb051733cb73f0ddaa7175805cb (patch)
treecacc29fead62663bb054486a77db36c6fe703050 /gr-blocks/grc
parent620817ede54bbb89bff449fccfc999c1e6e7887b (diff)
gr-blocks: Make tap/tun configurable, fix GRC spec to be consistent with default flag of IFF_TAP
Diffstat (limited to 'gr-blocks/grc')
-rw-r--r--gr-blocks/grc/blocks_tuntap_pdu.xml18
1 files changed, 16 insertions, 2 deletions
diff --git a/gr-blocks/grc/blocks_tuntap_pdu.xml b/gr-blocks/grc/blocks_tuntap_pdu.xml
index d9a63d4a7f..16e5871b93 100644
--- a/gr-blocks/grc/blocks_tuntap_pdu.xml
+++ b/gr-blocks/grc/blocks_tuntap_pdu.xml
@@ -8,11 +8,11 @@
<name>TUNTAP PDU</name>
<key>blocks_tuntap_pdu</key>
<import>from gnuradio import blocks</import>
- <make>blocks.tuntap_pdu($ifn, $mtu)</make>
+ <make>blocks.tuntap_pdu($ifn, $mtu, $istunflag)</make>
<param>
<name>Interface Name</name>
<key>ifn</key>
- <value>tun0</value>
+ <value>tap0</value>
<type>string</type>
</param>
<param>
@@ -21,6 +21,20 @@
<value>10000</value>
<type>int</type>
</param>
+ <param>
+ <name>Flag</name>
+ <key>istunflag</key>
+ <value>False</value>
+ <type>enum</type>
+ <option>
+ <name>TUN(IP Packet)</name>
+ <key>True</key>
+ </option>
+ <option>
+ <name>TAP(Ethernet Frame)</name>
+ <key>False</key>
+ </option>
+ </param>
<sink>
<name>pdus</name>
<type>message</type>