diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 20:32:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 20:32:14 -0500 |
commit | 284fa7da300adcb700b44df2f64a536b434d4650 (patch) | |
tree | 382f31cff91d68085b03bd4df639fd7ad3c78051 /net/key | |
parent | 5447c5e401c49aba0c36bb1066f2d25b152553b7 (diff) |
netns xfrm: state walking in netns
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/key')
-rw-r--r-- | net/key/af_key.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/key/af_key.c b/net/key/af_key.c index 4ef0827009e9..b74d939e2eed 100644 --- a/net/key/af_key.c +++ b/net/key/af_key.c | |||
@@ -1776,7 +1776,7 @@ static int dump_sa(struct xfrm_state *x, int count, void *ptr) | |||
1776 | 1776 | ||
1777 | static int pfkey_dump_sa(struct pfkey_sock *pfk) | 1777 | static int pfkey_dump_sa(struct pfkey_sock *pfk) |
1778 | { | 1778 | { |
1779 | return xfrm_state_walk(&pfk->dump.u.state, dump_sa, (void *) pfk); | 1779 | return xfrm_state_walk(&init_net, &pfk->dump.u.state, dump_sa, (void *) pfk); |
1780 | } | 1780 | } |
1781 | 1781 | ||
1782 | static void pfkey_dump_sa_done(struct pfkey_sock *pfk) | 1782 | static void pfkey_dump_sa_done(struct pfkey_sock *pfk) |