summaryrefslogtreecommitdiffstats
path: root/isisd/isis_mt.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 /isisd/isis_mt.h
parent*: add indent control files (diff)
downloadfrr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.tar.xz
frr-d62a17aedeb0eebdba98238874bb13d62c48dbf9.zip
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'isisd/isis_mt.h')
-rw-r--r--isisd/isis_mt.h127
1 files changed, 65 insertions, 62 deletions
diff --git a/isisd/isis_mt.h b/isisd/isis_mt.h
index e90f1756f..eec089228 100644
--- a/isisd/isis_mt.h
+++ b/isisd/isis_mt.h
@@ -32,52 +32,51 @@
#define ISIS_MT_IPV6_MULTICAST 4
#define ISIS_MT_IPV6_MGMT 5
-#define ISIS_MT_NAMES \
- "<ipv4-unicast" \
- "|ipv4-mgmt" \
- "|ipv6-unicast" \
- "|ipv4-multicast" \
- "|ipv6-multicast" \
- "|ipv6-mgmt" \
- ">"
-
-#define ISIS_MT_DESCRIPTIONS \
- "IPv4 unicast topology\n" \
- "IPv4 management topology\n" \
- "IPv6 unicast topology\n" \
- "IPv4 multicast topology\n" \
- "IPv6 multicast topology\n" \
- "IPv6 management topology\n"
-
-#define ISIS_MT_INFO_FIELDS \
- uint16_t mtid;
+#define ISIS_MT_NAMES \
+ "<ipv4-unicast" \
+ "|ipv4-mgmt" \
+ "|ipv6-unicast" \
+ "|ipv4-multicast" \
+ "|ipv6-multicast" \
+ "|ipv6-mgmt" \
+ ">"
+
+#define ISIS_MT_DESCRIPTIONS \
+ "IPv4 unicast topology\n" \
+ "IPv4 management topology\n" \
+ "IPv6 unicast topology\n" \
+ "IPv4 multicast topology\n" \
+ "IPv6 multicast topology\n" \
+ "IPv6 management topology\n"
+
+#define ISIS_MT_INFO_FIELDS uint16_t mtid;
struct list;
struct isis_area_mt_setting {
- ISIS_MT_INFO_FIELDS
- bool enabled;
- bool overload;
+ ISIS_MT_INFO_FIELDS
+ bool enabled;
+ bool overload;
};
struct isis_circuit_mt_setting {
- ISIS_MT_INFO_FIELDS
- bool enabled;
+ ISIS_MT_INFO_FIELDS
+ bool enabled;
};
struct tlv_mt_neighbors {
- ISIS_MT_INFO_FIELDS
- struct list *list;
+ ISIS_MT_INFO_FIELDS
+ struct list *list;
};
struct tlv_mt_ipv4_reachs {
- ISIS_MT_INFO_FIELDS
- struct list *list;
+ ISIS_MT_INFO_FIELDS
+ struct list *list;
};
struct tlv_mt_ipv6_reachs {
- ISIS_MT_INFO_FIELDS
- struct list *list;
+ ISIS_MT_INFO_FIELDS
+ struct list *list;
};
const char *isis_mtid2str(uint16_t mtid);
@@ -91,55 +90,59 @@ struct te_is_neigh;
uint16_t isis_area_ipv6_topology(struct isis_area *area);
-struct mt_router_info* tlvs_lookup_mt_router_info(struct tlvs *tlvs, uint16_t mtid);
+struct mt_router_info *tlvs_lookup_mt_router_info(struct tlvs *tlvs,
+ uint16_t mtid);
-struct tlv_mt_neighbors* tlvs_lookup_mt_neighbors(struct tlvs *tlvs, uint16_t mtid);
-struct tlv_mt_neighbors* tlvs_get_mt_neighbors(struct tlvs *tlvs, uint16_t mtid);
+struct tlv_mt_neighbors *tlvs_lookup_mt_neighbors(struct tlvs *tlvs,
+ uint16_t mtid);
+struct tlv_mt_neighbors *tlvs_get_mt_neighbors(struct tlvs *tlvs,
+ uint16_t mtid);
-struct tlv_mt_ipv4_reachs* tlvs_lookup_mt_ipv4_reachs(struct tlvs *tlvs, uint16_t mtid);
-struct tlv_mt_ipv4_reachs* tlvs_get_mt_ipv4_reachs(struct tlvs *tlvs, uint16_t mtid);
+struct tlv_mt_ipv4_reachs *tlvs_lookup_mt_ipv4_reachs(struct tlvs *tlvs,
+ uint16_t mtid);
+struct tlv_mt_ipv4_reachs *tlvs_get_mt_ipv4_reachs(struct tlvs *tlvs,
+ uint16_t mtid);
-struct tlv_mt_ipv6_reachs* tlvs_lookup_mt_ipv6_reachs(struct tlvs *tlvs, uint16_t mtid);
-struct tlv_mt_ipv6_reachs* tlvs_get_mt_ipv6_reachs(struct tlvs *tlvs, uint16_t mtid);
+struct tlv_mt_ipv6_reachs *tlvs_lookup_mt_ipv6_reachs(struct tlvs *tlvs,
+ uint16_t mtid);
+struct tlv_mt_ipv6_reachs *tlvs_get_mt_ipv6_reachs(struct tlvs *tlvs,
+ uint16_t mtid);
-struct isis_area_mt_setting* area_lookup_mt_setting(struct isis_area *area,
- uint16_t mtid);
-struct isis_area_mt_setting* area_new_mt_setting(struct isis_area *area,
- uint16_t mtid);
+struct isis_area_mt_setting *area_lookup_mt_setting(struct isis_area *area,
+ uint16_t mtid);
+struct isis_area_mt_setting *area_new_mt_setting(struct isis_area *area,
+ uint16_t mtid);
void area_add_mt_setting(struct isis_area *area,
- struct isis_area_mt_setting *setting);
+ struct isis_area_mt_setting *setting);
void area_mt_init(struct isis_area *area);
void area_mt_finish(struct isis_area *area);
-struct isis_area_mt_setting* area_get_mt_setting(struct isis_area *area,
- uint16_t mtid);
+struct isis_area_mt_setting *area_get_mt_setting(struct isis_area *area,
+ uint16_t mtid);
int area_write_mt_settings(struct isis_area *area, struct vty *vty);
bool area_is_mt(struct isis_area *area);
-struct isis_area_mt_setting** area_mt_settings(struct isis_area *area,
- unsigned int *mt_count);
-
-struct isis_circuit_mt_setting* circuit_lookup_mt_setting(
- struct isis_circuit *circuit,
- uint16_t mtid);
-struct isis_circuit_mt_setting* circuit_new_mt_setting(
- struct isis_circuit *circuit,
- uint16_t mtid);
+struct isis_area_mt_setting **area_mt_settings(struct isis_area *area,
+ unsigned int *mt_count);
+
+struct isis_circuit_mt_setting *
+circuit_lookup_mt_setting(struct isis_circuit *circuit, uint16_t mtid);
+struct isis_circuit_mt_setting *
+circuit_new_mt_setting(struct isis_circuit *circuit, uint16_t mtid);
void circuit_add_mt_setting(struct isis_circuit *circuit,
- struct isis_circuit_mt_setting *setting);
+ struct isis_circuit_mt_setting *setting);
void circuit_mt_init(struct isis_circuit *circuit);
void circuit_mt_finish(struct isis_circuit *circuit);
-struct isis_circuit_mt_setting* circuit_get_mt_setting(
- struct isis_circuit *circuit,
- uint16_t mtid);
+struct isis_circuit_mt_setting *
+circuit_get_mt_setting(struct isis_circuit *circuit, uint16_t mtid);
int circuit_write_mt_settings(struct isis_circuit *circuit, struct vty *vty);
-struct isis_circuit_mt_setting** circuit_mt_settings(struct isis_circuit *circuit,
- unsigned int *mt_count);
+struct isis_circuit_mt_setting **
+circuit_mt_settings(struct isis_circuit *circuit, unsigned int *mt_count);
bool tlvs_to_adj_mt_set(struct tlvs *tlvs, bool v4_usable, bool v6_usable,
- struct isis_adjacency *adj);
+ struct isis_adjacency *adj);
bool adj_has_mt(struct isis_adjacency *adj, uint16_t mtid);
void adj_mt_finish(struct isis_adjacency *adj);
void tlvs_add_mt_bcast(struct tlvs *tlvs, struct isis_circuit *circuit,
- int level, struct te_is_neigh *neigh);
+ int level, struct te_is_neigh *neigh);
void tlvs_add_mt_p2p(struct tlvs *tlvs, struct isis_circuit *circuit,
- struct te_is_neigh *neigh);
+ struct te_is_neigh *neigh);
#endif