warning: incorrect type in argument 1 (different base types)
expected restricted ovs_be16 [usertype] old_csum
got unsigned short [unsigned] [usertype] icmp6_cksum
Signed-off-by: Ethan Jackson <[email protected]>
---
lib/packets.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/packets.c b/lib/packets.c
index ace7d8e..ddf7752 100644
--- a/lib/packets.c
+++ b/lib/packets.c
@@ -718,7 +718,9 @@ packet_update_csum128(struct ofpbuf *packet, uint8_t proto,
} else if (proto == IPPROTO_ICMPV6 && l4_size >= sizeof(struct icmp6_hdr))
{
struct icmp6_hdr *icmp = ofpbuf_l4(packet);
+#ifndef __CHECKER__ /* icmp6_csum is a short instead of an ovs_be16. */
icmp->icmp6_cksum = recalc_csum128(icmp->icmp6_cksum, addr, new_addr);
+#endif
}
}
--
1.8.1.2
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev