summaryrefslogtreecommitdiffstats
path: root/vrrpd
diff options
context:
space:
mode:
authormobash-rasool <mrasool@vmware.com>2023-06-21 19:45:41 +0200
committerGitHub <noreply@github.com>2023-06-21 19:45:41 +0200
commitd94c373266ae8078b1fb1e684ccab87a2700813b (patch)
tree0366c2e7fb2120892ee75323a2de283a37de2aae /vrrpd
parentMerge pull request #13797 from sri-mohan1/srib-ripng (diff)
parentvrrp: check return value for turning off multicast for v6 (diff)
downloadfrr-d94c373266ae8078b1fb1e684ccab87a2700813b.tar.xz
frr-d94c373266ae8078b1fb1e684ccab87a2700813b.zip
Merge pull request #13731 from cyberstorm-mauritius/cid1519841
vrrp: check return value for turning off multicast for v6
Diffstat (limited to 'vrrpd')
-rw-r--r--vrrpd/vrrp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c
index 7a779307d..b14a6ecc4 100644
--- a/vrrpd/vrrp.c
+++ b/vrrpd/vrrp.c
@@ -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) {