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 /bgpd/bgp_rd.h | |
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 'bgpd/bgp_rd.h')
-rw-r--r-- | bgpd/bgp_rd.h | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/bgpd/bgp_rd.h b/bgpd/bgp_rd.h index 2c7df9d74..cbc449ed4 100644 --- a/bgpd/bgp_rd.h +++ b/bgpd/bgp_rd.h @@ -34,41 +34,37 @@ #define RD_ADDRSTRLEN 28 -struct rd_as -{ - u_int16_t type; - as_t as; - u_int32_t val; +struct rd_as { + u_int16_t type; + as_t as; + u_int32_t val; }; -struct rd_ip -{ - u_int16_t type; - struct in_addr ip; - u_int16_t val; +struct rd_ip { + u_int16_t type; + struct in_addr ip; + u_int16_t val; }; #if ENABLE_BGP_VNC -struct rd_vnc_eth -{ - u_int16_t type; - uint8_t local_nve_id; - struct ethaddr macaddr; +struct rd_vnc_eth { + u_int16_t type; + uint8_t local_nve_id; + struct ethaddr macaddr; }; #endif -extern u_int16_t decode_rd_type (u_char *pnt); -extern void encode_rd_type (u_int16_t, u_char *); +extern u_int16_t decode_rd_type(u_char *pnt); +extern void encode_rd_type(u_int16_t, u_char *); -extern void decode_rd_as (u_char *pnt, struct rd_as *rd_as); -extern void decode_rd_as4 (u_char *pnt, struct rd_as *rd_as); -extern void decode_rd_ip (u_char *pnt, struct rd_ip *rd_ip); +extern void decode_rd_as(u_char *pnt, struct rd_as *rd_as); +extern void decode_rd_as4(u_char *pnt, struct rd_as *rd_as); +extern void decode_rd_ip(u_char *pnt, struct rd_ip *rd_ip); #if ENABLE_BGP_VNC -extern void -decode_rd_vnc_eth (u_char *pnt, struct rd_vnc_eth *rd_vnc_eth); +extern void decode_rd_vnc_eth(u_char *pnt, struct rd_vnc_eth *rd_vnc_eth); #endif -extern int str2prefix_rd (const char *, struct prefix_rd *); -extern char *prefix_rd2str (struct prefix_rd *, char *, size_t); +extern int str2prefix_rd(const char *, struct prefix_rd *); +extern char *prefix_rd2str(struct prefix_rd *, char *, size_t); #endif /* _QUAGGA_BGP_RD_H */ |