]> git.proxmox.com Git - mirror_frr.git/blob - ospfd/ospfd.h
Merge pull request #1430 from chiragshah6/ospf_vrf_dev
[mirror_frr.git] / ospfd / ospfd.h
1 /*
2 * OSPFd main header.
3 * Copyright (C) 1998, 99, 2000 Kunihiro Ishiguro, Toshiaki Takada
4 *
5 * This file is part of GNU Zebra.
6 *
7 * GNU Zebra is free software; you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation; either version 2, or (at your option) any
10 * later version.
11 *
12 * GNU Zebra is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; see the file COPYING; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22 #ifndef _ZEBRA_OSPFD_H
23 #define _ZEBRA_OSPFD_H
24
25 #include <zebra.h>
26 #include "qobj.h"
27 #include "libospf.h"
28
29 #include "filter.h"
30 #include "log.h"
31 #include "vrf.h"
32
33 #include "ospf_memory.h"
34 #include "ospf_dump_api.h"
35
36 #define OSPF_VERSION 2
37
38 /* VTY port number. */
39 #define OSPF_VTY_PORT 2604
40
41 /* IP TTL for OSPF protocol. */
42 #define OSPF_IP_TTL 1
43 #define OSPF_VL_IP_TTL 100
44
45 /* Default configuration file name for ospfd. */
46 #define OSPF_DEFAULT_CONFIG "ospfd.conf"
47
48 #define OSPF_NSSA_TRANS_STABLE_DEFAULT 40
49
50 #define OSPF_ALLSPFROUTERS 0xe0000005 /* 224.0.0.5 */
51 #define OSPF_ALLDROUTERS 0xe0000006 /* 224.0.0.6 */
52
53 /* OSPF Authentication Type. */
54 #define OSPF_AUTH_NULL 0
55 #define OSPF_AUTH_SIMPLE 1
56 #define OSPF_AUTH_CRYPTOGRAPHIC 2
57 /* For Interface authentication setting default */
58 #define OSPF_AUTH_NOTSET -1
59 /* For the consumption and sanity of the command handler */
60 /* DO NIOT REMOVE!!! Need to detect whether a value has
61 been given or not in VLink command handlers */
62 #define OSPF_AUTH_CMD_NOTSEEN -2
63
64 /* OSPF options. */
65 #define OSPF_OPTION_MT 0x01 /* M/T */
66 #define OSPF_OPTION_E 0x02
67 #define OSPF_OPTION_MC 0x04
68 #define OSPF_OPTION_NP 0x08
69 #define OSPF_OPTION_EA 0x10
70 #define OSPF_OPTION_DC 0x20
71 #define OSPF_OPTION_O 0x40
72 #define OSPF_OPTION_DN 0x80
73
74 /* OSPF Database Description flags. */
75 #define OSPF_DD_FLAG_MS 0x01
76 #define OSPF_DD_FLAG_M 0x02
77 #define OSPF_DD_FLAG_I 0x04
78 #define OSPF_DD_FLAG_ALL 0x07
79
80 #define OSPF_LS_REFRESH_SHIFT (60 * 15)
81 #define OSPF_LS_REFRESH_JITTER 60
82
83 struct ospf_external {
84 u_short instance;
85 struct route_table *external_info;
86 };
87
88 /* OSPF master for system wide configuration and variables. */
89 struct ospf_master {
90 /* OSPF instance. */
91 struct list *ospf;
92
93 /* OSPF thread master. */
94 struct thread_master *master;
95
96
97 /* Redistributed external information. */
98 struct list *external[ZEBRA_ROUTE_MAX + 1];
99 #define EXTERNAL_INFO(E) (E->external_info)
100
101 /* Various OSPF global configuration. */
102 u_char options;
103 #define OSPF_MASTER_SHUTDOWN (1 << 0) /* deferred-shutdown */
104 };
105
106 struct ospf_redist {
107 u_short instance;
108
109 /* Redistribute metric info. */
110 struct {
111 int type; /* External metric type (E1 or E2). */
112 int value; /* Value for static metric (24-bit).
113 -1 means metric value is not set. */
114 } dmetric;
115
116 /* For redistribute route map. */
117 struct {
118 char *name;
119 struct route_map *map;
120 } route_map; /* +1 is for default-information */
121 #define ROUTEMAP_NAME(R) (R->route_map.name)
122 #define ROUTEMAP(R) (R->route_map.map)
123 };
124
125 /* OSPF instance structure. */
126 struct ospf {
127 /* OSPF's running state based on the '[no] router ospf [<instance>]'
128 * config. */
129 u_char oi_running;
130
131 /* OSPF instance ID */
132 u_short instance;
133
134 /* OSPF Router ID. */
135 struct in_addr router_id; /* Configured automatically. */
136 struct in_addr router_id_static; /* Configured manually. */
137 struct in_addr router_id_zebra;
138
139 vrf_id_t vrf_id; /* VRF Id */
140 char *name; /* VRF name */
141
142 /* ABR/ASBR internal flags. */
143 u_char flags;
144 #define OSPF_FLAG_ABR 0x0001
145 #define OSPF_FLAG_ASBR 0x0002
146
147 /* ABR type. */
148 u_char abr_type;
149 #define OSPF_ABR_UNKNOWN 0
150 #define OSPF_ABR_STAND 1
151 #define OSPF_ABR_IBM 2
152 #define OSPF_ABR_CISCO 3
153 #define OSPF_ABR_SHORTCUT 4
154 #define OSPF_ABR_DEFAULT OSPF_ABR_CISCO
155
156 /* NSSA ABR */
157 u_char anyNSSA; /* Bump for every NSSA attached. */
158
159 /* Configured variables. */
160 u_char config;
161 #define OSPF_RFC1583_COMPATIBLE (1 << 0)
162 #define OSPF_OPAQUE_CAPABLE (1 << 2)
163 #define OSPF_LOG_ADJACENCY_CHANGES (1 << 3)
164 #define OSPF_LOG_ADJACENCY_DETAIL (1 << 4)
165
166 /* Opaque-LSA administrative flags. */
167 u_char opaque;
168 #define OPAQUE_OPERATION_READY_BIT (1 << 0)
169
170 /* RFC3137 stub router. Configured time to stay stub / max-metric */
171 unsigned int stub_router_startup_time; /* seconds */
172 unsigned int stub_router_shutdown_time; /* seconds */
173 /* $FRR indent$ */
174 /* clang-format off */
175 #define OSPF_STUB_ROUTER_UNCONFIGURED 0
176 u_char stub_router_admin_set;
177 #define OSPF_STUB_ROUTER_ADMINISTRATIVE_SET 1
178 #define OSPF_STUB_ROUTER_ADMINISTRATIVE_UNSET 0
179
180 #define OSPF_STUB_MAX_METRIC_SUMMARY_COST 0x00ff0000
181
182 /* LSA timers */
183 unsigned int min_ls_interval; /* minimum delay between LSAs (in msec) */
184 unsigned int min_ls_arrival; /* minimum interarrival time between LSAs
185 (in msec) */
186
187 /* SPF parameters */
188 unsigned int spf_delay; /* SPF delay time. */
189 unsigned int spf_holdtime; /* SPF hold time. */
190 unsigned int spf_max_holdtime; /* SPF maximum-holdtime */
191 unsigned int
192 spf_hold_multiplier; /* Adaptive multiplier for hold time */
193
194 int default_originate; /* Default information originate. */
195 /* $FRR indent$ */
196 /* clang-format off */
197 #define DEFAULT_ORIGINATE_NONE 0
198 #define DEFAULT_ORIGINATE_ZEBRA 1
199 #define DEFAULT_ORIGINATE_ALWAYS 2
200 u_int32_t ref_bandwidth; /* Reference Bandwidth (Kbps). */
201 struct route_table *networks; /* OSPF config networks. */
202 struct list *vlinks; /* Configured Virtual-Links. */
203 struct list *areas; /* OSPF areas. */
204 struct route_table *nbr_nbma;
205 struct ospf_area *backbone; /* Pointer to the Backbone Area. */
206
207 struct list *oiflist; /* ospf interfaces */
208 u_char passive_interface_default; /* passive-interface default */
209
210 /* LSDB of AS-external-LSAs. */
211 struct ospf_lsdb *lsdb;
212
213 /* Flags. */
214 int external_origin; /* AS-external-LSA origin flag. */
215 int ase_calc; /* ASE calculation flag. */
216
217 struct list *opaque_lsa_self; /* Type-11 Opaque-LSAs */
218
219 /* Routing tables. */
220 struct route_table *old_table; /* Old routing table. */
221 struct route_table *new_table; /* Current routing table. */
222
223 struct route_table *old_rtrs; /* Old ABR/ASBR RT. */
224 struct route_table *new_rtrs; /* New ABR/ASBR RT. */
225
226 struct route_table *new_external_route; /* New External Route. */
227 struct route_table *old_external_route; /* Old External Route. */
228
229 struct route_table *external_lsas; /* Database of external LSAs,
230 prefix is LSA's adv. network*/
231
232 /* Time stamps */
233 struct timeval ts_spf; /* SPF calculation time stamp. */
234 struct timeval ts_spf_duration; /* Execution time of last SPF */
235
236 struct route_table *maxage_lsa; /* List of MaxAge LSA for deletion. */
237 int redistribute; /* Num of redistributed protocols. */
238
239 /* Threads. */
240 struct thread *t_abr_task; /* ABR task timer. */
241 struct thread *t_asbr_check; /* ASBR check timer. */
242 struct thread *t_distribute_update; /* Distirbute list update timer. */
243 struct thread *t_spf_calc; /* SPF calculation timer. */
244 struct thread *t_ase_calc; /* ASE calculation timer. */
245 struct thread *t_external_lsa; /* AS-external-LSA origin timer. */
246 struct thread
247 *t_opaque_lsa_self; /* Type-11 Opaque-LSAs origin event. */
248
249 unsigned int maxage_delay; /* Delay on Maxage remover timer, sec */
250 struct thread *t_maxage; /* MaxAge LSA remover timer. */
251 struct thread *t_maxage_walker; /* MaxAge LSA checking timer. */
252
253 struct thread
254 *t_deferred_shutdown; /* deferred/stub-router shutdown timer*/
255
256 struct thread *t_write;
257 #define OSPF_WRITE_INTERFACE_COUNT_DEFAULT 20
258 int write_oi_count; /* Num of packets sent per thread invocation */
259 struct thread *t_read;
260 int fd;
261 struct stream *ibuf;
262 struct list *oi_write_q;
263
264 /* Distribute lists out of other route sources. */
265 struct {
266 char *name;
267 struct access_list *list;
268 } dlist[ZEBRA_ROUTE_MAX];
269 #define DISTRIBUTE_NAME(O,T) (O)->dlist[T].name
270 #define DISTRIBUTE_LIST(O,T) (O)->dlist[T].list
271
272 /* OSPF redistribute configuration */
273 struct list *redist[ZEBRA_ROUTE_MAX + 1];
274
275 /* Redistribute tag info. */
276 route_tag_t
277 dtag[ZEBRA_ROUTE_MAX + 1]; // Pending: cant configure as of now
278
279 int default_metric; /* Default metric for redistribute. */
280
281 #define OSPF_LSA_REFRESHER_GRANULARITY 10
282 #define OSPF_LSA_REFRESHER_SLOTS \
283 ((OSPF_LS_REFRESH_TIME + OSPF_LS_REFRESH_SHIFT) \
284 / OSPF_LSA_REFRESHER_GRANULARITY \
285 + 1)
286 struct {
287 u_int16_t index;
288 struct list *qs[OSPF_LSA_REFRESHER_SLOTS];
289 } lsa_refresh_queue;
290
291 struct thread *t_lsa_refresher;
292 time_t lsa_refresher_started;
293 #define OSPF_LSA_REFRESH_INTERVAL_DEFAULT 10
294 u_int16_t lsa_refresh_interval;
295
296 /* Distance parameter. */
297 u_char distance_all;
298 u_char distance_intra;
299 u_char distance_inter;
300 u_char distance_external;
301
302 /* Statistics for LSA origination. */
303 u_int32_t lsa_originate_count;
304
305 /* Statistics for LSA used for new instantiation. */
306 u_int32_t rx_lsa_count;
307
308 /* Counter of "ip ospf area x.x.x.x" */
309 u_int32_t if_ospf_cli_count;
310
311 struct route_table *distance_table;
312
313 /* Used during ospf instance going down send LSDB
314 * update to neighbors immediatly */
315 uint8_t inst_shutdown;
316
317 QOBJ_FIELDS
318 };
319 DECLARE_QOBJ_TYPE(ospf)
320
321 /* OSPF area structure. */
322 struct ospf_area {
323 /* OSPF instance. */
324 struct ospf *ospf;
325
326 /* Zebra interface list belonging to the area. */
327 struct list *oiflist;
328
329 /* Area ID. */
330 struct in_addr area_id;
331
332 /* Area ID format. */
333 int area_id_fmt;
334 #define OSPF_AREA_ID_FMT_DOTTEDQUAD 1
335 #define OSPF_AREA_ID_FMT_DECIMAL 2
336
337 /* Address range. */
338 struct list *address_range;
339
340 /* Configured variables. */
341 int external_routing; /* ExternalRoutingCapability. */
342 int no_summary; /* Don't inject summaries into stub.*/
343 int shortcut_configured; /* Area configured as shortcut. */
344 /* $FRR indent$ */
345 /* clang-format off */
346 #define OSPF_SHORTCUT_DEFAULT 0
347 #define OSPF_SHORTCUT_ENABLE 1
348 #define OSPF_SHORTCUT_DISABLE 2
349 int shortcut_capability; /* Other ABRs agree on S-bit */
350 u_int32_t default_cost; /* StubDefaultCost. */
351 int auth_type; /* Authentication type. */
352
353
354 u_char NSSATranslatorRole; /* NSSA configured role */
355 /* $FRR indent$ */
356 /* clang-format off */
357 #define OSPF_NSSA_ROLE_NEVER 0
358 #define OSPF_NSSA_ROLE_CANDIDATE 1
359 #define OSPF_NSSA_ROLE_ALWAYS 2
360 u_char NSSATranslatorState; /* NSSA operational role */
361 /* $FRR indent$ */
362 /* clang-format off */
363 #define OSPF_NSSA_TRANSLATE_DISABLED 0
364 #define OSPF_NSSA_TRANSLATE_ENABLED 1
365 int NSSATranslatorStabilityInterval;
366
367 u_char transit; /* TransitCapability. */
368 /* $FRR indent$ */
369 /* clang-format off */
370 #define OSPF_TRANSIT_FALSE 0
371 #define OSPF_TRANSIT_TRUE 1
372 struct route_table *ranges; /* Configured Area Ranges. */
373
374 /* RFC3137 stub router state flags for area */
375 u_char stub_router_state;
376 #define OSPF_AREA_ADMIN_STUB_ROUTED (1 << 0) /* admin stub-router set */
377 #define OSPF_AREA_IS_STUB_ROUTED (1 << 1) /* stub-router active */
378 #define OSPF_AREA_WAS_START_STUB_ROUTED (1 << 2) /* startup SR was done */
379 /* Area related LSDBs[Type1-4]. */
380 struct ospf_lsdb *lsdb;
381
382 /* Self-originated LSAs. */
383 struct ospf_lsa *router_lsa_self;
384 struct list *opaque_lsa_self; /* Type-10 Opaque-LSAs */
385
386 /* Area announce list. */
387 struct {
388 char *name;
389 struct access_list *list;
390 } _export;
391 #define EXPORT_NAME(A) (A)->_export.name
392 #define EXPORT_LIST(A) (A)->_export.list
393
394 /* Area acceptance list. */
395 struct {
396 char *name;
397 struct access_list *list;
398 } import;
399 #define IMPORT_NAME(A) (A)->import.name
400 #define IMPORT_LIST(A) (A)->import.list
401
402 /* Type 3 LSA Area prefix-list. */
403 struct {
404 char *name;
405 struct prefix_list *list;
406 } plist_in;
407 #define PREFIX_LIST_IN(A) (A)->plist_in.list
408 #define PREFIX_NAME_IN(A) (A)->plist_in.name
409
410 struct {
411 char *name;
412 struct prefix_list *list;
413 } plist_out;
414 #define PREFIX_LIST_OUT(A) (A)->plist_out.list
415 #define PREFIX_NAME_OUT(A) (A)->plist_out.name
416
417 /* Shortest Path Tree. */
418 struct vertex *spf;
419
420 /* Threads. */
421 struct thread *t_stub_router; /* Stub-router timer */
422 struct thread *t_opaque_lsa_self; /* Type-10 Opaque-LSAs origin. */
423
424 /* Statistics field. */
425 u_int32_t spf_calculation; /* SPF Calculation Count. */
426
427 /* Time stamps. */
428 struct timeval ts_spf; /* SPF calculation time stamp. */
429
430 /* Router count. */
431 u_int32_t abr_count; /* ABR router in this area. */
432 u_int32_t asbr_count; /* ASBR router in this area. */
433
434 /* Counters. */
435 u_int32_t act_ints; /* Active interfaces. */
436 u_int32_t full_nbrs; /* Fully adjacent neighbors. */
437 u_int32_t full_vls; /* Fully adjacent virtual neighbors. */
438 };
439
440 /* OSPF config network structure. */
441 struct ospf_network {
442 /* Area ID. */
443 struct in_addr area_id;
444 int area_id_fmt;
445 };
446
447 /* OSPF NBMA neighbor structure. */
448 struct ospf_nbr_nbma {
449 /* Neighbor IP address. */
450 struct in_addr addr;
451
452 /* OSPF interface. */
453 struct ospf_interface *oi;
454
455 /* OSPF neighbor structure. */
456 struct ospf_neighbor *nbr;
457
458 /* Neighbor priority. */
459 u_char priority;
460
461 /* Poll timer value. */
462 u_int32_t v_poll;
463
464 /* Poll timer thread. */
465 struct thread *t_poll;
466
467 /* State change. */
468 u_int32_t state_change;
469 };
470
471 /* Macro. */
472 #define OSPF_AREA_SAME(X, Y) \
473 (memcmp((X->area_id), (Y->area_id), IPV4_MAX_BYTELEN) == 0)
474
475 #define IS_OSPF_ABR(O) ((O)->flags & OSPF_FLAG_ABR)
476 #define IS_OSPF_ASBR(O) ((O)->flags & OSPF_FLAG_ASBR)
477
478 #define OSPF_IS_AREA_ID_BACKBONE(I) ((I).s_addr == OSPF_AREA_BACKBONE)
479 #define OSPF_IS_AREA_BACKBONE(A) OSPF_IS_AREA_ID_BACKBONE ((A)->area_id)
480
481 #ifdef roundup
482 # define ROUNDUP(val, gran) roundup(val, gran)
483 #else /* roundup */
484 # define ROUNDUP(val, gran) (((val) - 1 | (gran) - 1) + 1)
485 #endif /* roundup */
486
487 #define LSA_OPTIONS_GET(area) \
488 (((area)->external_routing == OSPF_AREA_DEFAULT) ? OSPF_OPTION_E : 0)
489 #define LSA_OPTIONS_NSSA_GET(area) \
490 (((area)->external_routing == OSPF_AREA_NSSA) ? OSPF_OPTION_NP : 0)
491
492 #define OSPF_TIMER_ON(T,F,V) thread_add_timer (master,(F),ospf,(V),&(T))
493 #define OSPF_AREA_TIMER_ON(T,F,V) thread_add_timer (master, (F), area, (V), &(T))
494 #define OSPF_POLL_TIMER_ON(T,F,V) thread_add_timer (master, (F), nbr_nbma, (V), &(T))
495 #define OSPF_POLL_TIMER_OFF(X) OSPF_TIMER_OFF((X))
496 #define OSPF_TIMER_OFF(X) \
497 do { \
498 if (X) { \
499 thread_cancel(X); \
500 (X) = NULL; \
501 } \
502 } while (0)
503
504 /* Extern variables. */
505 extern struct ospf_master *om;
506 extern const int ospf_redistributed_proto_max;
507 extern struct zclient *zclient;
508 extern struct thread_master *master;
509 extern int ospf_zlog;
510 extern struct zebra_privs_t ospfd_privs;
511
512 /* Prototypes. */
513 extern const char *ospf_redist_string(u_int route_type);
514 extern struct ospf *ospf_lookup_instance(u_short);
515 extern struct ospf *ospf_get(u_short instance, const char *name);
516 extern struct ospf *ospf_get_instance(u_short);
517 extern struct ospf *ospf_lookup_by_inst_name(u_short instance,
518 const char *name);
519 extern struct ospf *ospf_lookup_by_vrf_id(vrf_id_t vrf_id);
520 extern void ospf_finish(struct ospf *);
521 extern void ospf_router_id_update(struct ospf *ospf);
522 extern int ospf_network_set(struct ospf *, struct prefix_ipv4 *, struct in_addr,
523 int);
524 extern int ospf_network_unset(struct ospf *, struct prefix_ipv4 *,
525 struct in_addr);
526 extern int ospf_area_display_format_set(struct ospf *, struct ospf_area *area,
527 int df);
528 extern int ospf_area_stub_set(struct ospf *, struct in_addr);
529 extern int ospf_area_stub_unset(struct ospf *, struct in_addr);
530 extern int ospf_area_no_summary_set(struct ospf *, struct in_addr);
531 extern int ospf_area_no_summary_unset(struct ospf *, struct in_addr);
532 extern int ospf_area_nssa_set(struct ospf *, struct in_addr);
533 extern int ospf_area_nssa_unset(struct ospf *, struct in_addr, int);
534 extern int ospf_area_nssa_translator_role_set(struct ospf *, struct in_addr,
535 int);
536 extern int ospf_area_export_list_set(struct ospf *, struct ospf_area *,
537 const char *);
538 extern int ospf_area_export_list_unset(struct ospf *, struct ospf_area *);
539 extern int ospf_area_import_list_set(struct ospf *, struct ospf_area *,
540 const char *);
541 extern int ospf_area_import_list_unset(struct ospf *, struct ospf_area *);
542 extern int ospf_area_shortcut_set(struct ospf *, struct ospf_area *, int);
543 extern int ospf_area_shortcut_unset(struct ospf *, struct ospf_area *);
544 extern int ospf_timers_refresh_set(struct ospf *, int);
545 extern int ospf_timers_refresh_unset(struct ospf *);
546 extern int ospf_nbr_nbma_set(struct ospf *, struct in_addr);
547 extern int ospf_nbr_nbma_unset(struct ospf *, struct in_addr);
548 extern int ospf_nbr_nbma_priority_set(struct ospf *, struct in_addr, u_char);
549 extern int ospf_nbr_nbma_priority_unset(struct ospf *, struct in_addr);
550 extern int ospf_nbr_nbma_poll_interval_set(struct ospf *, struct in_addr,
551 unsigned int);
552 extern int ospf_nbr_nbma_poll_interval_unset(struct ospf *, struct in_addr);
553 extern void ospf_prefix_list_update(struct prefix_list *);
554 extern void ospf_init(void);
555 extern void ospf_if_update(struct ospf *, struct interface *);
556 extern void ospf_ls_upd_queue_empty(struct ospf_interface *);
557 extern void ospf_terminate(void);
558 extern void ospf_nbr_nbma_if_update(struct ospf *, struct ospf_interface *);
559 extern struct ospf_nbr_nbma *ospf_nbr_nbma_lookup(struct ospf *,
560 struct in_addr);
561 extern struct ospf_nbr_nbma *ospf_nbr_nbma_lookup_next(struct ospf *,
562 struct in_addr *, int);
563 extern int ospf_oi_count(struct interface *);
564
565 extern struct ospf_area *ospf_area_get(struct ospf *, struct in_addr);
566 extern void ospf_area_check_free(struct ospf *, struct in_addr);
567 extern struct ospf_area *ospf_area_lookup_by_area_id(struct ospf *,
568 struct in_addr);
569 extern void ospf_area_add_if(struct ospf_area *, struct ospf_interface *);
570 extern void ospf_area_del_if(struct ospf_area *, struct ospf_interface *);
571
572 extern void ospf_interface_area_set(struct ospf *, struct interface *);
573 extern void ospf_interface_area_unset(struct ospf *, struct interface *);
574
575 extern void ospf_route_map_init(void);
576
577 extern void ospf_master_init(struct thread_master *master);
578 extern void ospf_vrf_init(void);
579 extern void ospf_vrf_terminate(void);
580 extern void ospf_vrf_link(struct ospf *ospf, struct vrf *vrf);
581 extern void ospf_vrf_unlink(struct ospf *ospf, struct vrf *vrf);
582 const char *ospf_vrf_id_to_name(vrf_id_t vrf_id);
583 int ospf_area_nssa_no_summary_set(struct ospf *, struct in_addr);
584
585 #endif /* _ZEBRA_OSPFD_H */