summaryrefslogtreecommitdiff
path: root/print-ldp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 21:53:35 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-21 22:23:47 +0100
commitcb9b66505924ae735e5ef772a434e72089231076 (patch)
tree47df75adb4f99b60e9ba6755ff2bb9c65de41429 /print-ldp.c
parentfe1c2f0d7fb9221936b0d54a670b9f2eea2b72c4 (diff)
downloadtcpdump-cb9b66505924ae735e5ef772a434e72089231076.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (18/n)
Assignment, *(p op e) Partial list.
Diffstat (limited to 'print-ldp.c')
-rw-r--r--print-ldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ldp.c b/print-ldp.c
index ed176b70..df43da78 100644
--- a/print-ldp.c
+++ b/print-ldp.c
@@ -384,7 +384,7 @@ ldp_tlv_print(netdissect_options *ndo,
* Pseudowire Types.
*/
TLV_TCHECK(7);
- vc_info_len = *(tptr+2);
+ vc_info_len = EXTRACT_8BITS(tptr + 2);
/*
* According to RFC 4908, the VC info Length field can be zero,
@@ -422,7 +422,7 @@ ldp_tlv_print(netdissect_options *ndo,
while (vc_info_len > 2) {
vc_info_tlv_type = *tptr;
- vc_info_tlv_len = *(tptr+1);
+ vc_info_tlv_len = EXTRACT_8BITS(tptr + 1);
if (vc_info_tlv_len < 2)
break;
if (vc_info_len < vc_info_tlv_len)