X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fbfd.c;h=4c130840d0a498aa70a7c725a84221f614b4e28a;hb=8a8cd0acd09763f5edca6506bb286447c5776778;hp=a06611a8f9309d8cb4276fb64bbb45c18f143503;hpb=fab52e16f7d8ccdbad53c5037cd04d5863a2cb4a;p=sliver-openvswitch.git diff --git a/lib/bfd.c b/lib/bfd.c index a06611a8f..4c130840d 100644 --- a/lib/bfd.c +++ b/lib/bfd.c @@ -17,6 +17,7 @@ #include +#include "byte-order.h" #include "csum.h" #include "dpif.h" #include "dynamic-string.h" @@ -387,7 +388,7 @@ bfd_put_packet(struct bfd *bfd, struct ofpbuf *p, long long int delay = time_msec() - bfd->next_tx; long long int interval = bfd_tx_interval(bfd); if (delay > interval * 3 / 2) { - VLOG_WARN("%s: long delay of %lldms (expected %lldms) sending BFD" + VLOG_INFO("%s: long delay of %lldms (expected %lldms) sending BFD" " control message", bfd->name, delay, interval); } } @@ -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