diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-19 12:54:25 +0100 |
commit | b9be0f83864ab392c2b1ac25a79aa39c263a7094 (patch) | |
tree | 7bbb88a2925bb22a5a84faabc6e3cff035d5704d /print-ldp.c | |
parent | 518768cf72d47710479aab64508dc78422128999 (diff) | |
download | tcpdump-b9be0f83864ab392c2b1ac25a79aa39c263a7094.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
In bittok2str() calls.
Diffstat (limited to 'print-ldp.c')
-rw-r--r-- | print-ldp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-ldp.c b/print-ldp.c index 7f991a2b..facb2313 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -447,10 +447,10 @@ ldp_tlv_print(netdissect_options *ndo, case LDP_FEC_MARTINI_IFPARM_VCCV: ND_PRINT((ndo, "\n\t\t Control Channels (0x%02x) = [%s]", *(tptr+2), - bittok2str(ldp_fec_martini_ifparm_vccv_cc_values, "none", *(tptr+2)))); + bittok2str(ldp_fec_martini_ifparm_vccv_cc_values, "none", EXTRACT_8BITS((tptr + 2))))); ND_PRINT((ndo, "\n\t\t CV Types (0x%02x) = [%s]", *(tptr+3), - bittok2str(ldp_fec_martini_ifparm_vccv_cv_values, "none", *(tptr+3)))); + bittok2str(ldp_fec_martini_ifparm_vccv_cv_values, "none", EXTRACT_8BITS((tptr + 3))))); break; default: |