Statistics
| Branch: | Revision:

iof-bird-daemon / proto / ospf / rt.h @ eee9cefd

History | View | Annotate | Download (827 Bytes)

1 dfa9a53a Ondrej Filip
/*
2
 *      BIRD -- OSPF
3
 *
4
 *      (c) 2000 Ondrej Filip <feela@network.cz>
5
 *
6
 *      Can be freely distributed and used under the terms of the GNU GPL.
7
 *
8
 */
9
10
#ifndef _BIRD_OSPF_RT_H_
11
#define _BIRD_OSPF_RT_H_
12
13 d345cda5 Ondrej Filip
struct infib {
14 a92847e7 Ondrej Filip
  struct fib_node fn;
15
  u16 metric;
16
  u16 pad;
17 d345cda5 Ondrej Filip
  struct top_hash_entry *en;
18 a92847e7 Ondrej Filip
};
19
20 aa1e082c Ondrej Filip
struct extfib {
21
  struct fib_node fn;
22
  u16 metric;
23
  u16 metric2;
24
  ip_addr nh;
25 a7a3a0a3 Ondrej Filip
  u32 tag;
26 aa1e082c Ondrej Filip
  struct iface *nhi;
27
};
28
29 a02c6c18 Ondrej Filip
void ospf_rt_spfa(struct ospf_area *oa);
30 fafe44b6 Ondrej Filip
void ospf_ext_spfa(struct proto_ospf *po);
31 468f2347 Ondrej Filip
void add_cand(list *l, struct top_hash_entry *en, struct top_hash_entry *par,
32 a02c6c18 Ondrej Filip
  u16 dist, struct ospf_area *oa);
33 c6c56264 Ondrej Filip
void calc_next_hop(struct top_hash_entry *par, struct top_hash_entry *en,
34 a02c6c18 Ondrej Filip
  struct ospf_area *oa);
35 d345cda5 Ondrej Filip
void init_infib(struct fib_node *fn);
36 aa1e082c Ondrej Filip
void init_efib(struct fib_node *fn);
37 dfa9a53a Ondrej Filip
38
#endif /* _BIRD_OSPF_RT_H_ */