34 #include "contiki-net.h"
42 #include "tapdev-drv.h"
44 #define BUF ((struct uip_eth_hdr *)&uip_buf[0])
45 #define IPBUF ((struct uip_tcpip_hdr *)&uip_buf[UIP_LLH_LEN])
47 PROCESS(tapdev_process,
"TAP driver");
68 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IPV6)) {
72 if(BUF->type ==
uip_htons(UIP_ETHTYPE_IP)) {
75 }
else if(BUF->type ==
uip_htons(UIP_ETHTYPE_ARP)) {
76 #if !UIP_CONF_IPV6 //math
99 tcpip_set_outputfunc(tapdev_output);
101 tcpip_set_outputfunc(tapdev_send);