3 #include <sys/socket.h>
5 #include <linux/ioctl.h>
6 #include <linux/if_tun.h>
11 printf("ETH_P_ALL = 0x%08x\n", ETH_P_ALL);
12 printf("ETH_P_IP = 0x%08x\n", ETH_P_IP);
13 printf("TUNSETIFF = 0x%08x\n", TUNSETIFF);
14 printf("IFF_NO_PI = 0x%08x\n", IFF_NO_PI);
15 printf("IFF_TAP = 0x%08x\n", IFF_TAP);
16 printf("IFF_TUN = 0x%08x\n", IFF_TUN);
17 printf("IFF_VNET_HDR = 0x%08x\n", IFF_VNET_HDR);
18 printf("TUN_PKT_STRIP = 0x%08x\n", TUN_PKT_STRIP);
19 printf("IFHWADDRLEN = 0x%08x\n", IFHWADDRLEN);
20 printf("IFNAMSIZ = 0x%08x\n", IFNAMSIZ);
21 printf("IFREQ_SZ = 0x%08x\n", sizeof(struct ifreq));
22 printf("FIONREAD = 0x%08x\n", FIONREAD);