diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-09-09 05:23:37 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-09-09 05:23:37 -0700 |
commit | 225f40055f779032974a9fce7b2f9c9eda04ff58 (patch) | |
tree | dc2d8621f11ca7524ffc895c7c0a64593557fee9 /net/xfrm/xfrm_policy.c | |
parent | fd9ec7d31ffc36917dc7cac0fd0435f587a572d4 (diff) | |
download | linux-225f40055f779032974a9fce7b2f9c9eda04ff58.tar.gz linux-225f40055f779032974a9fce7b2f9c9eda04ff58.tar.bz2 linux-225f40055f779032974a9fce7b2f9c9eda04ff58.zip |
ipsec: Restore larval states and socket policies in dump
The commit commit 4c563f7669c10a12354b72b518c2287ffc6ebfb3 ("[XFRM]:
Speed up xfrm_policy and xfrm_state walking") inadvertently removed
larval states and socket policies from netlink dumps. This patch
restores them.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/xfrm/xfrm_policy.c')
-rw-r--r-- | net/xfrm/xfrm_policy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/xfrm/xfrm_policy.c b/net/xfrm/xfrm_policy.c index 46914b79d850..b7754b1b73a4 100644 --- a/net/xfrm/xfrm_policy.c +++ b/net/xfrm/xfrm_policy.c @@ -1077,6 +1077,7 @@ static void __xfrm_policy_link(struct xfrm_policy *pol, int dir) struct hlist_head *chain = policy_hash_bysel(&pol->selector, pol->family, dir); + list_add_tail(&pol->bytype, &xfrm_policy_bytype[pol->type]); hlist_add_head(&pol->bydst, chain); hlist_add_head(&pol->byidx, xfrm_policy_byidx+idx_hash(pol->index)); xfrm_policy_count[dir]++; |