From: guy Date: Sun, 22 Jul 2007 02:42:53 +0000 (+0000) Subject: From Francois-Xavier Le Bail: #ifdef INET6-out some code that only X-Git-Tag: tcpdump-4.0.0~119 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/c69047c1ecd3a0a3f900fc83fb2dd369144213df?ds=sidebyside From Francois-Xavier Le Bail: #ifdef INET6-out some code that only builds if the platform supports IPv6. --- diff --git a/CREDITS b/CREDITS index fe396cd5..9d6b0113 100644 --- a/CREDITS +++ b/CREDITS @@ -47,6 +47,7 @@ Additional people who have contributed patches: Florent Drouin Francis Dupont Francisco Matias Cuenca-Acuna + Francois-Xavier Le Bail Frank Volf Fulvio Risso George Bakos diff --git a/print-bgp.c b/print-bgp.c index 0bbdb40a..92552e53 100644 --- a/print-bgp.c +++ b/print-bgp.c @@ -36,7 +36,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.114 2007-07-14 22:24:54 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-bgp.c,v 1.115 2007-07-22 02:42:53 guy Exp $"; #endif #include @@ -544,10 +544,12 @@ bgp_vpn_ip_print (const u_char *pptr, u_int addr_length) { TCHECK2(pptr[0], sizeof(struct in_addr)); snprintf(pos, sizeof(addr), "%s", ipaddr_string(pptr)); break; +#ifdef INET6 case (sizeof(struct in6_addr) << 3): /* 128 */ TCHECK2(pptr[0], sizeof(struct in6_addr)); snprintf(pos, sizeof(addr), "%s", ip6addr_string(pptr)); break; +#endif default: snprintf(pos, sizeof(addr), "bogus address length %u", addr_length); break;