summaryrefslogtreecommitdiffstats
path: root/src/vnet/bfd/bfd_udp.c
diff options
context:
space:
mode:
authorKlement Sekera <ksekera@cisco.com>2017-02-08 07:42:08 +0100
committerKlement Sekera <ksekera@cisco.com>2017-02-08 07:47:37 +0100
commit6f96649d1b6ade7e4730a3b3d0f479c33fd4d764 (patch)
treee27cb1c82e8bba05028a8177e726e04fad4a65df /src/vnet/bfd/bfd_udp.c
parent7fce133ca07d35e2207d2d05790b33140bc423ce (diff)
BFD: minor fixes
Change-Id: I1c93f96a752eb2ffd1117a656552131cde1fa489 Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vnet/bfd/bfd_udp.c')
-rw-r--r--src/vnet/bfd/bfd_udp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vnet/bfd/bfd_udp.c b/src/vnet/bfd/bfd_udp.c
index e21b887c47e..e1ff8a9d887 100644
--- a/src/vnet/bfd/bfd_udp.c
+++ b/src/vnet/bfd/bfd_udp.c
@@ -637,8 +637,7 @@ bfd_udp4_verify_transport (const ip4_header_t * ip4,
expected_ttl);
return BFD_UDP_ERROR_BAD;
}
- if (clib_net_to_host_u16 (udp->src_port) < 49152 ||
- clib_net_to_host_u16 (udp->src_port) > 65535)
+ if (clib_net_to_host_u16 (udp->src_port) < 49152)
{
BFD_ERR ("Invalid UDP src port %u, out of range <49152,65535>",
udp->src_port);
@@ -805,8 +804,7 @@ bfd_udp6_verify_transport (const ip6_header_t * ip6,
ip6->hop_limit, expected_hop_limit);
return BFD_UDP_ERROR_BAD;
}
- if (clib_net_to_host_u16 (udp->src_port) < 49152 ||
- clib_net_to_host_u16 (udp->src_port) > 65535)
+ if (clib_net_to_host_u16 (udp->src_port) < 49152)
{
BFD_ERR ("Invalid UDP src port %u, out of range <49152,65535>",
udp->src_port);