3 #include <sys/socket.h>
11 int main(int c, char** v) {
12 //char* dev = (char*) malloc(IFNAMSIZ);
14 int fd = init_tun(dev);
16 debug(1, 0, "Initialized the interface %s.\n", dev);
20 printf("read %d bytes from socket, now to parse'em\n", recv_pkt(fd, &pkt));
22 struct ip6_pkt* pkt6 = parse_ip6(pkt);