diff options
author | Christian Pointner <equinox@anytun.org> | 2008-12-29 18:48:39 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2008-12-29 18:48:39 +0000 |
commit | 7a3cf1eeed77e6918c04cc913cd6d7602eeb090a (patch) | |
tree | 309dd9d4a56771cfb27664d0f81253dda7ac1c3d /src/udp.h | |
parent | added bsd tun device (diff) |
works on OpenBSD now (but no support for UDPv6)
Diffstat (limited to 'src/udp.h')
-rw-r--r-- | src/udp.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -38,7 +38,13 @@ #include <sys/types.h> #include <sys/socket.h> +#ifdef NO_UDPV6 +#include <netinet/in.h> +typedef struct sockaddr_in udp_endpoint_t; +#else typedef struct sockaddr_storage udp_endpoint_t; +#endif + struct udp_socket_struct { int fd_; udp_endpoint_t local_end_; |