Commit fab52e16f7d8ccdbad53c5037cd04d5863a2cb4a introduces a comparison
between mismatching types, shown by the following compiler warnings:-

lib/bfd.c:461:52: warning: restricted __be64 degrades to integer
lib/bfd.c:461:68: warning: restricted __be32 degrades to integer

This patch changes the htonl() call to htonll() to fix this.

Signed-off-by: Joe Stringer <j...@wand.net.nz>
---
 lib/bfd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/bfd.c b/lib/bfd.c
index a06611a..ddd55bb 100644
--- a/lib/bfd.c
+++ b/lib/bfd.c
@@ -18,6 +18,7 @@
 #include <arpa/inet.h>
 
 #include "csum.h"
+#include "byte-order.h"
 #include "dpif.h"
 #include "dynamic-string.h"
 #include "flow.h"
@@ -458,7 +459,7 @@ bfd_should_process_flow(const struct bfd *bfd, const struct 
flow *flow,
     return (flow->dl_type == htons(ETH_TYPE_IP)
             && flow->nw_proto == IPPROTO_UDP
             && flow->tp_dst == htons(3784)
-            && (!bfd->check_tnl_key || flow->tunnel.tun_id == htonl(0)));
+            && (!bfd->check_tnl_key || flow->tunnel.tun_id == htonll(0)));
 }
 
 void
-- 
1.7.10.4

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to