9ce9fcd20aa7a73fde17a525d14aa266b8f7e070
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / net / net_namespace.h
1 #ifndef __NET_NET_NAMESPACE_WRAPPER_H
2 #define __NET_NET_NAMESPACE_WRAPPER_H 1
3
4 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
5 /* <net/net_namespace.h> exists, go ahead and include it. */
6 #include_next <net/net_namespace.h>
7 #endif
8
9 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
10 #define INIT_NET_GENL_SOCK init_net.genl_sock
11 #else
12 #define INIT_NET_GENL_SOCK genl_sock
13 #endif
14
15 #endif /* net/net_namespace.h wrapper */