[NETNS]: Provide correct namespace for fibnl netlink socket.
[safe/jmp/linux-2.6] / include / net / netns / ipv4.h
1 /*
2  * ipv4 in net namespaces
3  */
4
5 #ifndef __NETNS_IPV4_H__
6 #define __NETNS_IPV4_H__
7
8 struct ctl_table_header;
9 struct ipv4_devconf;
10 struct fib_rules_ops;
11 struct hlist_head;
12 struct sock;
13
14 struct netns_ipv4 {
15 #ifdef CONFIG_SYSCTL
16         struct ctl_table_header *forw_hdr;
17 #endif
18         struct ipv4_devconf     *devconf_all;
19         struct ipv4_devconf     *devconf_dflt;
20 #ifdef CONFIG_IP_MULTIPLE_TABLES
21         struct fib_rules_ops    *rules_ops;
22 #endif
23         struct hlist_head       *fib_table_hash;
24         struct sock             *fibnl;
25 };
26 #endif