summaryrefslogtreecommitdiffstats
path: root/pimd/pim_nht.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-03 21:42:59 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-03 22:57:35 +0200
commit121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477 (patch)
tree96db220e5aa1f111be363aafe8f5264a19970fed /pimd/pim_nht.h
parentlib: define ZAPI_CALLBACK_ARGS macro (diff)
downloadfrr-121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477.tar.xz
frr-121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477.zip
*: use ZAPI_CALLBACK_ARGS macro for zapi handlers
This macro: - Marks ZAPI callbacks for readability - Standardizes argument names - Makes it simple to add ZAPI arguments in the future - Ensures proper types - Looks better - Shortens function declarations Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'pimd/pim_nht.h')
-rw-r--r--pimd/pim_nht.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_nht.h b/pimd/pim_nht.h
index 13bb0fcb5..e7a5fa772 100644
--- a/pimd/pim_nht.h
+++ b/pimd/pim_nht.h
@@ -47,8 +47,7 @@ struct pim_nexthop_cache {
struct hash *upstream_hash;
};
-int pim_parse_nexthop_update(int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id);
+int pim_parse_nexthop_update(ZAPI_CALLBACK_ARGS);
int pim_find_or_track_nexthop(struct pim_instance *pim, struct prefix *addr,
struct pim_upstream *up, struct rp_info *rp,
struct pim_nexthop_cache *out_pnc);