diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sockunion.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/sockunion.h b/lib/sockunion.h index 180b2b4d..1a0a3c95 100644 --- a/lib/sockunion.h +++ b/lib/sockunion.h @@ -78,12 +78,6 @@ enum connect_result #define SET_IN6_LINKLOCAL_IFINDEX(a, i) #endif /* KAME */ -/* shortcut macro to specify address field of struct sockaddr */ -#define sock2ip(X) (((struct sockaddr_in *)(X))->sin_addr.s_addr) -#ifdef HAVE_IPV6 -#define sock2ip6(X) (((struct sockaddr_in6 *)(X))->sin6_addr.s6_addr) -#endif /* HAVE_IPV6 */ - #define sockunion_family(X) (X)->sa.sa_family #define sockunion2ip(X) (X)->sin.sin_addr.s_addr @@ -94,7 +88,6 @@ extern const char *sockunion2str (union sockunion *, char *, size_t); extern int sockunion_cmp (union sockunion *, union sockunion *); extern int sockunion_same (union sockunion *, union sockunion *); -extern struct in_addr sockunion_get_in_addr (union sockunion *su); extern int sockunion_accept (int sock, union sockunion *); extern int sockunion_stream_socket (union sockunion *); extern int sockopt_reuseaddr (int); |