vswitchd: Fix function prototype of packet_set_ipv6()
authorPravin B Shelar <pshelar@nicira.com>
Wed, 14 Nov 2012 01:20:22 +0000 (17:20 -0800)
committerPravin B Shelar <pshelar@nicira.com>
Wed, 14 Nov 2012 19:43:52 +0000 (11:43 -0800)
Follwoing patch fixes sparse error:
lib/packets.c:643:1: error: symbol 'packet_set_ipv6' redeclared
with different type (originally declared at lib/packets.h:493)
- incompatible argument 6 (different base types)

Signed-off-by: Pravin B Shelar <pshelar@nicira.com>
lib/packets.h

index 4ad527bafb9ceb8edc83bfbc8608ec0368f4077f..5f9be01e415fdc243fdc6bf41f708a7a86baac98 100644 (file)
@@ -492,7 +492,7 @@ void packet_set_ipv4(struct ofpbuf *, ovs_be32 src, ovs_be32 dst, uint8_t tos,
                      uint8_t ttl);
 void packet_set_ipv6(struct ofpbuf *, uint8_t proto, const ovs_be32 src[4],
                      const ovs_be32 dst[4], uint8_t tc,
-                     uint32_t fl, uint8_t hlmit);
+                     ovs_be32 fl, uint8_t hlmit);
 void packet_set_tcp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);
 void packet_set_udp_port(struct ofpbuf *, ovs_be16 src, ovs_be16 dst);