SHA1 ((unsigned char *) pkt, sizeof (*pkt), hash);
BFD_DBG ("hashing: %U", format_hex_bytes, pkt, sizeof (*pkt));
clib_memcpy (auth->hash, hash, sizeof (hash));
-#endif
}
+#endif
static void
bfd_add_auth_section (vlib_buffer_t * b, bfd_session_t * bs)
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);
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);