summaryrefslogtreecommitdiff
path: root/print-fr.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 12:32:00 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-12-09 14:05:25 +0100
commit07ac438e08e5ffed3539e10d78f1cfc7d221d591 (patch)
tree8e07185c1f646ef08c85bbb7d9a075b32e65272f /print-fr.c
parent1cfd6cd2ac8acecbcf16e083a6cd272a19ec994e (diff)
downloadtcpdump-07ac438e08e5ffed3539e10d78f1cfc7d221d591.tar.gz
Use more the EXTRACT_U_1() macro (52/n)
Assignment, p[n]
Diffstat (limited to 'print-fr.c')
-rw-r--r--print-fr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-fr.c b/print-fr.c
index 8c8bf781..cd68ae81 100644
--- a/print-fr.c
+++ b/print-fr.c
@@ -472,8 +472,8 @@ mfr_print(netdissect_options *ndo,
while (tlen>sizeof(struct ie_tlv_header_t)) {
ND_TCHECK2(*tptr, sizeof(struct ie_tlv_header_t));
- ie_type=tptr[0];
- ie_len=tptr[1];
+ ie_type=EXTRACT_U_1(tptr);
+ ie_len=EXTRACT_U_1(tptr + 1);
ND_PRINT((ndo, "\n\tIE %s (%u), length %u: ",
tok2str(mfr_ctrl_ie_values,"Unknown",ie_type),