summaryrefslogtreecommitdiff
path: root/src/udp.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-12-29 18:48:39 +0000
committerChristian Pointner <equinox@anytun.org>2008-12-29 18:48:39 +0000
commit7a3cf1eeed77e6918c04cc913cd6d7602eeb090a (patch)
tree309dd9d4a56771cfb27664d0f81253dda7ac1c3d /src/udp.h
parentadded bsd tun device (diff)
works on OpenBSD now (but no support for UDPv6)
Diffstat (limited to 'src/udp.h')
-rw-r--r--src/udp.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/udp.h b/src/udp.h
index 4873483..7bddf15 100644
--- a/src/udp.h
+++ b/src/udp.h
@@ -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_;