X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b7b72b7c6335fb22b712688b144a538be4ae96e9..37800b45d586bcf7bb0a1e00ac46a69240614f0b:/print-ip.c diff --git a/print-ip.c b/print-ip.c index a77bfce8..f4c5fae8 100644 --- a/print-ip.c +++ b/print-ip.c @@ -470,7 +470,9 @@ ip_print(netdissect_options *ndo, ND_PRINT("%s > %s: ", ipaddr_string(ndo, ip->ip_src), ipaddr_string(ndo, ip->ip_dst)); - goto trunc; + nd_print_trunc(ndo); + nd_pop_packet_info(ndo); + return; } } @@ -517,14 +519,13 @@ ip_print(netdissect_options *ndo, trunc: nd_print_trunc(ndo); - nd_pop_packet_info(ndo); return; } void ipN_print(netdissect_options *ndo, const u_char *bp, u_int length) { - ndo->ndo_protocol = "ipN"; + ndo->ndo_protocol = "ipn"; if (length < 1) { ND_PRINT("truncated-ip %u", length); return;