diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-14 17:32:55 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2020-07-14 17:35:57 +0200 |
commit | 96c60029b3f935eff892d1f49b52f305423e4671 (patch) | |
tree | 3d60127807622e2c8ab68dd27a196f26a583afe7 /print.c | |
parent | 073fea9c9042a42d5602336cac51409d131eb2ab (diff) | |
download | tcpdump-96c60029b3f935eff892d1f49b52f305423e4671.tar.gz |
Rename a field of the netdissect_options structure
Diffstat (limited to 'print.c')
-rw-r--r-- | print.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; } /* |