X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/dc36fbcfb329504ace442ab0b79dd85819dfea17..1ed63b5:/print-lldp.c?ds=inline diff --git a/print-lldp.c b/print-lldp.c index 054a9617..a578f4ea 100644 --- a/print-lldp.c +++ b/print-lldp.c @@ -1163,10 +1163,11 @@ lldp_private_dcbx_print(netdissect_options *ndo, { int hexdump = FALSE; u_int subtype; - uint8_t tval; + uint16_t tval; uint16_t tlv; uint32_t i, pgval, uval; - u_int tlen, tlv_type, tlv_len; + u_int tlen, tlv_type; + uint16_t tlv_len; const u_char *tptr, *mptr; if (len < 4) { @@ -1359,10 +1360,10 @@ lldp_network_addr_print(netdissect_options *ndo, const u_char *tptr, u_int len) } if (!pfunc) { - nd_snprintf(buf, sizeof(buf), "AFI %s (%u), no AF printer !", + snprintf(buf, sizeof(buf), "AFI %s (%u), no AF printer !", tok2str(af_values, "Unknown", af), af); } else { - nd_snprintf(buf, sizeof(buf), "AFI %s (%u): %s", + snprintf(buf, sizeof(buf), "AFI %s (%u): %s", tok2str(af_values, "Unknown", af), af, (*pfunc)(ndo, tptr+1)); }