summaryrefslogtreecommitdiff
path: root/pimd/pim_zebra.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-08-24 18:17:05 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-08-27 10:46:53 +0200
commit5421bf8f1d5e9f5a6fd8025b0af46503a35ec3bf (patch)
tree1438523309b9ab1c7e13dd1de7b206d11401ea80 /pimd/pim_zebra.c
parenta1a4295adee0b5ef024e1c7dc2b0c3a0f2d57636 (diff)
pimd: fuse source_new() and add_source_by_addr()
This makes a lot more sense semantically (and matches the way groups are handled.) Also allows placing additional restrictions on source creation (e.g. limit on number of sources or ACLs.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_zebra.c')
-rw-r--r--pimd/pim_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_zebra.c b/pimd/pim_zebra.c
index 521e4ebc17..aa041df857 100644
--- a/pimd/pim_zebra.c
+++ b/pimd/pim_zebra.c
@@ -474,7 +474,7 @@ void igmp_anysource_forward_start(struct pim_instance *pim,
assert(group->group_filtermode_isexcl);
assert(listcount(group->group_source_list) < 1);
- source = source_new(group, src_addr);
+ source = igmp_get_source_by_addr(group, src_addr, NULL);
if (!source) {
zlog_warn("%s: Failure to create * source", __func__);
return;