X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f123049cd05b06b73b21bb4844a66435edf0bbb3..6405d334cf6a878b74d3d71446df38b96c816fe2:/print-ldp.c diff --git a/print-ldp.c b/print-ldp.c index a3e7a2dc..c8bec135 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -16,7 +16,7 @@ #ifndef lint static const char rcsid[] _U_ = - "@(#) $Header: /tcpdump/master/tcpdump/print-ldp.c,v 1.14 2005-06-16 01:10:21 guy Exp $"; + "@(#) $Header: /tcpdump/master/tcpdump/print-ldp.c,v 1.15 2005-07-11 20:15:32 hannes Exp $"; #endif #ifdef HAVE_CONFIG_H @@ -302,7 +302,7 @@ ldp_tlv_print(register const u_char *tptr) { printf("IPv4, addresses:"); for (i=0; i<(tlv_tlen-2)/4; i++) { printf(" %s",ipaddr_string(tptr)); - tptr+=4; + tptr+=sizeof(struct in_addr); } } #ifdef INET6 @@ -310,7 +310,7 @@ ldp_tlv_print(register const u_char *tptr) { printf("IPv6, addresses:"); for (i=0; i<(tlv_tlen-2)/16; i++) { printf(" %s",ip6addr_string(tptr)); - tptr+=16; + tptr+=sizeof(struct in6_addr); } } #endif