]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-vrrp.c
Fix a bunch of de-constifications.
[tcpdump] / print-vrrp.c
index 30f89d3419d6a044ff5f30c620f4c4e972415682..3caa0b24a262f48d3c052bbf0cea54cf2ff171bf 100644 (file)
@@ -146,7 +146,7 @@ vrrp_print(netdissect_options *ndo,
                }
 
                if (version == 3 && ND_TTEST2(bp[0], len)) {
-                       uint16_t cksum = nextproto4_cksum(ndo, (struct ip *)bp2, bp,
+                       uint16_t cksum = nextproto4_cksum(ndo, (const struct ip *)bp2, bp,
                                len, len, IPPROTO_VRRP);
                        if (cksum)
                                ND_PRINT((ndo, ", (bad vrrp cksum %x)",