X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/7885cfa165458a05ef818c34ee03affc79f03725..a797c3a0b9df2b4c1a6e3bc4c5122f1f9b81bb5b:/print-ipnet.c diff --git a/print-ipnet.c b/print-ipnet.c index f958d42c..ba1e7005 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);