#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.120 2003-08-06 06:49:40 guy Exp $ (LBL)";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.121 2003-09-12 22:05:57 guy Exp $ (LBL)";
#endif
#ifdef HAVE_CONFIG_H
break;
case PT_AODV:
- (void)printf("%s.%s > %s.%s: ",
- ipaddr_string(&ip->ip_src),
- udpport_string(sport),
- ipaddr_string(&ip->ip_dst),
- udpport_string(dport));
+ udpipaddr_print(ip, sport, dport);
+ aodv_print((const u_char *)(up + 1), length,
#ifdef INET6
- aodv_print((void *)(up + 1), length, (void *) ip6);
+ ip6 != NULL);
#else
- aodv_print((void *)(up + 1), length, NULL);
+ FALSE);
#endif
break;
}
else if (ISPORT(RIP_PORT))
rip_print((const u_char *)(up + 1), length);
else if (ISPORT(AODV_PORT))
+ aodv_print((const u_char *)(up + 1), length,
#ifdef INET6
- aodv_print((const u_char *)(up + 1), length, (void *) ip6);
+ ip6 != NULL);
#else
- aodv_print((const u_char *)(up + 1), length, NULL);
+ FALSE);
#endif
else if (ISPORT(ISAKMP_PORT))
isakmp_print((const u_char *)(up + 1), length, bp2);