]>
git.proxmox.com Git - mirror_frr.git/blob - isisd/isis_mt.h
2 * IS-IS Rout(e)ing protocol - Multi Topology Support
4 * Copyright (C) 2017 Christian Franke
6 * This file is part of FreeRangeRouting (FRR)
8 * FRR is free software; you can redistribute it and/or modify it
9 * under the terms of the GNU General Public License as published by the
10 * Free Software Foundation; either version 2, or (at your option) any
13 * FRR is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with FRR; see the file COPYING. If not, write to the Free
20 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
26 #define ISIS_MT_IPV4_UNICAST 0
27 #define ISIS_MT_IPV4_MGMT 1
28 #define ISIS_MT_IPV6_UNICAST 2
29 #define ISIS_MT_IPV4_MULTICAST 3
30 #define ISIS_MT_IPV6_MULTICAST 4
31 #define ISIS_MT_IPV6_MGMT 5
33 #define ISIS_MT_NAMES \
42 #define ISIS_MT_DESCRIPTIONS \
43 "IPv4 unicast topology\n" \
44 "IPv4 management topology\n" \
45 "IPv6 unicast topology\n" \
46 "IPv4 multicast topology\n" \
47 "IPv6 multicast topology\n" \
48 "IPv6 management topology\n"
50 #define ISIS_MT_INFO_FIELDS \
53 struct isis_area_mt_setting
{
59 struct isis_circuit_mt_setting
{
64 const char *isis_mtid2str(uint16_t mtid
);
65 uint16_t isis_str2mtid(const char *name
);
70 struct isis_area_mt_setting
* area_lookup_mt_setting(struct isis_area
*area
,
72 struct isis_area_mt_setting
* area_new_mt_setting(struct isis_area
*area
,
74 void area_add_mt_setting(struct isis_area
*area
,
75 struct isis_area_mt_setting
*setting
);
77 void area_mt_init(struct isis_area
*area
);
78 void area_mt_finish(struct isis_area
*area
);
79 struct isis_area_mt_setting
* area_get_mt_setting(struct isis_area
*area
,
81 int area_write_mt_settings(struct isis_area
*area
, struct vty
*vty
);
83 struct isis_circuit_mt_setting
* circuit_lookup_mt_setting(
84 struct isis_circuit
*circuit
,
86 struct isis_circuit_mt_setting
* circuit_new_mt_setting(
87 struct isis_circuit
*circuit
,
89 void circuit_add_mt_setting(struct isis_circuit
*circuit
,
90 struct isis_circuit_mt_setting
*setting
);
91 void circuit_mt_init(struct isis_circuit
*circuit
);
92 void circuit_mt_finish(struct isis_circuit
*circuit
);
93 struct isis_circuit_mt_setting
* circuit_get_mt_setting(
94 struct isis_circuit
*circuit
,
96 int circuit_write_mt_settings(struct isis_circuit
*circuit
, struct vty
*vty
);