Statistics
| Branch: | Revision:

iof-bird-daemon / proto / ospf / rt.h @ 60e04f04

History | View | Annotate | Download (800 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
#define ORT_UNDEF -1
14
#define ORT_ROUTER 1
15
#define ORT_NET 0
16

    
17
typedef struct orta
18
{
19
  int type;
20
  int capa;
21
#define ORTA_ASBR 1
22
#define ORTA_ABR 2
23
  struct ospf_area *oa;
24
  u32 metric1;
25
  u32 metric2;
26
  ip_addr nh;                        /* Next hop */
27
  struct ospf_iface *ifa;        /* Outgoing interface */
28
  struct top_hash_entry *ar;        /* Advertising router */
29
  u32 tag;
30
}
31
orta;
32

    
33
typedef struct ort
34
{
35
  struct fib_node fn;
36
  orta n;
37
  orta o;
38
  struct ort *efn;                /* For RFC1583 */
39
}
40
ort;
41

    
42
void ospf_rt_spf(struct proto_ospf *po);
43
void ospf_rt_initort(struct fib_node *fn);
44

    
45

    
46
#endif /* _BIRD_OSPF_RT_H_ */