X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/b751376719cfe1924aa07ab8fd364ec1a55c04b3..10ac80fdecfa9b9b7d259d8f50d0b72ef1b18f12:/print-ipnet.c diff --git a/print-ipnet.c b/print-ipnet.c index f958d42c..0f745d70 100644 --- a/print-ipnet.c +++ b/print-ipnet.c @@ -66,11 +66,11 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen const ipnet_hdr_t *hdr; if (caplen < sizeof(ipnet_hdr_t)) { - ndo->ndo_ll_header_length += caplen; + ndo->ndo_ll_hdr_len += caplen; nd_print_trunc(ndo); return; } - ndo->ndo_ll_header_length += sizeof(ipnet_hdr_t); + ndo->ndo_ll_hdr_len += sizeof(ipnet_hdr_t); if (ndo->ndo_eflag) ipnet_hdr_print(ndo, p, length); @@ -99,7 +99,6 @@ ipnet_print(netdissect_options *ndo, const u_char *p, u_int length, u_int caplen ND_DEFAULTPRINT(p, caplen); break; } - return; } /*