summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-01-23 23:59:07 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-17 02:27:08 +0200
commit6e9529edd655a99e21672649c21621c0a27454bf (patch)
treee2006d83049ff75e8c9e598c1342de31c6bfecf2
parentvrrpd: remove bad priority check (diff)
downloadfrr-6e9529edd655a99e21672649c21621c0a27454bf.tar.xz
frr-6e9529edd655a99e21672649c21621c0a27454bf.zip
vrrpd: disable multicast loopback
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
-rw-r--r--vrrpd/vrrp.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c
index 94f59f37f..90ea25d77 100644
--- a/vrrpd/vrrp.c
+++ b/vrrpd/vrrp.c
@@ -664,6 +664,9 @@ static int vrrp_socket(struct vrrp_router *r)
r->vr->vrid);
}
+ /* Turn off multicast loop on Tx */
+ setsockopt_ipv4_multicast_loop(r->sock_tx, 0);
+
/* Bind Rx socket to exact interface */
vrrp_privs.change(ZPRIVS_RAISE);
{
@@ -751,6 +754,9 @@ static int vrrp_socket(struct vrrp_router *r)
goto done;
}
+ /* Turn off multicast loop on Tx */
+ setsockopt_ipv6_multicast_loop(r->sock_tx, 0);
+
/* Bind Rx socket to exact interface */
vrrp_privs.change(ZPRIVS_RAISE);
{