summaryrefslogtreecommitdiff
path: root/print-ppi.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-ppi.c
parent073fea9c9042a42d5602336cac51409d131eb2ab (diff)
downloadtcpdump-96c60029b3f935eff892d1f49b52f305423e4671.tar.gz
Rename a field of the netdissect_options structure
Diffstat (limited to 'print-ppi.c')
-rw-r--r--print-ppi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/print-ppi.c b/print-ppi.c
index 97754265..17fd9833 100644
--- a/print-ppi.c
+++ b/print-ppi.c
@@ -79,7 +79,7 @@ ppi_if_print(netdissect_options *ndo,
ndo->ndo_protocol = "ppi";
if (caplen < sizeof(ppi_header_t)) {
nd_print_trunc(ndo);
- ndo->ndo_ll_header_length += caplen;
+ ndo->ndo_ll_hdr_len += caplen;
return;
}
@@ -90,7 +90,7 @@ ppi_if_print(netdissect_options *ndo,
ND_PRINT(" [length %u < %zu or > 65532]", len,
sizeof(ppi_header_t));
nd_print_invalid(ndo);
- ndo->ndo_ll_header_length += caplen;
+ ndo->ndo_ll_hdr_len += caplen;
return;
}
if (caplen < len) {
@@ -99,7 +99,7 @@ ppi_if_print(netdissect_options *ndo,
* bother.
*/
nd_print_trunc(ndo);
- ndo->ndo_ll_header_length += caplen;
+ ndo->ndo_ll_hdr_len += caplen;
return;
}
dlt = GET_LE_U_4(hdr->ppi_dlt);
@@ -118,7 +118,7 @@ ppi_if_print(netdissect_options *ndo,
nhdr.len = length;
if (ndo->ndo_void_printer == TRUE) {
printer.void_printer(ndo, &nhdr, p);
- hdrlen = ndo->ndo_ll_header_length;
+ hdrlen = ndo->ndo_ll_hdr_len;
} else
hdrlen = printer.uint_printer(ndo, &nhdr, p);
} else {
@@ -129,7 +129,7 @@ ppi_if_print(netdissect_options *ndo,
ND_DEFAULTPRINT(p, caplen);
hdrlen = 0;
}
- ndo->ndo_ll_header_length += len + hdrlen;
+ ndo->ndo_ll_hdr_len += len + hdrlen;
return;
}
#endif /* DLT_PPI */