summaryrefslogtreecommitdiffstats
path: root/pimd/pim_msg.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-03-17 13:07:19 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-03-23 17:58:24 +0100
commite7eefda4ba335c8f403769674876034edbb64298 (patch)
tree3ce43ba974cf661194082612732bfc64e2162e43 /pimd/pim_msg.h
parentMerge pull request #290 from bingen/fix_unused_func (diff)
downloadfrr-e7eefda4ba335c8f403769674876034edbb64298.tar.xz
frr-e7eefda4ba335c8f403769674876034edbb64298.zip
pimd: Optimize group size figuring out.
We were figuring out the group size 2 times. Figure it out 1 time and then pass it around. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_msg.h')
-rw-r--r--pimd/pim_msg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/pimd/pim_msg.h b/pimd/pim_msg.h
index 9774ef3ed..de663aa3b 100644
--- a/pimd/pim_msg.h
+++ b/pimd/pim_msg.h
@@ -96,5 +96,5 @@ uint8_t *pim_msg_addr_encode_ipv4_source(uint8_t *buf,
size_t pim_msg_get_jp_group_size (struct list *sources);
-size_t pim_msg_build_jp_groups (struct pim_jp_groups *grp, struct pim_jp_agg_group *sgs);
+size_t pim_msg_build_jp_groups (struct pim_jp_groups *grp, struct pim_jp_agg_group *sgs, size_t size);
#endif /* PIM_MSG_H */