netns xfrm: state walking in netns

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Alexey Dobriyan
2008-11-25 17:32:14 -08:00
committed by David S. Miller
parent 5447c5e401
commit 284fa7da30
4 changed files with 6 additions and 6 deletions

View File

@@ -631,7 +631,7 @@ static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
xfrm_state_walk_init(walk, 0);
}
(void) xfrm_state_walk(walk, dump_one_state, &info);
(void) xfrm_state_walk(&init_net, walk, dump_one_state, &info);
return skb->len;
}