diff options
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/net_namespace.h | 4 | ||||
-rw-r--r-- | include/net/pkt_cls.h | 3 | ||||
-rw-r--r-- | include/net/rtnetlink.h | 2 | ||||
-rw-r--r-- | include/net/wext.h | 15 |
4 files changed, 18 insertions, 6 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 547247681345..fac42db7f6d0 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -22,6 +22,10 @@ struct net { | |||
22 | struct proc_dir_entry *proc_net; | 22 | struct proc_dir_entry *proc_net; |
23 | struct proc_dir_entry *proc_net_stat; | 23 | struct proc_dir_entry *proc_net_stat; |
24 | struct proc_dir_entry *proc_net_root; | 24 | struct proc_dir_entry *proc_net_root; |
25 | |||
26 | struct list_head dev_base_head; | ||
27 | struct hlist_head *dev_name_head; | ||
28 | struct hlist_head *dev_index_head; | ||
25 | }; | 29 | }; |
26 | 30 | ||
27 | extern struct net init_net; | 31 | extern struct net init_net; |
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 7968b1d66369..f285de69c615 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h | |||
@@ -2,6 +2,7 @@ | |||
2 | #define __NET_PKT_CLS_H | 2 | #define __NET_PKT_CLS_H |
3 | 3 | ||
4 | #include <linux/pkt_cls.h> | 4 | #include <linux/pkt_cls.h> |
5 | #include <net/net_namespace.h> | ||
5 | #include <net/sch_generic.h> | 6 | #include <net/sch_generic.h> |
6 | #include <net/act_api.h> | 7 | #include <net/act_api.h> |
7 | 8 | ||
@@ -351,7 +352,7 @@ tcf_match_indev(struct sk_buff *skb, char *indev) | |||
351 | if (indev[0]) { | 352 | if (indev[0]) { |
352 | if (!skb->iif) | 353 | if (!skb->iif) |
353 | return 0; | 354 | return 0; |
354 | dev = __dev_get_by_index(skb->iif); | 355 | dev = __dev_get_by_index(&init_net, skb->iif); |
355 | if (!dev || strcmp(indev, dev->name)) | 356 | if (!dev || strcmp(indev, dev->name)) |
356 | return 0; | 357 | return 0; |
357 | } | 358 | } |
diff --git a/include/net/rtnetlink.h b/include/net/rtnetlink.h index 8218288ab7ee..793863e09c69 100644 --- a/include/net/rtnetlink.h +++ b/include/net/rtnetlink.h | |||
@@ -78,7 +78,7 @@ extern void __rtnl_link_unregister(struct rtnl_link_ops *ops); | |||
78 | extern int rtnl_link_register(struct rtnl_link_ops *ops); | 78 | extern int rtnl_link_register(struct rtnl_link_ops *ops); |
79 | extern void rtnl_link_unregister(struct rtnl_link_ops *ops); | 79 | extern void rtnl_link_unregister(struct rtnl_link_ops *ops); |
80 | 80 | ||
81 | extern struct net_device *rtnl_create_link(char *ifname, | 81 | extern struct net_device *rtnl_create_link(struct net *net, char *ifname, |
82 | const struct rtnl_link_ops *ops, struct nlattr *tb[]); | 82 | const struct rtnl_link_ops *ops, struct nlattr *tb[]); |
83 | extern const struct nla_policy ifla_policy[IFLA_MAX+1]; | 83 | extern const struct nla_policy ifla_policy[IFLA_MAX+1]; |
84 | 84 | ||
diff --git a/include/net/wext.h b/include/net/wext.h index c02b8decf3af..80b31d826b7a 100644 --- a/include/net/wext.h +++ b/include/net/wext.h | |||
@@ -5,16 +5,23 @@ | |||
5 | * wireless extensions interface to the core code | 5 | * wireless extensions interface to the core code |
6 | */ | 6 | */ |
7 | 7 | ||
8 | struct net; | ||
9 | |||
8 | #ifdef CONFIG_WIRELESS_EXT | 10 | #ifdef CONFIG_WIRELESS_EXT |
9 | extern int wext_proc_init(void); | 11 | extern int wext_proc_init(struct net *net); |
10 | extern int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd, | 12 | extern void wext_proc_exit(struct net *net); |
13 | extern int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, | ||
11 | void __user *arg); | 14 | void __user *arg); |
12 | #else | 15 | #else |
13 | static inline int wext_proc_init(void) | 16 | static inline int wext_proc_init(struct net *net) |
14 | { | 17 | { |
15 | return 0; | 18 | return 0; |
16 | } | 19 | } |
17 | static inline int wext_handle_ioctl(struct ifreq *ifr, unsigned int cmd, | 20 | static inline void wext_proc_exit(struct net *net) |
21 | { | ||
22 | return; | ||
23 | } | ||
24 | static inline int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, | ||
18 | void __user *arg) | 25 | void __user *arg) |
19 | { | 26 | { |
20 | return -EINVAL; | 27 | return -EINVAL; |