blob: 23a83ff7d7ee598f00a1e1ea0ad06b5195c6f1e7 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001/*
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
18 * along with GNU Zebra; see the file COPYING. If not, write to the Free
19 * Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
20 * 02111-1307, USA.
21 */
22
23#ifndef _ZEBRA_OSPFD_H
24#define _ZEBRA_OSPFD_H
25
26#include "filter.h"
27
28#define OSPF_VERSION 2
29
30/* Default protocol, port number. */
31#ifndef IPPROTO_OSPFIGP
32#define IPPROTO_OSPFIGP 89
33#endif /* IPPROTO_OSPFIGP */
34
paul68980082003-03-25 05:07:42 +000035/* IP precedence. */
36#ifndef IPTOS_PREC_INTERNETCONTROL
37#define IPTOS_PREC_INTERNETCONTROL 0xC0
38#endif /* IPTOS_PREC_INTERNETCONTROL */
39
paul718e3742002-12-13 20:15:29 +000040/* VTY port number. */
41#define OSPF_VTY_PORT 2604
paul718e3742002-12-13 20:15:29 +000042
43/* IP TTL for OSPF protocol. */
44#define OSPF_IP_TTL 1
45#define OSPF_VL_IP_TTL 100
46
47/* Default configuration file name for ospfd. */
48#define OSPF_DEFAULT_CONFIG "ospfd.conf"
49
50/* Architectual Constants */
51#ifdef DEBUG
52#define OSPF_LS_REFRESH_TIME 60
53#else
54#define OSPF_LS_REFRESH_TIME 1800
55#endif
56#define OSPF_MIN_LS_INTERVAL 5
57#define OSPF_MIN_LS_ARRIVAL 1
58#define OSPF_LSA_MAXAGE 3600
59#define OSPF_CHECK_AGE 300
60#define OSPF_LSA_MAXAGE_DIFF 900
61#define OSPF_LS_INFINITY 0xffffff
62#define OSPF_DEFAULT_DESTINATION 0x00000000 /* 0.0.0.0 */
63#define OSPF_INITIAL_SEQUENCE_NUMBER 0x80000001
64#define OSPF_MAX_SEQUENCE_NUMBER 0x7fffffff
65
66#define OSPF_LSA_MAXAGE_CHECK_INTERVAL 30
paul464c8202003-06-22 08:32:35 +000067#define OSPF_NSSA_TRANS_STABLE_DEFAULT 40
paul718e3742002-12-13 20:15:29 +000068
69#define OSPF_ALLSPFROUTERS 0xe0000005 /* 224.0.0.5 */
70#define OSPF_ALLDROUTERS 0xe0000006 /* 224.0.0.6 */
71
72#ifdef HAVE_NSSA
73#define OSPF_LOOPer 0x7f000000 /* 127.0.0.0 */
74#endif /* HAVE_NSSA */
75
76#define OSPF_AREA_BACKBONE 0x00000000 /* 0.0.0.0 */
77
78/* OSPF Authentication Type. */
79#define OSPF_AUTH_NULL 0
80#define OSPF_AUTH_SIMPLE 1
81#define OSPF_AUTH_CRYPTOGRAPHIC 2
82/* For Interface authentication setting default */
83#define OSPF_AUTH_NOTSET -1
84/* For the consumption and sanity of the command handler */
85/* DO NIOT REMOVE!!! Need to detect whether a value has
86 been given or not in VLink command handlers */
87#define OSPF_AUTH_CMD_NOTSEEN -2
88
89/* OSPF SPF timer values. */
paul800d6152003-05-29 17:26:24 +000090#define OSPF_SPF_DELAY_DEFAULT 1
91#define OSPF_SPF_HOLDTIME_DEFAULT 1
paul718e3742002-12-13 20:15:29 +000092
93/* OSPF interface default values. */
94#define OSPF_OUTPUT_COST_DEFAULT 10
95#define OSPF_ROUTER_DEAD_INTERVAL_DEFAULT 40
96#define OSPF_HELLO_INTERVAL_DEFAULT 10
97#define OSPF_ROUTER_PRIORITY_DEFAULT 1
98#define OSPF_RETRANSMIT_INTERVAL_DEFAULT 5
99#define OSPF_TRANSMIT_DELAY_DEFAULT 1
100#define OSPF_DEFAULT_BANDWIDTH 10000 /* Kbps */
101
102#define OSPF_DEFAULT_REF_BANDWIDTH 100000 /* Kbps */
103
104#define OSPF_POLL_INTERVAL_DEFAULT 60
105#define OSPF_NEIGHBOR_PRIORITY_DEFAULT 0
106
107/* OSPF options. */
108#define OSPF_OPTION_T 0x01 /* TOS. */
109#define OSPF_OPTION_E 0x02
110#define OSPF_OPTION_MC 0x04
111#define OSPF_OPTION_NP 0x08
112#define OSPF_OPTION_EA 0x10
113#define OSPF_OPTION_DC 0x20
114#define OSPF_OPTION_O 0x40
115
116/* OSPF Database Description flags. */
117#define OSPF_DD_FLAG_MS 0x01
118#define OSPF_DD_FLAG_M 0x02
119#define OSPF_DD_FLAG_I 0x04
120#define OSPF_DD_FLAG_ALL 0x07
121
122/* Timer value. */
123#define OSPF_ROUTER_ID_UPDATE_DELAY 1
124
125#define OSPF_LS_REFRESH_SHIFT (60 * 15)
126#define OSPF_LS_REFRESH_JITTER 60
127
paul020709f2003-04-04 02:44:16 +0000128/* OSPF master for system wide configuration and variables. */
129struct ospf_master
130{
131 /* OSPF instance. */
132 struct list *ospf;
133
134 /* OSPF thread master. */
135 struct thread_master *master;
136
137 /* Zebra interface list. */
138 struct list *iflist;
139
140 /* Redistributed external information. */
141 struct route_table *external_info[ZEBRA_ROUTE_MAX + 1];
142#define EXTERNAL_INFO(T) om->external_info[T]
143
144 /* OSPF start time. */
145 time_t start_time;
146
147 /* Various OSPF global configuration. */
148 u_char options;
149};
150
paul718e3742002-12-13 20:15:29 +0000151/* OSPF instance structure. */
152struct ospf
153{
154 /* OSPF Router ID. */
155 struct in_addr router_id; /* Configured automatically. */
156 struct in_addr router_id_static; /* Configured manually. */
157
158 /* ABR/ASBR internal flags. */
159 u_char flags;
160#define OSPF_FLAG_ABR 0x0001
161#define OSPF_FLAG_ASBR 0x0002
162
163 /* ABR type. */
164 u_char abr_type;
165#define OSPF_ABR_UNKNOWN 0
166#define OSPF_ABR_STAND 1
167#define OSPF_ABR_IBM 2
168#define OSPF_ABR_CISCO 3
169#define OSPF_ABR_SHORTCUT 4
170
171 /* NSSA ABR */
172 u_char anyNSSA; /* Bump for every NSSA attached. */
173
174 /* Configured variables. */
175 u_char config;
176#define OSPF_RFC1583_COMPATIBLE (1 << 0)
177#define OSPF_OPAQUE_CAPABLE (1 << 2)
178
179#ifdef HAVE_OPAQUE_LSA
180 /* Opaque-LSA administrative flags. */
181 u_char opaque;
182#define OPAQUE_OPERATION_READY_BIT (1 << 0)
183#define OPAQUE_BLOCK_TYPE_09_LSA_BIT (1 << 1)
184#define OPAQUE_BLOCK_TYPE_10_LSA_BIT (1 << 2)
185#define OPAQUE_BLOCK_TYPE_11_LSA_BIT (1 << 3)
186#endif /* HAVE_OPAQUE_LSA */
187
188 int spf_delay; /* SPF delay time. */
189 int spf_holdtime; /* SPF hold time. */
190 int default_originate; /* Default information originate. */
191#define DEFAULT_ORIGINATE_NONE 0
192#define DEFAULT_ORIGINATE_ZEBRA 1
193#define DEFAULT_ORIGINATE_ALWAYS 2
194 u_int32_t ref_bandwidth; /* Reference Bandwidth (Kbps). */
195 struct route_table *networks; /* OSPF config networks. */
196 list vlinks; /* Configured Virtual-Links. */
197 list areas; /* OSPF areas. */
198 struct route_table *nbr_nbma;
199 struct ospf_area *backbone; /* Pointer to the Backbone Area. */
200
paul718e3742002-12-13 20:15:29 +0000201 list oiflist; /* ospf interfaces */
202
203 /* LSDB of AS-external-LSAs. */
204 struct ospf_lsdb *lsdb;
205
paul718e3742002-12-13 20:15:29 +0000206 /* Flags. */
207 int external_origin; /* AS-external-LSA origin flag. */
208 int ase_calc; /* ASE calculation flag. */
209
210#ifdef HAVE_OPAQUE_LSA
211 list opaque_lsa_self; /* Type-11 Opaque-LSAs */
212#endif /* HAVE_OPAQUE_LSA */
213
214 /* Routing tables. */
215 struct route_table *old_table; /* Old routing table. */
216 struct route_table *new_table; /* Current routing table. */
217
218 struct route_table *old_rtrs; /* Old ABR/ASBR RT. */
219 struct route_table *new_rtrs; /* New ABR/ASBR RT. */
220
221 struct route_table *new_external_route; /* New External Route. */
222 struct route_table *old_external_route; /* Old External Route. */
223
224 struct route_table *external_lsas; /* Database of external LSAs,
225 prefix is LSA's adv. network*/
226
227 /* Time stamps. */
228 time_t ts_spf; /* SPF calculation time stamp. */
229
230 list maxage_lsa; /* List of MaxAge LSA for deletion. */
231 int redistribute; /* Num of redistributed protocols. */
232
233 /* Threads. */
234 struct thread *t_router_id_update; /* Router ID update timer. */
235 struct thread *t_router_lsa_update; /* router-LSA update timer. */
236 struct thread *t_abr_task; /* ABR task timer. */
237 struct thread *t_asbr_check; /* ASBR check timer. */
238 struct thread *t_distribute_update; /* Distirbute list update timer. */
239 struct thread *t_spf_calc; /* SPF calculation timer. */
240 struct thread *t_ase_calc; /* ASE calculation timer. */
241 struct thread *t_external_lsa; /* AS-external-LSA origin timer. */
242#ifdef HAVE_OPAQUE_LSA
243 struct thread *t_opaque_lsa_self; /* Type-11 Opaque-LSAs origin event. */
244#endif /* HAVE_OPAQUE_LSA */
245 struct thread *t_maxage; /* MaxAge LSA remover timer. */
246 struct thread *t_maxage_walker; /* MaxAge LSA checking timer. */
247
248 struct thread *t_write;
249 struct thread *t_read;
250 int fd;
251 list oi_write_q;
252
253 /* Distribute lists out of other route sources. */
254 struct
255 {
256 char *name;
257 struct access_list *list;
258 } dlist[ZEBRA_ROUTE_MAX];
paul020709f2003-04-04 02:44:16 +0000259#define DISTRIBUTE_NAME(O,T) (O)->dlist[T].name
260#define DISTRIBUTE_LIST(O,T) (O)->dlist[T].list
paul718e3742002-12-13 20:15:29 +0000261
262 /* Redistribute metric info. */
263 struct
264 {
265 int type; /* External metric type (E1 or E2). */
266 int value; /* Value for static metric (24-bit).
267 -1 means metric value is not set. */
268 } dmetric [ZEBRA_ROUTE_MAX + 1];
269
270 /* For redistribute route map. */
271 struct
272 {
273 char *name;
274 struct route_map *map;
275 } route_map [ZEBRA_ROUTE_MAX + 1]; /* +1 is for default-information */
paul020709f2003-04-04 02:44:16 +0000276#define ROUTEMAP_NAME(O,T) (O)->route_map[T].name
277#define ROUTEMAP(O,T) (O)->route_map[T].map
paul718e3742002-12-13 20:15:29 +0000278
279 int default_metric; /* Default metric for redistribute. */
280
281#define OSPF_LSA_REFRESHER_GRANULARITY 10
282#define OSPF_LSA_REFRESHER_SLOTS ((OSPF_LS_REFRESH_TIME + \
283 OSPF_LS_REFRESH_SHIFT)/10 + 1)
284 struct
285 {
286 u_int16_t index;
287 list qs[OSPF_LSA_REFRESHER_SLOTS];
288 } lsa_refresh_queue;
289
290 struct thread *t_lsa_refresher;
291 time_t lsa_refresher_started;
292#define OSPF_LSA_REFRESH_INTERVAL_DEFAULT 10
293 u_int16_t lsa_refresh_interval;
294
295 /* Distance parameter. */
296 u_char distance_all;
297 u_char distance_intra;
298 u_char distance_inter;
299 u_char distance_external;
300
301 /* Statistics for LSA origination. */
302 u_int32_t lsa_originate_count;
303
304 /* Statistics for LSA used for new instantiation. */
305 u_int32_t rx_lsa_count;
306
307 struct route_table *distance_table;
308};
309
310/* OSPF area structure. */
311struct ospf_area
312{
313 /* OSPF instance. */
paul68980082003-03-25 05:07:42 +0000314 struct ospf *ospf;
paul718e3742002-12-13 20:15:29 +0000315
316 /* Zebra interface list belonging to the area. */
317 list oiflist;
318
319 /* Area ID. */
320 struct in_addr area_id;
321
322 /* Area ID format. */
323 char format;
324#define OSPF_AREA_ID_FORMAT_ADDRESS 1
325#define OSPF_AREA_ID_FORMAT_DECIMAL 2
326
327 /* Address range. */
328 list address_range;
329
330 /* Configured variables. */
331 int external_routing; /* ExternalRoutingCapability. */
332#define OSPF_AREA_DEFAULT 0
333#define OSPF_AREA_STUB 1
334#define OSPF_AREA_NSSA 2
335#define OSPF_AREA_TYPE_MAX 3
336 int no_summary; /* Don't inject summaries into stub.*/
337 int shortcut_configured; /* Area configured as shortcut. */
338#define OSPF_SHORTCUT_DEFAULT 0
339#define OSPF_SHORTCUT_ENABLE 1
340#define OSPF_SHORTCUT_DISABLE 2
341 int shortcut_capability; /* Other ABRs agree on S-bit */
342 u_int32_t default_cost; /* StubDefaultCost. */
343 int auth_type; /* Authentication type. */
344
paul464c8202003-06-22 08:32:35 +0000345 u_char NSSATranslatorRole; /* NSSA configured role */
paul718e3742002-12-13 20:15:29 +0000346#define OSPF_NSSA_ROLE_NEVER 0
pauld4a53d52003-07-12 21:30:57 +0000347#define OSPF_NSSA_ROLE_CANDIDATE 1
348#define OSPF_NSSA_ROLE_ALWAYS 2
paul464c8202003-06-22 08:32:35 +0000349 u_char NSSATranslatorState; /* NSSA operational role */
pauld4a53d52003-07-12 21:30:57 +0000350#define OSPF_NSSA_TRANSLATE_DISABLED 0
351#define OSPF_NSSA_TRANSLATE_ENABLED 1
paul464c8202003-06-22 08:32:35 +0000352 int NSSATranslatorStabilityInterval;
353
paul718e3742002-12-13 20:15:29 +0000354 u_char transit; /* TransitCapability. */
355#define OSPF_TRANSIT_FALSE 0
356#define OSPF_TRANSIT_TRUE 1
357 struct route_table *ranges; /* Configured Area Ranges. */
358
359 /* Area related LSDBs[Type1-4]. */
360 struct ospf_lsdb *lsdb;
361
362 /* Self-originated LSAs. */
363 struct ospf_lsa *router_lsa_self;
364#ifdef HAVE_OPAQUE_LSA
365 list opaque_lsa_self; /* Type-10 Opaque-LSAs */
366#endif /* HAVE_OPAQUE_LSA */
367
368 /* Area announce list. */
369 struct
370 {
371 char *name;
372 struct access_list *list;
373 } export;
374#define EXPORT_NAME(A) (A)->export.name
375#define EXPORT_LIST(A) (A)->export.list
376
377 /* Area acceptance list. */
378 struct
379 {
380 char *name;
381 struct access_list *list;
382 } import;
383#define IMPORT_NAME(A) (A)->import.name
384#define IMPORT_LIST(A) (A)->import.list
385
386 /* Type 3 LSA Area prefix-list. */
387 struct
388 {
389 char *name;
390 struct prefix_list *list;
391 } plist_in;
392#define PREFIX_LIST_IN(A) (A)->plist_in.list
393#define PREFIX_NAME_IN(A) (A)->plist_in.name
394
395 struct
396 {
397 char *name;
398 struct prefix_list *list;
399 } plist_out;
400#define PREFIX_LIST_OUT(A) (A)->plist_out.list
401#define PREFIX_NAME_OUT(A) (A)->plist_out.name
402
403 /* Shortest Path Tree. */
404 struct vertex *spf;
405
406 /* Threads. */
407 struct thread *t_router_lsa_self;/* Self-originated router-LSA timer. */
408#ifdef HAVE_OPAQUE_LSA
409 struct thread *t_opaque_lsa_self; /* Type-10 Opaque-LSAs origin. */
410#endif /* HAVE_OPAQUE_LSA */
411
412 /* Statistics field. */
413 u_int32_t spf_calculation; /* SPF Calculation Count. */
414
415 /* Router count. */
416 u_int32_t abr_count; /* ABR router in this area. */
417 u_int32_t asbr_count; /* ASBR router in this area. */
418
419 /* Counters. */
420 u_int32_t act_ints; /* Active interfaces. */
421 u_int32_t full_nbrs; /* Fully adjacent neighbors. */
422 u_int32_t full_vls; /* Fully adjacent virtual neighbors. */
423};
424
425/* OSPF config network structure. */
426struct ospf_network
427{
428 /* Area ID. */
429 struct in_addr area_id;
430 int format;
431};
432
433/* OSPF NBMA neighbor structure. */
434struct ospf_nbr_nbma
435{
436 /* Neighbor IP address. */
437 struct in_addr addr;
438
439 /* OSPF interface. */
440 struct ospf_interface *oi;
441
442 /* OSPF neighbor structure. */
443 struct ospf_neighbor *nbr;
444
445 /* Neighbor priority. */
446 u_char priority;
447
448 /* Poll timer value. */
449 u_int32_t v_poll;
450
451 /* Poll timer thread. */
452 struct thread *t_poll;
453
454 /* State change. */
455 u_int32_t state_change;
456};
457
458/* Macro. */
459#define OSPF_AREA_SAME(X,Y) \
460 (memcmp ((X->area_id), (Y->area_id), IPV4_MAX_BYTELEN) == 0)
461
paul020709f2003-04-04 02:44:16 +0000462#define IS_OSPF_ABR(O) ((O)->flags & OSPF_FLAG_ABR)
463#define IS_OSPF_ASBR(O) ((O)->flags & OSPF_FLAG_ASBR)
paul718e3742002-12-13 20:15:29 +0000464
465#define OSPF_IS_AREA_ID_BACKBONE(I) ((I).s_addr == OSPF_AREA_BACKBONE)
466#define OSPF_IS_AREA_BACKBONE(A) OSPF_IS_AREA_ID_BACKBONE ((A)->area_id)
467
468#ifdef roundup
469# define ROUNDUP(val, gran) roundup(val, gran)
470#else /* roundup */
471# define ROUNDUP(val, gran) (((val) - 1 | (gran) - 1) + 1)
472#endif /* roundup */
473
474#define LSA_OPTIONS_GET(area) \
475 (((area)->external_routing == OSPF_AREA_DEFAULT) ? OSPF_OPTION_E : 0)
476#ifdef HAVE_NSSA
pauld4a53d52003-07-12 21:30:57 +0000477#define LSA_OPTIONS_NSSA_GET(area) \
478 (((area)->external_routing == OSPF_AREA_NSSA) ? OSPF_OPTION_NP : 0)
paul718e3742002-12-13 20:15:29 +0000479#endif /* HAVE_NSSA */
480
481#define OSPF_TIMER_ON(T,F,V) \
482 do { \
483 if (!(T)) \
paul68980082003-03-25 05:07:42 +0000484 (T) = thread_add_timer (master, (F), ospf, (V)); \
paul718e3742002-12-13 20:15:29 +0000485 } while (0)
486
487#define OSPF_AREA_TIMER_ON(T,F,V) \
488 do { \
489 if (!(T)) \
490 (T) = thread_add_timer (master, (F), area, (V)); \
491 } while (0)
492
493#define OSPF_POLL_TIMER_ON(T,F,V) \
494 do { \
495 if (!(T)) \
496 (T) = thread_add_timer (master, (F), nbr_nbma, (V)); \
497 } while (0)
498
499#define OSPF_POLL_TIMER_OFF(X) OSPF_TIMER_OFF((X))
500
501#define OSPF_TIMER_OFF(X) \
502 do { \
503 if (X) \
504 { \
505 thread_cancel (X); \
506 (X) = NULL; \
507 } \
508 } while (0)
509
paul020709f2003-04-04 02:44:16 +0000510/* Extern variables. */
511extern struct ospf_master *om;
paul718e3742002-12-13 20:15:29 +0000512extern struct message ospf_ism_state_msg[];
513extern struct message ospf_nsm_state_msg[];
514extern struct message ospf_lsa_type_msg[];
515extern struct message ospf_link_state_id_type_msg[];
516extern struct message ospf_redistributed_proto[];
517extern struct message ospf_network_type_msg[];
518extern int ospf_ism_state_msg_max;
519extern int ospf_nsm_state_msg_max;
520extern int ospf_lsa_type_msg_max;
521extern int ospf_link_state_id_type_msg_max;
522extern int ospf_redistributed_proto_max;
523extern int ospf_network_type_msg_max;
524extern struct zclient *zclient;
525extern struct thread_master *master;
paul718e3742002-12-13 20:15:29 +0000526extern int ospf_zlog;
527
528/* Prototypes. */
paul020709f2003-04-04 02:44:16 +0000529struct ospf *ospf_lookup ();
paul718e3742002-12-13 20:15:29 +0000530struct ospf *ospf_get ();
531void ospf_finish (struct ospf *);
532int ospf_router_id_update_timer (struct thread *);
533void ospf_router_id_update ();
paul570f7592003-01-25 06:47:41 +0000534int ospf_network_match_iface (struct connected *, struct prefix *);
paul718e3742002-12-13 20:15:29 +0000535int ospf_network_set (struct ospf *, struct prefix_ipv4 *, struct in_addr);
536int ospf_network_unset (struct ospf *, struct prefix_ipv4 *, struct in_addr);
537int ospf_area_stub_set (struct ospf *, struct in_addr);
538int ospf_area_stub_unset (struct ospf *, struct in_addr);
539int ospf_area_no_summary_set (struct ospf *, struct in_addr);
540int ospf_area_no_summary_unset (struct ospf *, struct in_addr);
541int ospf_area_nssa_set (struct ospf *, struct in_addr);
542int ospf_area_nssa_unset (struct ospf *, struct in_addr);
543int ospf_area_nssa_translator_role_set (struct ospf *, struct in_addr, int);
paul68980082003-03-25 05:07:42 +0000544int ospf_area_export_list_set (struct ospf *, struct ospf_area *, char *);
545int ospf_area_export_list_unset (struct ospf *, struct ospf_area *);
546int ospf_area_import_list_set (struct ospf *, struct ospf_area *, char *);
547int ospf_area_import_list_unset (struct ospf *, struct ospf_area *);
548int ospf_area_shortcut_set (struct ospf *, struct ospf_area *, int);
549int ospf_area_shortcut_unset (struct ospf *, struct ospf_area *);
paul718e3742002-12-13 20:15:29 +0000550int ospf_timers_spf_set (struct ospf *, u_int32_t, u_int32_t);
551int ospf_timers_spf_unset (struct ospf *);
552int ospf_timers_refresh_set (struct ospf *, int);
553int ospf_timers_refresh_unset (struct ospf *);
554int ospf_nbr_nbma_set (struct ospf *, struct in_addr);
555int ospf_nbr_nbma_unset (struct ospf *, struct in_addr);
556int ospf_nbr_nbma_priority_set (struct ospf *, struct in_addr, u_char);
557int ospf_nbr_nbma_priority_unset (struct ospf *, struct in_addr);
558int ospf_nbr_nbma_poll_interval_set (struct ospf *, struct in_addr, int);
559int ospf_nbr_nbma_poll_interval_unset (struct ospf *, struct in_addr);
560void ospf_prefix_list_update (struct prefix_list *);
561void ospf_init ();
paul68980082003-03-25 05:07:42 +0000562void ospf_if_update (struct ospf *);
paul718e3742002-12-13 20:15:29 +0000563void ospf_ls_upd_queue_empty (struct ospf_interface *);
564void ospf_terminate ();
paul68980082003-03-25 05:07:42 +0000565void ospf_nbr_nbma_if_update (struct ospf *, struct ospf_interface *);
paul718e3742002-12-13 20:15:29 +0000566struct ospf_nbr_nbma *ospf_nbr_nbma_lookup (struct ospf *, struct in_addr);
paul68980082003-03-25 05:07:42 +0000567struct ospf_nbr_nbma *ospf_nbr_nbma_lookup_next (struct ospf *,
568 struct in_addr *, int);
paul718e3742002-12-13 20:15:29 +0000569int ospf_oi_count (struct interface *);
570
paul68980082003-03-25 05:07:42 +0000571struct ospf_area *ospf_area_get (struct ospf *, struct in_addr, int);
572void ospf_area_check_free (struct ospf *, struct in_addr);
573struct ospf_area *ospf_area_lookup_by_area_id (struct ospf *, struct in_addr);
paul718e3742002-12-13 20:15:29 +0000574void ospf_area_add_if (struct ospf_area *, struct ospf_interface *);
575void ospf_area_del_if (struct ospf_area *, struct ospf_interface *);
576
577void ospf_route_map_init ();
578void ospf_snmp_init ();
579
paul020709f2003-04-04 02:44:16 +0000580void ospf_master_init ();
581
paul718e3742002-12-13 20:15:29 +0000582#endif /* _ZEBRA_OSPFD_H */