diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2012-04-10 16:57:26 +0200 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2012-05-02 17:03:34 +0200 |
commit | 37beff6feb7c1715a19b59b8a87edcb6b50d5ac2 (patch) | |
tree | c36dd44b545b5ecc093f2dd37ba78c891eb41a22 /lib/sockunion.h | |
parent | lib, zebra: extend use of sockunion2ip macro (diff) | |
download | frr-37beff6feb7c1715a19b59b8a87edcb6b50d5ac2.tar.xz frr-37beff6feb7c1715a19b59b8a87edcb6b50d5ac2.zip |
lib: remove sockunion related unused definitions
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net>
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/sockunion.h')
-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 180b2b4d2..1a0a3c95c 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); |