initial commit with v2.6.9
[linux-2.6.9-moxart.git] / net / ipv4 / fib_lookup.h
blobd504a28ce78c03c2b6024d8e4092cde9233c6f02
1 #ifndef _FIB_LOOKUP_H
2 #define _FIB_LOOKUP_H
4 #include <linux/types.h>
5 #include <linux/list.h>
6 #include <net/ip_fib.h>
8 struct fib_alias {
9 struct list_head fa_list;
10 struct fib_info *fa_info;
11 u8 fa_tos;
12 u8 fa_type;
13 u8 fa_scope;
14 u8 fa_state;
17 #define FA_S_ACCESSED 0x01
19 /* Exported by fib_semantics.c */
20 extern int fib_semantic_match(struct list_head *head,
21 const struct flowi *flp,
22 struct fib_result *res, int prefixlen);
23 extern void fib_release_info(struct fib_info *);
24 extern struct fib_info *fib_create_info(const struct rtmsg *r,
25 struct kern_rta *rta,
26 const struct nlmsghdr *,
27 int *err);
28 extern int fib_nh_match(struct rtmsg *r, struct nlmsghdr *,
29 struct kern_rta *rta, struct fib_info *fi);
30 extern int fib_dump_info(struct sk_buff *skb, u32 pid, u32 seq, int event,
31 u8 tb_id, u8 type, u8 scope, void *dst,
32 int dst_len, u8 tos, struct fib_info *fi);
34 #endif /* _FIB_LOOKUP_H */