]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sflow.c
Update some tests files if the packet time is > 2038-01-19 03:14:07 UTC
[tcpdump] / print-sflow.c
index f508ccc4233e0aa81d09db42ddcf91f6fc037080..1d6e79ddd509834630b6e296b02cdd307fc419e2 100644 (file)
@@ -690,7 +690,7 @@ sflow_print_flow_records(netdissect_options *ndo,
 
        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);
@@ -876,7 +876,7 @@ sflow_print(netdissect_options *ndo,
                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 {
@@ -892,7 +892,7 @@ sflow_print(netdissect_options *ndo,
                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);
     }