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_attr_evpn.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_attr_evpn.h')
-rw-r--r-- | bgpd/bgp_attr_evpn.h | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/bgpd/bgp_attr_evpn.h b/bgpd/bgp_attr_evpn.h index 26650ef8b..15d9e126e 100644 --- a/bgpd/bgp_attr_evpn.h +++ b/bgpd/bgp_attr_evpn.h @@ -29,7 +29,6 @@ #define ESI_TYPE_ROUTER 4 /* <RouterId-4B>:<Local Discriminator Value-4B> */ #define ESI_TYPE_AS 5 /* <AS-4B>:<Local Discriminator Value-4B> */ - #define MAX_ESI {0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff} #define ESI_LEN 10 @@ -38,32 +37,30 @@ u_long eth_tag_id; struct attr; -struct eth_segment_id -{ - u_char val[ESI_LEN]; +struct eth_segment_id { + u_char val[ESI_LEN]; }; -union gw_addr -{ - struct in_addr ipv4; - struct in6_addr ipv6; +union gw_addr { + struct in_addr ipv4; + struct in6_addr ipv6; }; -struct bgp_route_evpn -{ - struct eth_segment_id eth_s_id; - union gw_addr gw_ip; +struct bgp_route_evpn { + struct eth_segment_id eth_s_id; + union gw_addr gw_ip; }; extern int str2esi(const char *str, struct eth_segment_id *id); extern char *esi2str(struct eth_segment_id *id); extern char *ecom_mac2str(char *ecom_mac); -extern void bgp_add_routermac_ecom(struct attr *attr, struct ethaddr *routermac); +extern void bgp_add_routermac_ecom(struct attr *attr, + struct ethaddr *routermac); extern int bgp_build_evpn_prefix(int type, uint32_t eth_tag, - struct prefix *dst); + struct prefix *dst); -extern u_int32_t -bgp_attr_mac_mobility_seqnum (struct attr *attr, u_char *sticky); +extern u_int32_t bgp_attr_mac_mobility_seqnum(struct attr *attr, + u_char *sticky); -#endif /* _QUAGGA_BGP_ATTR_EVPN_H */ +#endif /* _QUAGGA_BGP_ATTR_EVPN_H */ |