sflow_flow_record = (const struct sflow_flow_record_t *)tptr;
- /* so, the funky encoding means we cannot blythly mask-off
+ /* so, the funky encoding means we cannot blithely mask-off
bits, we must also check the enterprise. */
enterprise = GET_BE_U_4(sflow_flow_record->format);
len);
/* skip Common header */
- ND_LCHECK_ZU(tlen, sizeof(struct sflow_datagram_t));
+ ND_ICHECK_ZU(tlen, <, sizeof(struct sflow_datagram_t));
tptr += sizeof(struct sflow_datagram_t);
tlen -= sizeof(struct sflow_datagram_t);
} else {
len);
/* skip Common header */
- ND_LCHECK_ZU(tlen, sizeof(struct sflow_v6_datagram_t));
+ ND_ICHECK_ZU(tlen, <, sizeof(struct sflow_v6_datagram_t));
tptr += sizeof(struct sflow_v6_datagram_t);
tlen -= sizeof(struct sflow_v6_datagram_t);
}