X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/64e8f9a9ed91a3cbfa8e66367f87ef50a1d62b99..0a8c146f78c1cc40f5284ae2dcc52415c5938d49:/print-null.c diff --git a/print-null.c b/print-null.c index f2ea96e2..dea50ac2 100644 --- a/print-null.c +++ b/print-null.c @@ -83,11 +83,11 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char ndo->ndo_protocol = "null"; if (caplen < NULL_HDRLEN) { - ndo->ndo_ll_header_length += caplen; + ndo->ndo_ll_hdr_len += caplen; nd_print_trunc(ndo); return; } - ndo->ndo_ll_header_length += NULL_HDRLEN; + ndo->ndo_ll_hdr_len += NULL_HDRLEN; family = GET_HE_U_4(p); @@ -140,6 +140,4 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char if (!ndo->ndo_suppress_default_print) ND_DEFAULTPRINT(p, caplen); } - - return; }