diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2008-11-25 20:38:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-25 20:38:20 -0500 |
commit | a6483b790f8efcd8db190c1c0ff93f9d9efe919a (patch) | |
tree | e05ba1d3e7014409a69d878bf9f24c5eb93365e4 /net/xfrm/xfrm_state.c | |
parent | bd235e3cfff617ff91677da553714051866ba55f (diff) |
netns xfrm: per-netns NETLINK_XFRM socket
Stub senders to init_net's one temporarily.
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_state.c')
-rw-r--r-- | net/xfrm/xfrm_state.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/xfrm/xfrm_state.c b/net/xfrm/xfrm_state.c index ea340bbbcc64..21db37ab0a2f 100644 --- a/net/xfrm/xfrm_state.c +++ b/net/xfrm/xfrm_state.c | |||
@@ -24,9 +24,6 @@ | |||
24 | 24 | ||
25 | #include "xfrm_hash.h" | 25 | #include "xfrm_hash.h" |
26 | 26 | ||
27 | struct sock *xfrm_nl; | ||
28 | EXPORT_SYMBOL(xfrm_nl); | ||
29 | |||
30 | u32 sysctl_xfrm_aevent_etime __read_mostly = XFRM_AE_ETIME; | 27 | u32 sysctl_xfrm_aevent_etime __read_mostly = XFRM_AE_ETIME; |
31 | EXPORT_SYMBOL(sysctl_xfrm_aevent_etime); | 28 | EXPORT_SYMBOL(sysctl_xfrm_aevent_etime); |
32 | 29 | ||
@@ -1659,7 +1656,7 @@ static void xfrm_replay_timer_handler(unsigned long data) | |||
1659 | spin_lock(&x->lock); | 1656 | spin_lock(&x->lock); |
1660 | 1657 | ||
1661 | if (x->km.state == XFRM_STATE_VALID) { | 1658 | if (x->km.state == XFRM_STATE_VALID) { |
1662 | if (xfrm_aevent_is_on()) | 1659 | if (xfrm_aevent_is_on(xs_net(x))) |
1663 | xfrm_replay_notify(x, XFRM_REPLAY_TIMEOUT); | 1660 | xfrm_replay_notify(x, XFRM_REPLAY_TIMEOUT); |
1664 | else | 1661 | else |
1665 | x->xflags |= XFRM_TIME_DEFER; | 1662 | x->xflags |= XFRM_TIME_DEFER; |
@@ -1715,7 +1712,7 @@ void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq) | |||
1715 | x->replay.bitmap |= (1U << diff); | 1712 | x->replay.bitmap |= (1U << diff); |
1716 | } | 1713 | } |
1717 | 1714 | ||
1718 | if (xfrm_aevent_is_on()) | 1715 | if (xfrm_aevent_is_on(xs_net(x))) |
1719 | xfrm_replay_notify(x, XFRM_REPLAY_UPDATE); | 1716 | xfrm_replay_notify(x, XFRM_REPLAY_UPDATE); |
1720 | } | 1717 | } |
1721 | 1718 | ||