summaryrefslogtreecommitdiff
path: root/print.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-14 17:32:55 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2020-07-14 17:35:57 +0200
commit96c60029b3f935eff892d1f49b52f305423e4671 (patch)
tree3d60127807622e2c8ab68dd27a196f26a583afe7 /print.c
parent073fea9c9042a42d5602336cac51409d131eb2ab (diff)
downloadtcpdump-96c60029b3f935eff892d1f49b52f305423e4671.tar.gz
Rename a field of the netdissect_options structure
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 3 insertions, 3 deletions
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;
}
/*