]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sflow.c
Try marking structures as UNALIGNED.
[tcpdump] / print-sflow.c
index 37a41b529cd322194505772ec1e3afdec0d2b7d6..dc64e63e748f605d71d25d97188657d4ffe41eda 100644 (file)
@@ -915,8 +915,8 @@ sflow_print(netdissect_options *ndo,
            len));
 
     /* skip Common header */
-    tptr += sizeof(const struct sflow_datagram_t);
-    tlen -= sizeof(const struct sflow_datagram_t);
+    tptr += sizeof(struct sflow_datagram_t);
+    tlen -= sizeof(struct sflow_datagram_t);
 
     while (nsamples > 0 && tlen > 0) {
         sflow_sample = (const struct sflow_sample_header *)tptr;