summaryrefslogtreecommitdiff
path: root/pimd/pim_util.h
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2024-12-12 22:44:29 -0300
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-12-13 08:28:42 -0300
commita507ca11633672fb9ab0b5bac8116a130494b6af (patch)
tree1e46165be7401e3dd023c860c5b9bd35f5b3d6f1 /pimd/pim_util.h
parentf7720ab68fcfb24e7fa51f682d248086c45ef85a (diff)
pimd,pim6d: optimize multicast prefix generation
Fix Coverity Scan CID 1602463: make it impossible for the function to fail. Hardcode the multicast prefix generation instead of calling `str2prefix()` which caused unnecessary memory allocations and returned error values. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to 'pimd/pim_util.h')
-rw-r--r--pimd/pim_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_util.h b/pimd/pim_util.h
index dda93110b8..a3d944b82b 100644
--- a/pimd/pim_util.h
+++ b/pimd/pim_util.h
@@ -26,6 +26,6 @@ int pim_is_group_224_4(struct in_addr group_addr);
enum filter_type pim_access_list_apply(struct access_list *access, const struct in_addr *source,
const struct in_addr *group);
bool pim_is_group_filtered(struct pim_interface *pim_ifp, pim_addr *grp, pim_addr *src);
-int pim_get_all_mcast_group(struct prefix *prefix);
+void pim_get_all_mcast_group(struct prefix *prefix);
bool pim_addr_is_multicast(pim_addr addr);
#endif /* PIM_UTIL_H */