Statistics
| Branch: | Revision:

iof-bird-daemon / proto / ospf / rt.h @ 1a61882d

History | View | Annotate | Download (730 Bytes)

1
/*
2
 *      BIRD -- OSPF
3
 *
4
 *      (c) 2000--2004 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
typedef struct orta
14
{
15
  int type;
16
  int capa;
17
  struct ospf_area *oa;
18
  int metric1;
19
  int metric2;
20
  ip_addr nh;                        /* Next hop */
21
  struct iface *ifa;                /* Outgoing interface */
22
  struct top_hash_entry *ar;        /* Advertising router */
23
  u32 tag;
24
}
25
orta;
26

    
27
typedef struct ort
28
{
29
  struct fib_node fn;
30
  int dest;
31
#define ORT_UNDEF -1
32
#define ORT_ROUTER 1
33
#define ORT_NET 0
34
  orta n;
35
  orta o;
36
}
37
ort;
38

    
39
void ospf_rt_spf(struct proto_ospf *po);
40
void ospf_rt_initort(struct fib_node *fn);
41

    
42

    
43
#endif /* _BIRD_OSPF_RT_H_ */