<?xml version="1.0"?>
<!--
###################################################
## TUNTAP PDU async message source/sink
###################################################
 -->
<block>
  <name>TUNTAP PDU</name>
  <key>blocks_tuntap_pdu</key>
  <import>from gnuradio import blocks</import>
  <make>blocks.tuntap_pdu($ifn, $mtu, $istunflag)</make>
  <param>
    <name>Interface Name</name>
    <key>ifn</key>
    <value>tap0</value>
    <type>string</type>
  </param>
  <param>
    <name>MTU</name>
    <key>mtu</key>
    <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>
    <optional>1</optional>
  </sink>
  <source>
    <name>pdus</name>
    <type>message</type>
    <optional>1</optional>
  </source>
</block>
