From 96c60029b3f935eff892d1f49b52f305423e4671 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Le Bail Date: Tue, 14 Jul 2020 17:32:55 +0200 Subject: Rename a field of the netdissect_options structure --- print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'print.c') diff --git a/print.c b/print.c index a7f006f9..9c4eef55 100644 --- a/print.c +++ b/print.c @@ -461,18 +461,18 @@ pretty_print_packet(netdissect_options *ndo, const struct pcap_pkthdr *h, ndo->ndo_snapend = sp + h->caplen; ndo->ndo_protocol = ""; - ndo->ndo_ll_header_length = 0; + ndo->ndo_ll_hdr_len = 0; if (setjmp(ndo->ndo_truncated) == 0) { /* Print the packet. */ if (ndo->ndo_void_printer == TRUE) { (ndo->ndo_if_printer.void_printer)(ndo, h, sp); - hdrlen = ndo->ndo_ll_header_length; + hdrlen = ndo->ndo_ll_hdr_len; } else hdrlen = (ndo->ndo_if_printer.uint_printer)(ndo, h, sp); } else { /* A printer quit because the packet was truncated; report it */ ND_PRINT(" [|%s]", ndo->ndo_protocol); - hdrlen = ndo->ndo_ll_header_length; + hdrlen = ndo->ndo_ll_hdr_len; } /* -- cgit v1.2.1