diff options
author | sam <sam@FreeBSD.org> | 2005-05-29 18:17:16 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2005-05-29 18:17:16 +0000 |
commit | 88a191f109e4bbf287e317e4115185aa904a7757 (patch) | |
tree | d59cebde657eda0af31fdab513367f5ad61113cd /contrib/tcpdump/print-ripng.c | |
parent | 281e9d71408deb6e8c5046c746c2e97002b0e7fe (diff) | |
download | FreeBSD-src-88a191f109e4bbf287e317e4115185aa904a7757.zip FreeBSD-src-88a191f109e4bbf287e317e4115185aa904a7757.tar.gz |
Virgin import of tcpdump v3.9.1 (alpha 096) from tcpdump.org
Diffstat (limited to 'contrib/tcpdump/print-ripng.c')
-rw-r--r-- | contrib/tcpdump/print-ripng.c | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/contrib/tcpdump/print-ripng.c b/contrib/tcpdump/print-ripng.c index 3432207..5e7a02e 100644 --- a/contrib/tcpdump/print-ripng.c +++ b/contrib/tcpdump/print-ripng.c @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ripng.c,v 1.15.2.2 2003/11/16 08:51:42 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ripng.c,v 1.18 2005/01/04 00:15:54 guy Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -31,22 +31,6 @@ static const char rcsid[] _U_ = #ifdef INET6 #include <tcpdump-stdinc.h> - -#ifdef WIN32 -const struct in6_addr in6addr_any; /* :: */ -#endif /* WIN32 */ - -#ifdef __MINGW32__ -int -IN6_ADDR_EQUAL(const struct in6_addr *a, const struct in6_addr *b) -{ - return (memcmp(a, b, sizeof(struct in6_addr)) == 0); -} - -#define IN6_IS_ADDR_UNSPECIFIED(a) IN6_ADDR_EQUAL((a), &in6addr_any) - -#endif /* __MINGW32__ */ - #include <stdio.h> #include "route6d.h" @@ -54,6 +38,14 @@ IN6_ADDR_EQUAL(const struct in6_addr *a, const struct in6_addr *b) #include "addrtoname.h" #include "extract.h" +#if !defined(IN6_IS_ADDR_UNSPECIFIED) && !defined(_MSC_VER) /* MSVC inline */ +static int IN6_IS_ADDR_UNSPECIFIED(const struct in6_addr *addr) +{ + static const struct in6_addr in6addr_any; /* :: */ + return (memcmp(addr, &in6addr_any, sizeof(*addr)) == 0); +} +#endif + static int rip6_entry_print(register const struct netinfo6 *ni, int metric) { |