#ifndef lint
static const char rcsid[] _U_ =
- "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.44 2004-07-16 14:06:00 hannes Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/print-ip6.c,v 1.47 2005-04-06 21:32:40 mcr Exp $";
#endif
#ifdef HAVE_CONFIG_H
TCHECK(*ip6);
if (length < sizeof (struct ip6_hdr)) {
- (void)printf("truncated-ip6 %d", length);
+ (void)printf("truncated-ip6 %u", length);
return;
}
payload_len = EXTRACT_16BITS(&ip6->ip6_plen);
len = payload_len + sizeof(struct ip6_hdr);
if (length < len)
- (void)printf("truncated-ip6 - %d bytes missing!",
+ (void)printf("truncated-ip6 - %u bytes missing!",
len - length);
if (vflag) {
(void)printf("flowlabel 0x%05x, ", flow & 0x000fffff);
#endif
- (void)printf("hlim %u, next-header: %s (%u), payload-len %u) ",
+ (void)printf("hlim %u, next-header: %s (%u), length: %u) ",
ip6->ip6_hlim,
tok2str(ipproto_values,"unknown",ip6->ip6_nxt),
ip6->ip6_nxt,
return;
case IPPROTO_IPV4:
- ip_print(cp, len);
+ ip_print(gndo, cp, len);
return;
case IPPROTO_NONE: