diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-06 23:57:33 +0100 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2018-03-12 19:57:05 +0100 |
commit | 89f4e5077bd8162dbda0e10a3bbd594c2c698d77 (patch) | |
tree | 5e1aa7b4ba59fbee99b093f3a5938bcf691fc748 /zebra/zebra_mroute.c | |
parent | zebra: add struct zmsghdr (diff) | |
download | frr-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.c')
-rw-r--r-- | zebra/zebra_mroute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c index 1143451d6..e70b963cf 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -31,9 +31,9 @@ #include "zebra/zebra_mroute.h" #include "zebra/rt.h" #include "zebra/debug.h" +#include "zebra/zserv.h" -void zebra_ipmr_route_stats(struct zserv *client, u_short length, - struct zebra_vrf *zvrf) +void zebra_ipmr_route_stats(ZAPI_HANDLER_ARGS) { struct mcast_route_data mroute; struct stream *s; |