Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Quagga: Dev
[PATCH 5/6] lib: remove sockunion related unused definitions
 

Index | Next | Previous | View Flat


jorge at dti2

Apr 10, 2012, 7:57 AM


Views: 212
Permalink
[PATCH 5/6] lib: remove sockunion related unused definitions

From: "Jorge Boncompte [DTI2]" <jorge [at] dti2>

Signed-off-by: Jorge Boncompte [DTI2] <jorge [at] dti2>
---
lib/sockunion.h | 7 -------
1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/lib/sockunion.h b/lib/sockunion.h
index 180b2b4..1a0a3c9 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);
--
1.7.8.3


_______________________________________________
Quagga-dev mailing list
Quagga-dev [at] lists
http://lists.quagga.net/mailman/listinfo/quagga-dev

Subject User Time
[PATCH 5/6] lib: remove sockunion related unused definitions jorge at dti2 Apr 10, 2012, 7:57 AM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.