summaryrefslogtreecommitdiff
path: root/print-rsvp.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-19 12:54:25 +0100
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2017-11-19 12:54:25 +0100
commitb9be0f83864ab392c2b1ac25a79aa39c263a7094 (patch)
tree7bbb88a2925bb22a5a84faabc6e3cff035d5704d /print-rsvp.c
parent518768cf72d47710479aab64508dc78422128999 (diff)
downloadtcpdump-b9be0f83864ab392c2b1ac25a79aa39c263a7094.tar.gz
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
In bittok2str() calls.
Diffstat (limited to 'print-rsvp.c')
-rw-r--r--print-rsvp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/print-rsvp.c b/print-rsvp.c
index 3689b77e..368aa904 100644
--- a/print-rsvp.c
+++ b/print-rsvp.c
@@ -1103,7 +1103,7 @@ rsvp_obj_print(netdissect_options *ndo,
*(obj_tptr+6),
bittok2str(rsvp_obj_rro_flag_values,
"none",
- *(obj_tptr + 7)))); /* rfc3209 says that this field is rsvd. */
+ EXTRACT_8BITS((obj_tptr + 7))))); /* rfc3209 says that this field is rsvd. */
break;
case RSVP_OBJ_XRO_LABEL:
if (length != 8) {
@@ -1114,7 +1114,7 @@ rsvp_obj_print(netdissect_options *ndo,
ND_PRINT((ndo, ", Flags: [%s] (%#x), Class-Type: %s (%u), %u",
bittok2str(rsvp_obj_rro_label_flag_values,
"none",
- *(obj_tptr+2)),
+ EXTRACT_8BITS((obj_tptr + 2))),
*(obj_tptr+2),
tok2str(rsvp_ctype_values,
"Unknown",
@@ -1183,7 +1183,7 @@ rsvp_obj_print(netdissect_options *ndo,
(int)*(obj_tptr+1),
bittok2str(rsvp_session_attribute_flag_values,
"none",
- *(obj_tptr+2)),
+ EXTRACT_8BITS((obj_tptr + 2))),
*(obj_tptr + 2)));
obj_tlen-=4+*(obj_tptr+3);
obj_tptr+=4+*(obj_tptr+3);