diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-20 08:05:29 +0100 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2017-11-20 09:40:00 +0100 |
commit | 716e07e0602694c434414de78f278a2451ea92cf (patch) | |
tree | 2ef4a442fac77e3397865a09526e9dbe8cfcf09a /print-ldp.c | |
parent | 8eecfc382e20189f64d1b77515d4bfa6e8ec7155 (diff) | |
download | tcpdump-716e07e0602694c434414de78f278a2451ea92cf.tar.gz |
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (12/n)
In ND_PRINT() macro 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 facb2313..ed176b70 100644 --- a/print-ldp.c +++ b/print-ldp.c @@ -446,10 +446,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), + EXTRACT_8BITS((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), + EXTRACT_8BITS((tptr + 3)), bittok2str(ldp_fec_martini_ifparm_vccv_cv_values, "none", EXTRACT_8BITS((tptr + 3))))); break; |