Revision 1a61882d proto/ospf/rt.h

View differences:

proto/ospf/rt.h
10 10
#ifndef _BIRD_OSPF_RT_H_
11 11
#define _BIRD_OSPF_RT_H_
12 12

  
13
struct infib
13
typedef struct orta
14 14
{
15
  struct fib_node fn;
16
  u16 metric;
17
  u16 oldmetric;
18
  struct top_hash_entry *en;
19
  struct top_hash_entry *olden;
20
};
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;
21 26

  
22
struct extfib
27
typedef struct ort
23 28
{
24 29
  struct fib_node fn;
25
  u16 metric;
26
  u16 metric2;
27
  ip_addr nh;
28
  u32 tag;
29
  struct iface *nhi;
30
  u16 oldmetric;
31
  u16 oldmetric2;
32
  ip_addr oldnh;
33
  u32 oldtag;
34
};
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;
35 38

  
36 39
void ospf_rt_spf(struct proto_ospf *po);
37
void init_infib(struct fib_node *fn);
38
void init_efib(struct fib_node *fn);
40
void ospf_rt_initort(struct fib_node *fn);
41

  
39 42

  
40 43
#endif /* _BIRD_OSPF_RT_H_ */

Also available in: Unified diff