]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-udld.c
Use more the EXTRACT_U_1() macro (40/n)
[tcpdump] / print-udld.c
index 748016c6336235bc14844cfb9b2038fa22f47475..94c325667699b792f59fee37123e3cdf5ecb10f7 100644 (file)
@@ -166,7 +166,7 @@ udld_print (netdissect_options *ndo, const u_char *pptr, u_int length)
         case UDLD_TIMEOUT_INTERVAL_TLV:
             if (len != 1)
                 goto invalid;
-            ND_PRINT((ndo, ", %us", (*tptr)));
+            ND_PRINT((ndo, ", %us", (EXTRACT_U_1(tptr))));
             break;
 
         case UDLD_SEQ_NUMBER_TLV: