Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (730 Bytes)

1 dfa9a53a Ondrej Filip
/*
2
 *      BIRD -- OSPF
3
 *
4 b8f17cf1 Ondrej Filip
 *      (c) 2000--2004 Ondrej Filip <feela@network.cz>
5 dfa9a53a Ondrej Filip
 *
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 1a61882d Ondrej Filip
typedef struct orta
14 2e10a170 Ondrej Filip
{
15 1a61882d Ondrej Filip
  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 a92847e7 Ondrej Filip
27 1a61882d Ondrej Filip
typedef struct ort
28 2e10a170 Ondrej Filip
{
29 aa1e082c Ondrej Filip
  struct fib_node fn;
30 1a61882d Ondrej Filip
  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 aa1e082c Ondrej Filip
39 b8f17cf1 Ondrej Filip
void ospf_rt_spf(struct proto_ospf *po);
40 1a61882d Ondrej Filip
void ospf_rt_initort(struct fib_node *fn);
41
42 dfa9a53a Ondrej Filip
43
#endif /* _BIRD_OSPF_RT_H_ */