summaryrefslogtreecommitdiffstats
path: root/pimd/pim_zlookup.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-14 17:47:14 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-02-14 06:45:03 +0100
commit9bb93fa04e58742f4afb97697381af69cddcabd4 (patch)
tree54d6553f70d37c4a638b44f3388c172d77882113 /pimd/pim_zlookup.c
parentpim6d: IPv6-adjust various pim_sgaddr uses (diff)
downloadfrr-9bb93fa04e58742f4afb97697381af69cddcabd4.tar.xz
frr-9bb93fa04e58742f4afb97697381af69cddcabd4.zip
pim6d: IPv6-adjust neigh->source_addr
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_zlookup.c')
-rw-r--r--pimd/pim_zlookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index 5997cc25a..b169335a3 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -300,9 +300,9 @@ static int zclient_read_nexthop(struct pim_instance *pim,
if (nbr) {
nexthop_tab[num_ifindex].nexthop_addr.family =
AF_INET;
- nexthop_tab[num_ifindex]
- .nexthop_addr.u.prefix4 =
- nbr->source_addr;
+ pim_addr_to_prefix(
+ &nexthop_tab[num_ifindex].nexthop_addr,
+ nbr->source_addr);
}
++num_ifindex;
break;