mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2024-11-28 12:33:47 +08:00
From Florent Drouin: don't call ip6addr_string() if IPv4 isn't enabled.
This commit is contained in:
parent
8a905570c7
commit
2f7795dba5
1
CREDITS
1
CREDITS
@ -44,6 +44,7 @@ Additional people who have contributed patches:
|
||||
David Young <dyoung@ojctech.com>
|
||||
Don Ebright <Don.Ebright@compuware.com>
|
||||
Eddie Kohler <xexd@sourceforge.net>
|
||||
Florent Drouin <Florent.Drouin@alcatel-lucent.fr>
|
||||
Francis Dupont <Francis.Dupont@enst-bretagne.fr>
|
||||
Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
|
||||
Frank Volf <volf@oasis.IAEhv.nl>
|
||||
|
@ -19,7 +19,7 @@
|
||||
|
||||
#ifndef lint
|
||||
static const char rcsid[] _U_ =
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-cfm.c,v 1.3 2006-10-29 23:10:07 hannes Exp $";
|
||||
"@(#) $Header: /tcpdump/master/tcpdump/print-cfm.c,v 1.4 2007-02-01 02:28:38 guy Exp $";
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
@ -260,9 +260,11 @@ cfm_mgmt_addr_print(register const u_char *tptr) {
|
||||
printf(", %s", ipaddr_string(tptr + 1));
|
||||
break;
|
||||
|
||||
#ifdef INET6
|
||||
case AFNUM_INET6:
|
||||
printf(", %s", ip6addr_string(tptr + 1));
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
hexdump = TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user