start the helper from the daemon, end it correctly
[oweals/gnunet.git] / src / vpn / udp.c
1 #include "debug.h"
2 #include "packet.h"
3 #include "udp.h"
4
5 #include "pretty-print.h"
6
7 #include <errno.h>
8 #include <netinet/in.h>
9 #include <netinet/ip.h>
10 #include <stdlib.h>
11 #include <arpa/inet.h>
12 #include <string.h>
13 #include <sys/socket.h>
14 #include <sys/types.h>
15 #include <unistd.h>
16
17 void handle_udp(struct ip6_udp* pkt) {
18         if (ntohs(pkt->data.dpt) == 53) { //TODO check for dadr, too
19                 pkt_printf_ip6dns((struct ip6_udp_dns*)pkt);
20                 return;
21         }
22 }