Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (827 Bytes)

1
/*
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
struct infib {
14
  struct fib_node fn;
15
  u16 metric;
16
  u16 pad;
17
  struct top_hash_entry *en;
18
};
19

    
20
struct extfib {
21
  struct fib_node fn;
22
  u16 metric;
23
  u16 metric2;
24
  ip_addr nh;
25
  u32 tag;
26
  struct iface *nhi;
27
};
28

    
29
void ospf_rt_spfa(struct ospf_area *oa);
30
void ospf_ext_spfa(struct proto_ospf *po);
31
void add_cand(list *l, struct top_hash_entry *en, struct top_hash_entry *par,
32
  u16 dist, struct ospf_area *oa);
33
void calc_next_hop(struct top_hash_entry *par, struct top_hash_entry *en,
34
  struct ospf_area *oa);
35
void init_infib(struct fib_node *fn);
36
void init_efib(struct fib_node *fn);
37

    
38
#endif /* _BIRD_OSPF_RT_H_ */