Skip to content

Commit

Permalink
zebra: create udp socket for mh arp-nd redirection only if failover i…
Browse files Browse the repository at this point in the history
…s enabled

This socket was getting created unconditionally on the first vxlan device
config. Later when arp-nd redirection was enabled (happens on first es
add) a dup sock-bind would be attempted. This dup-bind would fail with
EINVAL causing zebra to mark the socket as "not-ready" for use.

Ticket: #2840919

Signed-off-by: Anuradha Karuppiah <[email protected]>
  • Loading branch information
AnuradhaKaruppiah authored and donaldsharp committed Dec 7, 2024
1 parent 7b37482 commit 32d98c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions zebra/zebra_evpn_arp_nd.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ void zebra_evpn_arp_nd_if_update(struct zebra_if *zif, bool enable)
*/
void zebra_evpn_arp_nd_udp_sock_create(void)
{
if (!(zevpn_arp_nd_info.flags & ZEBRA_EVPN_ARP_ND_FAILOVER))
return;

if (zmh_info->es_originator_ip.s_addr) {
struct sockaddr_in sin;
int reuse = 1;
Expand Down

0 comments on commit 32d98c0

Please sign in to comment.