From 26c7454b7fc6e2c408a453fc0de1a05a5f557bf6 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Thu, 14 Mar 2019 15:54:49 +0000 Subject: [PATCH] vrrpd: do not start v6 router if using VRRPv2 v2 doesn't support IPv6. Signed-off-by: Quentin Young --- vrrpd/vrrp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vrrpd/vrrp.c b/vrrpd/vrrp.c index 3ffa2fbf68..ff39d78ed3 100644 --- a/vrrpd/vrrp.c +++ b/vrrpd/vrrp.c @@ -304,6 +304,9 @@ void vrrp_check_start(struct vrrp_vrouter *vr) r = vr->v6; /* Must not already be started */ start = r->fsm.state == VRRP_STATE_INITIALIZE; + /* Must not be v2 */ + start = vr->version != 2; + whynot = (!start && !whynot) ? "VRRPv2 does not support v6" : NULL; /* Must have a parent interface */ start = start && (vr->ifp != NULL); whynot = (!start && !whynot) ? "No base interface" : NULL; -- 2.39.5