X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fplugins%2Fvrrp%2Fvrrp_packet.c;h=b470ddeba081726e80f80a5603ffc9b5d813095d;hb=dabdc197981a49eac54bb43238f4ebd31075622a;hp=8daee500ece3da0594df7c7577da613774eef888;hpb=905c15319c9a732b1bc785b8ce5a97d5817f26f8;p=vpp.git diff --git a/src/plugins/vrrp/vrrp_packet.c b/src/plugins/vrrp/vrrp_packet.c index 8daee500ece..b470ddeba08 100644 --- a/src/plugins/vrrp/vrrp_packet.c +++ b/src/plugins/vrrp/vrrp_packet.c @@ -691,6 +691,11 @@ vrrp_vr_multicast_group_join (vrrp_vr_t * vr) if (!vnet_sw_interface_is_up (vnm, vr->config.sw_if_index)) return 0; + is_ipv6 = vrrp_vr_is_ipv6 (vr); + + if (is_ipv6 && ip6_link_is_enabled (vr->config.sw_if_index) == 0) + return 0; + if (vlib_buffer_alloc (vm, &bi, n_buffers) != n_buffers) { clib_warning ("Buffer allocation failed for %U", format_vrrp_vr_key, @@ -698,8 +703,6 @@ vrrp_vr_multicast_group_join (vrrp_vr_t * vr) return -1; } - is_ipv6 = vrrp_vr_is_ipv6 (vr); - b = vlib_get_buffer (vm, bi); b->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;