summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mplsvpn.h
diff options
context:
space:
mode:
authorwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:03:14 +0200
committerwhitespace / reindent <invalid@invalid.invalid>2017-07-17 14:04:07 +0200
commitd62a17aedeb0eebdba98238874bb13d62c48dbf9 (patch)
tree3b319b1d61c8b85b4d1f06adf8b844bb8a9b5107 /bgpd/bgp_mplsvpn.h
parent888ac268a0077fc9ebd1218cec6ae472af0bfc40 (diff)
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_mplsvpn.h')
-rw-r--r--bgpd/bgp_mplsvpn.h79
1 files changed, 39 insertions, 40 deletions
diff --git a/bgpd/bgp_mplsvpn.h b/bgpd/bgp_mplsvpn.h
index 8d4f5f8067..3b37aadbf8 100644
--- a/bgpd/bgp_mplsvpn.h
+++ b/bgpd/bgp_mplsvpn.h
@@ -25,55 +25,54 @@
#include "bgpd/bgp_rd.h"
#ifdef MPLS_LABEL_MAX
-# undef MPLS_LABEL_MAX
+#undef MPLS_LABEL_MAX
#endif
typedef enum {
- MPLS_LABEL_IPV4_EXPLICIT_NULL = 0, /* [RFC3032] */
- MPLS_LABEL_ROUTER_ALERT = 1, /* [RFC3032] */
- MPLS_LABEL_IPV6_EXPLICIT_NULL = 2, /* [RFC3032] */
- MPLS_LABEL_IMPLICIT_NULL = 3, /* [RFC3032] */
- MPLS_LABEL_UNASSIGNED4 = 4,
- MPLS_LABEL_UNASSIGNED5 = 5,
- MPLS_LABEL_UNASSIGNED6 = 6,
- MPLS_LABEL_ELI = 7, /* Entropy Indicator [RFC6790] */
- MPLS_LABEL_UNASSIGNED8 = 8,
- MPLS_LABEL_UNASSIGNED9 = 9,
- MPLS_LABEL_UNASSIGNED10 = 10,
- MPLS_LABEL_UNASSIGNED11 = 11,
- MPLS_LABEL_GAL = 13, /* [RFC5586] */
- MPLS_LABEL_OAM_ALERT = 14, /* [RFC3429] */
- MPLS_LABEL_EXTENSION = 15, /* [RFC7274] */
- MPLS_LABEL_MAX = 1048575,
- MPLS_LABEL_ILLEGAL = 0xFFFFFFFF /* for internal use only */
+ MPLS_LABEL_IPV4_EXPLICIT_NULL = 0, /* [RFC3032] */
+ MPLS_LABEL_ROUTER_ALERT = 1, /* [RFC3032] */
+ MPLS_LABEL_IPV6_EXPLICIT_NULL = 2, /* [RFC3032] */
+ MPLS_LABEL_IMPLICIT_NULL = 3, /* [RFC3032] */
+ MPLS_LABEL_UNASSIGNED4 = 4,
+ MPLS_LABEL_UNASSIGNED5 = 5,
+ MPLS_LABEL_UNASSIGNED6 = 6,
+ MPLS_LABEL_ELI = 7, /* Entropy Indicator [RFC6790] */
+ MPLS_LABEL_UNASSIGNED8 = 8,
+ MPLS_LABEL_UNASSIGNED9 = 9,
+ MPLS_LABEL_UNASSIGNED10 = 10,
+ MPLS_LABEL_UNASSIGNED11 = 11,
+ MPLS_LABEL_GAL = 13, /* [RFC5586] */
+ MPLS_LABEL_OAM_ALERT = 14, /* [RFC3429] */
+ MPLS_LABEL_EXTENSION = 15, /* [RFC7274] */
+ MPLS_LABEL_MAX = 1048575,
+ MPLS_LABEL_ILLEGAL = 0xFFFFFFFF /* for internal use only */
} mpls_special_label_t;
-#define MPLS_LABEL_IS_SPECIAL(label) \
- ((label) <= MPLS_LABEL_EXTENSION)
-#define MPLS_LABEL_IS_NULL(label) \
- ((label) == MPLS_LABEL_IPV4_EXPLICIT_NULL || \
- (label) == MPLS_LABEL_IPV6_EXPLICIT_NULL || \
- (label) == MPLS_LABEL_IMPLICIT_NULL)
+#define MPLS_LABEL_IS_SPECIAL(label) ((label) <= MPLS_LABEL_EXTENSION)
+#define MPLS_LABEL_IS_NULL(label) \
+ ((label) == MPLS_LABEL_IPV4_EXPLICIT_NULL \
+ || (label) == MPLS_LABEL_IPV6_EXPLICIT_NULL \
+ || (label) == MPLS_LABEL_IMPLICIT_NULL)
-#define BGP_VPNVX_HELP_STR \
- "Address Family\n" \
- "Address Family\n"
+#define BGP_VPNVX_HELP_STR \
+ "Address Family\n" \
+ "Address Family\n"
-#define V4_HEADER \
- " Network Next Hop Metric LocPrf Weight Path\n"
-#define V4_HEADER_TAG \
- " Network Next Hop In tag/Out tag\n"
-#define V4_HEADER_OVERLAY \
- " Network Next Hop EthTag Overlay Index RouterMac\n"
+#define V4_HEADER \
+ " Network Next Hop Metric LocPrf Weight Path\n"
+#define V4_HEADER_TAG " Network Next Hop In tag/Out tag\n"
+#define V4_HEADER_OVERLAY \
+ " Network Next Hop EthTag Overlay Index RouterMac\n"
-extern void bgp_mplsvpn_init (void);
-extern int bgp_nlri_parse_vpn (struct peer *, struct attr *, struct bgp_nlri *);
-extern u_int32_t decode_label (mpls_label_t *);
+extern void bgp_mplsvpn_init(void);
+extern int bgp_nlri_parse_vpn(struct peer *, struct attr *, struct bgp_nlri *);
+extern u_int32_t decode_label(mpls_label_t *);
extern void encode_label(mpls_label_t, mpls_label_t *);
-extern int
-argv_find_and_parse_vpnvx(struct cmd_token **argv, int argc, int *index, afi_t *afi);
-extern int bgp_show_mpls_vpn (struct vty *vty, afi_t afi, struct prefix_rd *prd,
- enum bgp_show_type type, void *output_arg, int tags, u_char use_json);
+extern int argv_find_and_parse_vpnvx(struct cmd_token **argv, int argc,
+ int *index, afi_t *afi);
+extern int bgp_show_mpls_vpn(struct vty *vty, afi_t afi, struct prefix_rd *prd,
+ enum bgp_show_type type, void *output_arg,
+ int tags, u_char use_json);
#endif /* _QUAGGA_BGP_MPLSVPN_H */