summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJorge Boncompte [DTI2] <jorge@dti2.net>2012-04-10 16:57:26 +0200
committerDavid Lamparter <equinox@diac24.net>2012-05-02 17:03:34 +0200
commit37beff6feb7c1715a19b59b8a87edcb6b50d5ac2 (patch)
treec36dd44b545b5ecc093f2dd37ba78c891eb41a22 /lib
parent128293286a8be01b99ed60db53e19ce6e2669558 (diff)
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')
-rw-r--r--lib/sockunion.h7
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);