From c631920c151f0130986cb9051daa710bb0eb261b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 14 Jan 2022 16:55:12 +0100 Subject: pim6d: IPv6-adjust various pim_sgaddr uses Since `pim_sgaddr` is `pim_addr` now, that causes a whole lot of fallout anywhere S,G pairs are handled. Signed-off-by: David Lamparter --- pimd/pim_bsm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'pimd/pim_bsm.c') diff --git a/pimd/pim_bsm.c b/pimd/pim_bsm.c index 421479047..afb4a6057 100644 --- a/pimd/pim_bsm.c +++ b/pimd/pim_bsm.c @@ -667,10 +667,7 @@ void pim_bsm_clear(struct pim_instance *pim) struct prefix grp; struct rp_info *trp_info; - grp.family = AF_INET; - grp.prefixlen = IPV4_MAX_BITLEN; - grp.u.prefix4 = up->sg.grp; - + pim_addr_to_prefix(&grp, up->sg.grp); trp_info = pim_rp_find_match_group(pim, &grp); /* RP not found for the group grp */ -- cgit v1.2.3