From: Patrick McHardy <kaber@trash.net>
To: Marco Berizzi <pupilla@hotmail.com>
Cc: netdev@vger.kernel.org, Kazunori MIYAZAWA <kazunori@miyazawa.org>
Subject: Re: 2.6.25-rc8 regression with openswan
Date: Thu, 03 Apr 2008 16:36:35 +0200 [thread overview]
Message-ID: <47F4EB73.1040705@trash.net> (raw)
In-Reply-To: <BAY103-DAV125214C1E537F51083DAB6B2F70@phx.gbl>
Marco Berizzi wrote:
> Patrick McHardy wrote:
>
>> Manually adding SAs works fine for me, can you figure out what
>> kind of SA openswan was trying to add?
>
> I have sent you the output of ip -s x s
> and ip -s x p when openswan is working with
> 2.6.25-rc8 with the commit df9dcb458 reverted.
> Let me know you need ssh access to my 2.6.25
> box.
The problem appears to be that openswan doesn't initialize the
selectors family when adding new SAs. xfrm_init_state() uses
the family to decide whether to set up inter family SAs or
regular SAs. We used to fix up the family in xfrm_user, but
this is now only done for transport mode SAs.
- /*
- * Set inner address family if the KM left it as zero.
- * See comment in validate_tmpl.
- */
- if (!x->sel.family)
+ if (x->props.mode == XFRM_MODE_TRANSPORT)
x->sel.family = p->family;
+
Reverting this part should fix it, but would break inter family
tunnels again. It seems we need a different indication for
xfrm_init_state() for inter family SAs.
Kazunori, any ideas?
next prev parent reply other threads:[~2008-04-03 14:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-03 9:42 2.6.25-rc8 regression with openswan Marco Berizzi
2008-04-03 10:01 ` Marco Berizzi
2008-04-03 11:19 ` Patrick McHardy
2008-04-03 11:50 ` Marco Berizzi
2008-04-03 12:06 ` Patrick McHardy
2008-04-03 12:31 ` Marco Berizzi
2008-04-03 12:35 ` Patrick McHardy
2008-04-03 13:52 ` Patrick McHardy
2008-04-03 14:06 ` Marco Berizzi
2008-04-03 14:36 ` Patrick McHardy [this message]
2008-04-08 19:08 ` Patrick McHardy
2008-04-09 15:38 ` [XFRM]: xfrm_user: fix selector family initialization Patrick McHardy
2008-04-09 22:09 ` David Miller
2008-04-10 0:11 ` Kazunori MIYAZAWA
2008-04-10 0:18 ` Patrick McHardy
2008-04-10 0:50 ` Kazunori MIYAZAWA
2008-04-10 0:55 ` Patrick McHardy
2008-04-14 7:33 ` Marco Berizzi
2008-04-14 7:36 ` Patrick McHardy
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=47F4EB73.1040705@trash.net \
--to=kaber@trash.net \
--cc=kazunori@miyazawa.org \
--cc=netdev@vger.kernel.org \
--cc=pupilla@hotmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.