]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-ospf.c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
[tcpdump] / print-ospf.c
index 22eb4c522d491ed0c271e8863fde4879a1b01245..4c82c6111d73e16c8a03b6325384687a3b294a2f 100644 (file)
@@ -414,7 +414,7 @@ ospf_print_te_lsa(netdissect_options *ndo,
                        goto invalid;
                    }
                     ND_PRINT((ndo, ", %s",
-                             bittok2str(gmpls_link_prot_values, "none", *tptr)));
+                             bittok2str(gmpls_link_prot_values, "none", EXTRACT_8BITS(tptr))));
                     break;
                 case LS_OPAQUE_TE_LINK_SUBTLV_INTF_SW_CAP_DESCR:
                    if (subtlv_length < 36) {