X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/9d046ee0503d4c8cbfcb200c88986de876f6cae7..1a9542cfd1f59a329e8cb32fb1737e7c8a11ecd2:/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; } /*