summaryrefslogtreecommitdiff
path: root/src/udp.h
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2010-11-29 00:03:24 +0000
committerChristian Pointner <equinox@anytun.org>2010-11-29 00:03:24 +0000
commitce924463fef1159f0ed7f0077aea473f355584a0 (patch)
tree61186909914f5fd650f043ee00e3e6f8ac2dc63b /src/udp.h
parentfixed bugged in udp_endpoint_to_string (diff)
added length field to udp_endpoint_t
replaced inet_ntop with getnameinfo at udp_endpoint_to_string
Diffstat (limited to 'src/udp.h')
-rw-r--r--src/udp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/udp.h b/src/udp.h
index edf0160..4c5fdc8 100644
--- a/src/udp.h
+++ b/src/udp.h
@@ -41,7 +41,10 @@
#include <sys/types.h>
#include <sys/socket.h>
-typedef struct sockaddr_storage udp_endpoint_t;
+typedef struct {
+ socklen_t len_;
+ struct sockaddr_storage addr_;
+} udp_endpoint_t;
struct udp_socket_struct {
int fd_;