static u_int
ldp_tlv_print(netdissect_options *ndo,
const u_char *tptr,
- u_short msg_tlen)
+ u_int msg_tlen)
{
struct ldp_tlv_header {
nd_uint16_t type;
ldp_tlv_header = (const struct ldp_tlv_header *)tptr;
ND_TCHECK_SIZE(ldp_tlv_header);
tlv_len=GET_BE_U_2(ldp_tlv_header->length);
- if (tlv_len + 4 > msg_tlen) {
+ if (tlv_len + 4U > msg_tlen) {
ND_PRINT("\n\t\t TLV contents go past end of message");
return 0;
}