From: jamal <hadi@cyberus.ca>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org, Masahide NAKAMURA <nakam@linux-ipv6.org>
Subject: [[PATCH][XFRM]: Sub-policies broke policy events
Date: Fri, 17 Nov 2006 08:34:44 -0500 [thread overview]
Message-ID: <1163770484.5107.20.camel@jzny2> (raw)
[-- Attachment #1: Type: text/plain, Size: 133 bytes --]
Found the cause of my problems.
Dave, this is against Linus tree because it is bug fix.
Nakamura-san please ACK.
cheers,
jamal
[-- Attachment #2: ipsec-subp --]
[-- Type: text/plain, Size: 1084 bytes --]
[XFRM]: Sub-policies broke policy events
XFRM policy events are broken when sub-policy feature is turned on.
A simple test to verify this:
run ip xfrm mon on one window and add then delete a policy on another
window ..
Signed-off-by: Jamal Hadi Salim <hadi@cyberus.ca>
---
commit b53ec68c276ac1d879759de130620a72254cb969
tree b91ed5cf9090478bc49bd7414be6dd295352ff2b
parent 1b9bb3c14c60324b54645ffefbe6d270f9fd191c
author Jamal Hadi Salim <hadi@cyberus.ca> Fri, 17 Nov 2006 08:13:16 -0500
committer Jamal Hadi Salim <hadi@jzny2.(none)> Fri, 17 Nov 2006 08:13:16 -0500
net/xfrm/xfrm_user.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index b43e764..2dae1c1 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -2060,6 +2060,9 @@ static int xfrm_notify_policy(struct xfr
len += RTA_SPACE(headlen);
headlen = sizeof(*id);
}
+#ifdef CONFIG_XFRM_SUB_POLICY
+ len += RTA_SPACE(sizeof(struct xfrm_userpolicy_type));
+#endif
len += NLMSG_SPACE(headlen);
skb = alloc_skb(len, GFP_ATOMIC);
next reply other threads:[~2006-11-17 13:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-17 13:34 jamal [this message]
2006-11-18 8:51 ` [[PATCH][XFRM]: Sub-policies broke policy events Masahide NAKAMURA
2006-11-19 22:54 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1163770484.5107.20.camel@jzny2 \
--to=hadi@cyberus.ca \
--cc=davem@davemloft.net \
--cc=nakam@linux-ipv6.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox