gre: Simplify net namespace operations.
[sliver-openvswitch.git] / datapath / linux-2.6 / compat-2.6 / include / net / netns / generic.h
1 #ifndef __NET_NETNS_GENERIC_WRAPPER_H
2 #define __NET_NETNS_GENERIC_WRAPPER_H 1
3
4 #include <linux/version.h>
5 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
6 #include_next <net/netns/generic.h>
7 #endif
8
9 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
10
11 #define net_assign_generic rpl_net_assign_generic
12 int rpl_net_assign_generic(struct net *net, int id, void *data);
13
14 #define net_generic rpl_net_generic
15 void *rpl_net_generic(struct net *net, int id);
16
17 #endif /* linux kernel < 2.6.33 */
18
19 #endif