diff options
author | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:03:14 +0200 |
---|---|---|
committer | whitespace / reindent <invalid@invalid.invalid> | 2017-07-17 14:04:07 +0200 |
commit | d62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch) | |
tree | 3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /zebra/zebra_mroute.c | |
parent | *: add indent control files (diff) | |
download | frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip |
*: reindentreindent-master-after
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'`
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'zebra/zebra_mroute.c')
-rw-r--r-- | zebra/zebra_mroute.c | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/zebra/zebra_mroute.c b/zebra/zebra_mroute.c index 82c7f404b..c00498171 100644 --- a/zebra/zebra_mroute.c +++ b/zebra/zebra_mroute.c @@ -31,37 +31,37 @@ #include "zebra/zebra_mroute.h" #include "zebra/rt.h" -int -zebra_ipmr_route_stats (struct zserv *client, int fd, u_short length, struct zebra_vrf *zvrf) +int zebra_ipmr_route_stats(struct zserv *client, int fd, u_short length, + struct zebra_vrf *zvrf) { - struct mcast_route_data mroute; - struct stream *s; - int suc; + struct mcast_route_data mroute; + struct stream *s; + int suc; - char sbuf[40]; - char gbuf[40]; + char sbuf[40]; + char gbuf[40]; - memset (&mroute, 0, sizeof (mroute)); - stream_get (&mroute.sg.src, client->ibuf, 4); - stream_get (&mroute.sg.grp, client->ibuf, 4); - mroute.ifindex = stream_getl (client->ibuf); + memset(&mroute, 0, sizeof(mroute)); + stream_get(&mroute.sg.src, client->ibuf, 4); + stream_get(&mroute.sg.grp, client->ibuf, 4); + mroute.ifindex = stream_getl(client->ibuf); - strcpy (sbuf, inet_ntoa (mroute.sg.src)); - strcpy (gbuf, inet_ntoa (mroute.sg.grp)); + strcpy(sbuf, inet_ntoa(mroute.sg.src)); + strcpy(gbuf, inet_ntoa(mroute.sg.grp)); - suc = kernel_get_ipmr_sg_stats (&mroute); + suc = kernel_get_ipmr_sg_stats(&mroute); - s = client->obuf; + s = client->obuf; - stream_reset (s); + stream_reset(s); - zserv_create_header (s, ZEBRA_IPMR_ROUTE_STATS, zvrf_id (zvrf)); - stream_put_in_addr (s, &mroute.sg.src); - stream_put_in_addr (s, &mroute.sg.grp); - stream_put (s, &mroute.lastused, sizeof (mroute.lastused)); - stream_putl (s, suc); + zserv_create_header(s, ZEBRA_IPMR_ROUTE_STATS, zvrf_id(zvrf)); + stream_put_in_addr(s, &mroute.sg.src); + stream_put_in_addr(s, &mroute.sg.grp); + stream_put(s, &mroute.lastused, sizeof(mroute.lastused)); + stream_putl(s, suc); - stream_putw_at (s, 0, stream_get_endp (s)); - zebra_server_send_message (client); - return 0; + stream_putw_at(s, 0, stream_get_endp(s)); + zebra_server_send_message(client); + return 0; } |