/* specification: https://sflow.org/developers/specifications.php */
-#ifdef HAVE_CONFIG_H
#include <config.h>
-#endif
#include "netdissect-stdinc.h"
tptr = pointer;
tlen = len;
- while (nrecords > 0) {
+ while (nrecords != 0) {
/* do we have the "header?" */
if (tlen < sizeof(struct sflow_counter_record_t))
return 1;
tptr = pointer;
tlen = len;
- while (nrecords > 0) {
+ while (nrecords != 0) {
/* do we have the "header?" */
if (tlen < sizeof(struct sflow_flow_record_t))
return 1;
tptr += sizeof(struct sflow_v6_datagram_t);
tlen -= sizeof(struct sflow_v6_datagram_t);
}
- while (nsamples > 0 && tlen > 0) {
+ while (nsamples != 0 && tlen != 0) {
sflow_sample = (const struct sflow_sample_header *)tptr;
sflow_sample_type = (GET_BE_U_4(sflow_sample->format)&0x0FFF);