path: root/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
diff options
authorVitaly Lavrov <>2013-09-28 18:41:20 +0200
committerJozsef Kadlecsik <>2013-09-28 18:41:20 +0200
commitbac86fe6e7b14dce5f972fcf7913c6747b81953c (patch)
tree514dd2ff0b11fe9d6e3dec97841800c519bddac2 /kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
parentdef57acbe5806439898f22237a3917c56095766e (diff)
ipset: Add net namespace for ipset
This patch adds netns support for ipset. Major changes were made in ip_set_core.c and ip_set.h. Global variables are moved to per net namespace. Added initialization code and the destruction of the network namespace ipset subsystem. In the prototypes of public functions ip_set_* added parameter "struct net*". The remaining corrections related to the change prototypes of public functions ip_set_*. The patch for git:// commit 6a4ec96c0b8caac5c35474e40e319704d92ca347 Signed-off-by: Vitaly Lavrov <> Signed-off-by: Jozsef Kadlecsik <>
Diffstat (limited to 'kernel/net/netfilter/ipset/ip_set_bitmap_ip.c')
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c b/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
index faac124..6f1f9f4 100644
--- a/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
+++ b/kernel/net/netfilter/ipset/ip_set_bitmap_ip.c
@@ -242,7 +242,8 @@ init_map_ip(struct ip_set *set, struct bitmap_ip *map,
static int
-bitmap_ip_create(struct ip_set *set, struct nlattr *tb[], u32 flags)
+bitmap_ip_create(struct net *net, struct ip_set *set, struct nlattr *tb[],
+ u32 flags)
struct bitmap_ip *map;
u32 first_ip = 0, last_ip = 0, hosts;