Mercurial > hg > quicktun
comparison src/common.c @ 8:6d86596d8884
Fixed BSD support, improved randombytes/secret key generation
author | ivo <Ivo@UCIS.nl> |
---|---|
date | Thu, 14 Oct 2010 02:15:55 +0200 |
parents | fd7c60905b13 |
children | 640f620a55cf |
comparison
equal
deleted
inserted
replaced
7:fd7c60905b13 | 8:6d86596d8884 |
---|---|
29 #include <fcntl.h> | 29 #include <fcntl.h> |
30 #ifndef HAVE_NETINET_IN_H | 30 #ifndef HAVE_NETINET_IN_H |
31 #include <netinet/in.h> | 31 #include <netinet/in.h> |
32 #endif | 32 #endif |
33 #include <sys/ioctl.h> | 33 #include <sys/ioctl.h> |
34 #include <net/if.h> | |
35 #include <sys/socket.h> | 34 #include <sys/socket.h> |
36 #include <poll.h> | 35 #include <poll.h> |
37 #include <netdb.h> | 36 #include <netdb.h> |
38 #include <stdlib.h> | 37 #include <stdlib.h> |
38 #include <net/if.h> | |
39 #ifdef linux | 39 #ifdef linux |
40 #include <linux/if_tun.h> | 40 #include <linux/if_tun.h> |
41 #include <linux/if_ether.h> | 41 #include <linux/if_ether.h> |
42 #else | 42 #else |
43 #define ETH_FRAME_LEN 1514 | 43 #define ETH_FRAME_LEN 1514 |