]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ldp.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (11/n)
[tcpdump] / print-ldp.c
index 7f991a2b56476d14bba35e59d9f3f484b6999dca..facb231394e043044692d2e38b89e294bd26cf54 100644 (file)
@@ -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: