const u_char *cp, u_int length, int indent)
{
u_int i, t;
- const u_char *tlv, *value;
+ const uint8_t *tlv, *value;
uint8_t type, optlen;
i = 0;
if (i + 2 > length)
return -1;
tlv = cp + i;
- type = (uint8_t)tlv[0];
- optlen = (uint8_t)tlv[1];
+ type = tlv[0];
+ optlen = tlv[1];
value = tlv + 2;
ND_PRINT((ndo, "\n"));
uint32_t last_type_mask = 0xffffffffU;
int last_type_count = -1;
- const u_char *tlv, *value;
+ const uint8_t *tlv, *value;
uint16_t type, bodylen;
uint32_t type_mask;
ND_PRINT((ndo, " %s", istr));
break;
}
- prty = (uint8_t)(value[4] & 0xf);
+ prty = value[4] & 0xf;
ND_PRINT((ndo, " EPID: %08x Prty: %u",
EXTRACT_32BITS(value),
prty