From 88a3f5e121fb9035ac4e669e2e8780ed233c70ac Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Sun, 21 May 2017 09:14:39 -0400 Subject: [PATCH] pimd: Make pim_hello choose correct vrf Signed-off-by: Donald Sharp --- pimd/pim_hello.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pimd/pim_hello.c b/pimd/pim_hello.c index bfa57d7f9d..138a110d3a 100644 --- a/pimd/pim_hello.c +++ b/pimd/pim_hello.c @@ -446,6 +446,8 @@ int pim_hello_build_tlv(struct interface *ifp, uint8_t *tlv_buf, uint8_t *curr = tlv_buf; uint8_t *pastend = tlv_buf + tlv_buf_size; uint8_t *tmp; + struct pim_interface *pim_ifp = ifp->info; + struct pim_instance *pim = pim_ifp->pim; /* * Append options @@ -517,7 +519,7 @@ int pim_hello_build_tlv(struct interface *ifp, uint8_t *tlv_buf, } return -4; } - if (pimg->send_v6_secondary) { + if (pim->send_v6_secondary) { curr = pim_tlv_append_addrlist_ucast( curr, pastend, ifp->connected, AF_INET6); if (!curr) { -- 2.39.5