diff options
author | Christian Pointner <equinox@anytun.org> | 2010-11-29 00:03:24 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2010-11-29 00:03:24 +0000 |
commit | ce924463fef1159f0ed7f0077aea473f355584a0 (patch) | |
tree | 61186909914f5fd650f043ee00e3e6f8ac2dc63b /src/udp.h | |
parent | fixed 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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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_; |