paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | /* |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 2 | * Copyright (C) 2003 Yasuhiro Ohara |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 3 | * |
| 4 | * This file is part of GNU Zebra. |
| 5 | * |
| 6 | * GNU Zebra is free software; you can redistribute it and/or modify it |
| 7 | * under the terms of the GNU General Public License as published by the |
| 8 | * Free Software Foundation; either version 2, or (at your option) any |
| 9 | * later version. |
| 10 | * |
| 11 | * GNU Zebra is distributed in the hope that it will be useful, but |
| 12 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 | * General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with GNU Zebra; see the file COPYING. If not, write to the |
| 18 | * Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
| 19 | * Boston, MA 02111-1307, USA. |
| 20 | */ |
| 21 | |
| 22 | #ifndef OSPF6_ROUTE_H |
| 23 | #define OSPF6_ROUTE_H |
| 24 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 25 | #define OSPF6_MULTI_PATH_LIMIT 4 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 26 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 27 | /* Debug option */ |
| 28 | extern unsigned char conf_debug_ospf6_route; |
| 29 | #define OSPF6_DEBUG_ROUTE_TABLE 0x01 |
| 30 | #define OSPF6_DEBUG_ROUTE_INTRA 0x02 |
| 31 | #define OSPF6_DEBUG_ROUTE_INTER 0x04 |
Paul Jakma | cf1ce25 | 2006-05-15 10:46:07 +0000 | [diff] [blame] | 32 | #define OSPF6_DEBUG_ROUTE_MEMORY 0x80 |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 33 | #define OSPF6_DEBUG_ROUTE_ON(level) \ |
| 34 | (conf_debug_ospf6_route |= (level)) |
| 35 | #define OSPF6_DEBUG_ROUTE_OFF(level) \ |
| 36 | (conf_debug_ospf6_route &= ~(level)) |
| 37 | #define IS_OSPF6_DEBUG_ROUTE(e) \ |
| 38 | (conf_debug_ospf6_route & OSPF6_DEBUG_ROUTE_ ## e) |
| 39 | |
| 40 | /* Nexthop */ |
| 41 | struct ospf6_nexthop |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 42 | { |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 43 | /* Interface index */ |
| 44 | unsigned int ifindex; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 45 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 46 | /* IP address, if any */ |
| 47 | struct in6_addr address; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 48 | }; |
| 49 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 50 | #define ospf6_nexthop_is_set(x) \ |
| 51 | ((x)->ifindex || ! IN6_IS_ADDR_UNSPECIFIED (&(x)->address)) |
| 52 | #define ospf6_nexthop_is_same(a,b) \ |
| 53 | ((a)->ifindex == (b)->ifindex && \ |
| 54 | IN6_ARE_ADDR_EQUAL (&(a)->address, &(b)->address)) |
| 55 | #define ospf6_nexthop_clear(x) \ |
| 56 | do { \ |
| 57 | (x)->ifindex = 0; \ |
| 58 | memset (&(x)->address, 0, sizeof (struct in6_addr)); \ |
| 59 | } while (0) |
| 60 | #define ospf6_nexthop_copy(a, b) \ |
| 61 | do { \ |
| 62 | (a)->ifindex = (b)->ifindex; \ |
| 63 | memcpy (&(a)->address, &(b)->address, \ |
| 64 | sizeof (struct in6_addr)); \ |
| 65 | } while (0) |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 66 | |
| 67 | /* Path */ |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 68 | struct ospf6_ls_origin |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 69 | { |
| 70 | u_int16_t type; |
| 71 | u_int32_t id; |
| 72 | u_int32_t adv_router; |
| 73 | }; |
| 74 | |
| 75 | struct ospf6_path |
| 76 | { |
| 77 | /* Link State Origin */ |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 78 | struct ospf6_ls_origin origin; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 79 | |
| 80 | /* Router bits */ |
| 81 | u_char router_bits; |
| 82 | |
| 83 | /* Optional Capabilities */ |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 84 | u_char options[3]; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 85 | |
| 86 | /* Prefix Options */ |
| 87 | u_char prefix_options; |
| 88 | |
| 89 | /* Associated Area */ |
| 90 | u_int32_t area_id; |
| 91 | |
| 92 | /* Path-type */ |
| 93 | u_char type; |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 94 | u_char subtype; /* only used for redistribute i.e ZEBRA_ROUTE_XXX */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 95 | |
| 96 | /* Cost */ |
| 97 | u_int8_t metric_type; |
| 98 | u_int32_t cost; |
| 99 | u_int32_t cost_e2; |
| 100 | }; |
| 101 | |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 102 | #define OSPF6_PATH_TYPE_NONE 0 |
| 103 | #define OSPF6_PATH_TYPE_INTRA 1 |
| 104 | #define OSPF6_PATH_TYPE_INTER 2 |
| 105 | #define OSPF6_PATH_TYPE_EXTERNAL1 3 |
| 106 | #define OSPF6_PATH_TYPE_EXTERNAL2 4 |
| 107 | #define OSPF6_PATH_TYPE_REDISTRIBUTE 5 |
| 108 | #define OSPF6_PATH_TYPE_MAX 6 |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 109 | |
| 110 | #include "prefix.h" |
| 111 | #include "table.h" |
| 112 | |
| 113 | struct ospf6_route |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 114 | { |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 115 | struct route_node *rnode; |
Paul Jakma | cf1ce25 | 2006-05-15 10:46:07 +0000 | [diff] [blame] | 116 | struct ospf6_route_table *table; |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 117 | struct ospf6_route *prev; |
| 118 | struct ospf6_route *next; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 119 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 120 | unsigned int lock; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 121 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 122 | /* Destination Type */ |
| 123 | u_char type; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 124 | |
Paul Jakma | 7aa9dce | 2014-09-19 14:42:23 +0100 | [diff] [blame] | 125 | /* XXX: It would likely be better to use separate struct in_addr's |
| 126 | * for the advertising router-ID and prefix IDs, instead of stuffing them |
| 127 | * into one. See also XXX below. |
| 128 | */ |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 129 | /* Destination ID */ |
| 130 | struct prefix prefix; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 131 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 132 | /* Time */ |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 133 | struct timeval installed; |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 134 | struct timeval changed; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 135 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 136 | /* flag */ |
| 137 | u_char flag; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 138 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 139 | /* path */ |
| 140 | struct ospf6_path path; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 141 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 142 | /* nexthop */ |
| 143 | struct ospf6_nexthop nexthop[OSPF6_MULTI_PATH_LIMIT]; |
| 144 | |
| 145 | /* route option */ |
| 146 | void *route_option; |
hasso | 049207c | 2004-08-04 20:02:13 +0000 | [diff] [blame] | 147 | |
| 148 | /* link state id for advertising */ |
| 149 | u_int32_t linkstate_id; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 150 | }; |
| 151 | |
| 152 | #define OSPF6_DEST_TYPE_NONE 0 |
| 153 | #define OSPF6_DEST_TYPE_ROUTER 1 |
| 154 | #define OSPF6_DEST_TYPE_NETWORK 2 |
| 155 | #define OSPF6_DEST_TYPE_DISCARD 3 |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 156 | #define OSPF6_DEST_TYPE_LINKSTATE 4 |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 157 | #define OSPF6_DEST_TYPE_RANGE 5 |
| 158 | #define OSPF6_DEST_TYPE_MAX 6 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 159 | |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 160 | #define OSPF6_ROUTE_CHANGE 0x01 |
| 161 | #define OSPF6_ROUTE_ADD 0x02 |
| 162 | #define OSPF6_ROUTE_REMOVE 0x04 |
| 163 | #define OSPF6_ROUTE_BEST 0x08 |
hasso | 4846ef6 | 2004-09-03 06:04:00 +0000 | [diff] [blame] | 164 | #define OSPF6_ROUTE_ACTIVE_SUMMARY 0x10 |
| 165 | #define OSPF6_ROUTE_DO_NOT_ADVERTISE 0x20 |
hasso | 9428f2d | 2004-09-13 14:01:12 +0000 | [diff] [blame] | 166 | #define OSPF6_ROUTE_WAS_REMOVED 0x40 |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 167 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 168 | struct ospf6_route_table |
| 169 | { |
Paul Jakma | cf1ce25 | 2006-05-15 10:46:07 +0000 | [diff] [blame] | 170 | int scope_type; |
| 171 | int table_type; |
| 172 | void *scope; |
| 173 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 174 | /* patricia tree */ |
| 175 | struct route_table *table; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 176 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 177 | u_int32_t count; |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 178 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 179 | /* hooks */ |
| 180 | void (*hook_add) (struct ospf6_route *); |
| 181 | void (*hook_change) (struct ospf6_route *); |
| 182 | void (*hook_remove) (struct ospf6_route *); |
| 183 | }; |
| 184 | |
Paul Jakma | cf1ce25 | 2006-05-15 10:46:07 +0000 | [diff] [blame] | 185 | #define OSPF6_SCOPE_TYPE_NONE 0 |
| 186 | #define OSPF6_SCOPE_TYPE_GLOBAL 1 |
| 187 | #define OSPF6_SCOPE_TYPE_AREA 2 |
| 188 | #define OSPF6_SCOPE_TYPE_INTERFACE 3 |
| 189 | |
| 190 | #define OSPF6_TABLE_TYPE_NONE 0 |
| 191 | #define OSPF6_TABLE_TYPE_ROUTES 1 |
| 192 | #define OSPF6_TABLE_TYPE_BORDER_ROUTERS 2 |
| 193 | #define OSPF6_TABLE_TYPE_CONNECTED_ROUTES 3 |
| 194 | #define OSPF6_TABLE_TYPE_EXTERNAL_ROUTES 4 |
| 195 | #define OSPF6_TABLE_TYPE_SPF_RESULTS 5 |
| 196 | #define OSPF6_TABLE_TYPE_PREFIX_RANGES 6 |
| 197 | #define OSPF6_TABLE_TYPE_SUMMARY_PREFIXES 7 |
| 198 | #define OSPF6_TABLE_TYPE_SUMMARY_ROUTERS 8 |
| 199 | |
| 200 | #define OSPF6_ROUTE_TABLE_CREATE(s, t) \ |
| 201 | ospf6_route_table_create (OSPF6_SCOPE_TYPE_ ## s, \ |
| 202 | OSPF6_TABLE_TYPE_ ## t) |
| 203 | |
paul | 0c083ee | 2004-10-10 12:54:58 +0000 | [diff] [blame] | 204 | extern const char *ospf6_dest_type_str[OSPF6_DEST_TYPE_MAX]; |
| 205 | extern const char *ospf6_dest_type_substr[OSPF6_DEST_TYPE_MAX]; |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 206 | #define OSPF6_DEST_TYPE_NAME(x) \ |
| 207 | (0 < (x) && (x) < OSPF6_DEST_TYPE_MAX ? \ |
| 208 | ospf6_dest_type_str[(x)] : ospf6_dest_type_str[0]) |
| 209 | #define OSPF6_DEST_TYPE_SUBSTR(x) \ |
| 210 | (0 < (x) && (x) < OSPF6_DEST_TYPE_MAX ? \ |
| 211 | ospf6_dest_type_substr[(x)] : ospf6_dest_type_substr[0]) |
| 212 | |
paul | 0c083ee | 2004-10-10 12:54:58 +0000 | [diff] [blame] | 213 | extern const char *ospf6_path_type_str[OSPF6_PATH_TYPE_MAX]; |
| 214 | extern const char *ospf6_path_type_substr[OSPF6_PATH_TYPE_MAX]; |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 215 | #define OSPF6_PATH_TYPE_NAME(x) \ |
| 216 | (0 < (x) && (x) < OSPF6_PATH_TYPE_MAX ? \ |
| 217 | ospf6_path_type_str[(x)] : ospf6_path_type_str[0]) |
| 218 | #define OSPF6_PATH_TYPE_SUBSTR(x) \ |
| 219 | (0 < (x) && (x) < OSPF6_PATH_TYPE_MAX ? \ |
| 220 | ospf6_path_type_substr[(x)] : ospf6_path_type_substr[0]) |
| 221 | |
| 222 | #define OSPF6_ROUTE_ADDRESS_STR "Display the route bestmatches the address\n" |
| 223 | #define OSPF6_ROUTE_PREFIX_STR "Display the route\n" |
| 224 | #define OSPF6_ROUTE_MATCH_STR "Display the route matches the prefix\n" |
| 225 | |
| 226 | #define ospf6_route_is_prefix(p, r) \ |
| 227 | (memcmp (p, &(r)->prefix, sizeof (struct prefix)) == 0) |
| 228 | #define ospf6_route_is_same(ra, rb) \ |
| 229 | (prefix_same (&(ra)->prefix, &(rb)->prefix)) |
| 230 | #define ospf6_route_is_same_origin(ra, rb) \ |
| 231 | ((ra)->path.area_id == (rb)->path.area_id && \ |
| 232 | memcmp (&(ra)->path.origin, &(rb)->path.origin, \ |
| 233 | sizeof (struct ospf6_ls_origin)) == 0) |
| 234 | #define ospf6_route_is_identical(ra, rb) \ |
| 235 | ((ra)->type == (rb)->type && \ |
| 236 | memcmp (&(ra)->prefix, &(rb)->prefix, sizeof (struct prefix)) == 0 && \ |
| 237 | memcmp (&(ra)->path, &(rb)->path, sizeof (struct ospf6_path)) == 0 && \ |
| 238 | memcmp (&(ra)->nexthop, &(rb)->nexthop, \ |
| 239 | sizeof (struct ospf6_nexthop) * OSPF6_MULTI_PATH_LIMIT) == 0) |
| 240 | #define ospf6_route_is_best(r) (CHECK_FLAG ((r)->flag, OSPF6_ROUTE_BEST)) |
| 241 | |
| 242 | #define ospf6_linkstate_prefix_adv_router(x) \ |
David Lamparter | 0de0138 | 2015-03-03 10:30:27 +0100 | [diff] [blame] | 243 | ((x)->u.lp.id.s_addr) |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 244 | #define ospf6_linkstate_prefix_id(x) \ |
David Lamparter | 0de0138 | 2015-03-03 10:30:27 +0100 | [diff] [blame] | 245 | ((x)->u.lp.adv_router.s_addr) |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 246 | |
hasso | 3b68735 | 2004-08-19 06:56:53 +0000 | [diff] [blame] | 247 | #define ADV_ROUTER_IN_PREFIX(x) \ |
David Lamparter | 0de0138 | 2015-03-03 10:30:27 +0100 | [diff] [blame] | 248 | ((x)->u.lp.id.s_addr) |
hasso | ccb59b1 | 2004-08-25 09:10:37 +0000 | [diff] [blame] | 249 | #define ID_IN_PREFIX(x) \ |
David Lamparter | 0de0138 | 2015-03-03 10:30:27 +0100 | [diff] [blame] | 250 | ((x)->u.lp.adv_router.s_addr) |
hasso | 3b68735 | 2004-08-19 06:56:53 +0000 | [diff] [blame] | 251 | |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 252 | /* Function prototype */ |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 253 | extern void ospf6_linkstate_prefix (u_int32_t adv_router, u_int32_t id, |
| 254 | struct prefix *prefix); |
| 255 | extern void ospf6_linkstate_prefix2str (struct prefix *prefix, char *buf, |
| 256 | int size); |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 257 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 258 | extern struct ospf6_route *ospf6_route_create (void); |
| 259 | extern void ospf6_route_delete (struct ospf6_route *); |
| 260 | extern struct ospf6_route *ospf6_route_copy (struct ospf6_route *route); |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 261 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 262 | extern void ospf6_route_lock (struct ospf6_route *route); |
| 263 | extern void ospf6_route_unlock (struct ospf6_route *route); |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 264 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 265 | extern struct ospf6_route *ospf6_route_lookup (struct prefix *prefix, |
| 266 | struct ospf6_route_table *table); |
| 267 | extern struct ospf6_route *ospf6_route_lookup_identical (struct ospf6_route *route, |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 268 | struct ospf6_route_table *table); |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 269 | extern struct ospf6_route *ospf6_route_lookup_bestmatch (struct prefix *prefix, |
| 270 | struct ospf6_route_table *table); |
| 271 | |
| 272 | extern struct ospf6_route *ospf6_route_add (struct ospf6_route *route, |
| 273 | struct ospf6_route_table *table); |
| 274 | extern void ospf6_route_remove (struct ospf6_route *route, |
| 275 | struct ospf6_route_table *table); |
| 276 | |
| 277 | extern struct ospf6_route *ospf6_route_head (struct ospf6_route_table *table); |
| 278 | extern struct ospf6_route *ospf6_route_next (struct ospf6_route *route); |
| 279 | extern struct ospf6_route *ospf6_route_best_next (struct ospf6_route *route); |
| 280 | |
| 281 | extern struct ospf6_route *ospf6_route_match_head (struct prefix *prefix, |
| 282 | struct ospf6_route_table *table); |
| 283 | extern struct ospf6_route *ospf6_route_match_next (struct prefix *prefix, |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 284 | struct ospf6_route *route); |
| 285 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 286 | extern void ospf6_route_remove_all (struct ospf6_route_table *); |
| 287 | extern struct ospf6_route_table *ospf6_route_table_create (int s, int t); |
| 288 | extern void ospf6_route_table_delete (struct ospf6_route_table *); |
| 289 | extern void ospf6_route_dump (struct ospf6_route_table *table); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 290 | |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 291 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 292 | extern void ospf6_route_show (struct vty *vty, struct ospf6_route *route); |
| 293 | extern void ospf6_route_show_detail (struct vty *vty, struct ospf6_route *route); |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 294 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 295 | extern int ospf6_route_table_show (struct vty *, int, const char *[], |
| 296 | struct ospf6_route_table *); |
| 297 | extern int ospf6_linkstate_table_show (struct vty *vty, int argc, |
| 298 | const char *argv[], |
| 299 | struct ospf6_route_table *table); |
hasso | 508e53e | 2004-05-18 18:57:06 +0000 | [diff] [blame] | 300 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 301 | extern void ospf6_brouter_show_header (struct vty *vty); |
| 302 | extern void ospf6_brouter_show (struct vty *vty, struct ospf6_route *route); |
hasso | 6452df0 | 2004-08-15 05:52:07 +0000 | [diff] [blame] | 303 | |
Paul Jakma | 6ac29a5 | 2008-08-15 13:45:30 +0100 | [diff] [blame] | 304 | extern int config_write_ospf6_debug_route (struct vty *vty); |
| 305 | extern void install_element_ospf6_debug_route (void); |
| 306 | extern void ospf6_route_init (void); |
Phil Laverdiere | ef2d5d1 | 2012-01-02 20:04:26 +0400 | [diff] [blame] | 307 | extern void ospf6_clean (void); |
paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 308 | |
| 309 | #endif /* OSPF6_ROUTE_H */ |
| 310 | |