From: guy Date: Fri, 12 May 2006 02:10:21 +0000 (+0000) Subject: From Don Ebright: fix a place where we were referring to AF_INET6 even X-Git-Tag: tcpdump-4.0.0~223 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/df7c862246f5fd92d04913bb4f86ac127df004d9 From Don Ebright: fix a place where we were referring to AF_INET6 even when INET6 wasn't defined. --- diff --git a/print-isoclns.c b/print-isoclns.c index 570faf8e..81bbab16 100644 --- a/print-isoclns.c +++ b/print-isoclns.c @@ -26,7 +26,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.158 2006-04-14 07:12:46 hannes Exp $ (LBL)"; + "@(#) $Header: /tcpdump/master/tcpdump/print-isoclns.c,v 1.159 2006-05-12 02:10:21 guy Exp $ (LBL)"; #endif #ifdef HAVE_CONFIG_H @@ -1726,8 +1726,11 @@ isis_print_extd_ip_reach (const u_int8_t *tptr, const char *ident, u_int16_t afi ISIS_MASK_TLV_EXTD_IP6_SUBTLV(status_byte) ? ", sub-TLVs present" : ""); #endif - if ((ISIS_MASK_TLV_EXTD_IP_SUBTLV(status_byte) && afi == AF_INET) || - (ISIS_MASK_TLV_EXTD_IP6_SUBTLV(status_byte) && afi == AF_INET6)) { + if ((afi == AF_INET && ISIS_MASK_TLV_EXTD_IP_SUBTLV(status_byte)) +#ifdef INET6 + || (afi == AF_INET6 && ISIS_MASK_TLV_EXTD_IP6_SUBTLV(status_byte)) +#endif + ) { /* assume that one prefix can hold more than one subTLV - therefore the first byte must reflect the aggregate bytecount of the subTLVs for this prefix