summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_mroute.h
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2018-03-06 23:57:33 +0100
committerQuentin Young <qlyoung@cumulusnetworks.com>2018-03-12 19:57:05 +0100
commit89f4e5077bd8162dbda0e10a3bbd594c2c698d77 (patch)
tree5e1aa7b4ba59fbee99b093f3a5938bcf691fc748 /zebra/zebra_mroute.h
parentzebra: add struct zmsghdr (diff)
downloadfrr-89f4e5077bd8162dbda0e10a3bbd594c2c698d77.tar.xz
frr-89f4e5077bd8162dbda0e10a3bbd594c2c698d77.zip
zebra: standardize ZAPI message handler args
A lot of the handler functions that are called directly from the ZAPI input processing code take different argument sets where they don't need to. These functions are called from only one place and all have the same fundamental information available to them to do their work. There is no need to specialize what information is passed to them; it is cleaner and easier to understand when they all accept the same base set of information and extract what they need inline. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_mroute.h')
-rw-r--r--zebra/zebra_mroute.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/zebra/zebra_mroute.h b/zebra/zebra_mroute.h
index 5bee7b03d..338515360 100644
--- a/zebra/zebra_mroute.h
+++ b/zebra/zebra_mroute.h
@@ -22,13 +22,14 @@
#ifndef __ZEBRA_MROUTE_H__
#define __ZEBRA_MROUTE_H__
+#include "zebra/zserv.h"
+
struct mcast_route_data {
struct prefix_sg sg;
unsigned int ifindex;
unsigned long long lastused;
};
-void zebra_ipmr_route_stats(struct zserv *client, u_short length,
- struct zebra_vrf *zvf);
+void zebra_ipmr_route_stats(ZAPI_HANDLER_ARGS);
#endif