/* do we have the "header?" */
if (tlen < sizeof(struct sflow_flow_record_t))
return 1;
sflow_flow_record = (const struct sflow_flow_record_t *)tptr;
/* do we have the "header?" */
if (tlen < sizeof(struct sflow_flow_record_t))
return 1;
sflow_flow_record = (const struct sflow_flow_record_t *)tptr;
bits, we must also check the enterprise. */
enterprise = GET_BE_U_4(sflow_flow_record->format);
bits, we must also check the enterprise. */
enterprise = GET_BE_U_4(sflow_flow_record->format);
sflow_sample = (const struct sflow_sample_header *)tptr;
sflow_sample_type = (GET_BE_U_4(sflow_sample->format)&0x0FFF);
sflow_sample = (const struct sflow_sample_header *)tptr;
sflow_sample_type = (GET_BE_U_4(sflow_sample->format)&0x0FFF);