Skip to content

Commit

Permalink
Merge pull request FRRouting#13731 from cyberstorm-mauritius/cid1519841
Browse files Browse the repository at this point in the history
vrrp: check return value for turning off multicast for v6
  • Loading branch information
mobash-rasool authored Jun 21, 2023
2 parents fd8a8b7 + 56e52d8 commit d94c373
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion vrrpd/vrrp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1240,7 +1240,13 @@ static int vrrp_socket(struct vrrp_router *r)
}

/* Turn off multicast loop on Tx */
setsockopt_ipv6_multicast_loop(r->sock_tx, 0);
if (setsockopt_ipv6_multicast_loop(r->sock_tx, 0) < 0) {
zlog_warn(VRRP_LOGPFX VRRP_LOGPFX_VRID VRRP_LOGPFX_FAM
"Failed to turn off IPv6 multicast",
r->vr->vrid, family2str(r->family));
failed = true;
goto done;
}

/* Bind Rx socket to exact interface */
frr_with_privs(&vrrp_privs) {
Expand Down

0 comments on commit d94c373

Please sign in to comment.