diff options
Diffstat (limited to 'include/net/net_namespace.h')
-rw-r--r-- | include/net/net_namespace.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index 991dcd94cbbf..5f9eb260990f 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -9,12 +9,14 @@ | |||
9 | #include <linux/list.h> | 9 | #include <linux/list.h> |
10 | #include <linux/sysctl.h> | 10 | #include <linux/sysctl.h> |
11 | 11 | ||
12 | #include <net/flow.h> | ||
12 | #include <net/netns/core.h> | 13 | #include <net/netns/core.h> |
13 | #include <net/netns/mib.h> | 14 | #include <net/netns/mib.h> |
14 | #include <net/netns/unix.h> | 15 | #include <net/netns/unix.h> |
15 | #include <net/netns/packet.h> | 16 | #include <net/netns/packet.h> |
16 | #include <net/netns/ipv4.h> | 17 | #include <net/netns/ipv4.h> |
17 | #include <net/netns/ipv6.h> | 18 | #include <net/netns/ipv6.h> |
19 | #include <net/netns/ieee802154_6lowpan.h> | ||
18 | #include <net/netns/sctp.h> | 20 | #include <net/netns/sctp.h> |
19 | #include <net/netns/dccp.h> | 21 | #include <net/netns/dccp.h> |
20 | #include <net/netns/netfilter.h> | 22 | #include <net/netns/netfilter.h> |
@@ -90,6 +92,9 @@ struct net { | |||
90 | #if IS_ENABLED(CONFIG_IPV6) | 92 | #if IS_ENABLED(CONFIG_IPV6) |
91 | struct netns_ipv6 ipv6; | 93 | struct netns_ipv6 ipv6; |
92 | #endif | 94 | #endif |
95 | #if IS_ENABLED(CONFIG_IEEE802154_6LOWPAN) | ||
96 | struct netns_ieee802154_lowpan ieee802154_lowpan; | ||
97 | #endif | ||
93 | #if defined(CONFIG_IP_SCTP) || defined(CONFIG_IP_SCTP_MODULE) | 98 | #if defined(CONFIG_IP_SCTP) || defined(CONFIG_IP_SCTP_MODULE) |
94 | struct netns_sctp sctp; | 99 | struct netns_sctp sctp; |
95 | #endif | 100 | #endif |
@@ -127,14 +132,6 @@ struct net { | |||
127 | atomic_t fnhe_genid; | 132 | atomic_t fnhe_genid; |
128 | }; | 133 | }; |
129 | 134 | ||
130 | /* | ||
131 | * ifindex generation is per-net namespace, and loopback is | ||
132 | * always the 1st device in ns (see net_dev_init), thus any | ||
133 | * loopback device should get ifindex 1 | ||
134 | */ | ||
135 | |||
136 | #define LOOPBACK_IFINDEX 1 | ||
137 | |||
138 | #include <linux/seq_file_net.h> | 135 | #include <linux/seq_file_net.h> |
139 | 136 | ||
140 | /* Init's network namespace */ | 137 | /* Init's network namespace */ |