of address from the way it's printed.)
#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.46 2005-04-20 22:05:08 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-pim.c,v 1.47 2005-04-20 22:08:27 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
pimv2_addr_print(const u_char *bp, enum pimv2_addrtype at, int silent)
{
int af;
- const char *afstr;
int len, hdrlen;
TCHECK(bp[0]);
switch (bp[0]) {
case 1:
af = AF_INET;
- afstr = "IPv4";
len = 4;
break;
#ifdef INET6
case 2:
af = AF_INET6;
- afstr = "IPv6";
len = 16;
break;
#endif
switch (pimv2_addr_len) {
case 4:
af = AF_INET;
- afstr = "IPv4";
break;
#ifdef INET6
case 16:
af = AF_INET6;
- afstr = "IPv6";
break;
#endif
default: