All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kazunori MIYAZAWA <kazunori@miyazawa.org>
To: Alan Swanson <swanson@ukfsn.org>
Cc: netdev@vger.kernel.org
Subject: Re: IPSEC IPV4 Tunnel Requires IPV6 WIth 2.6.25?
Date: Wed, 21 May 2008 21:17:04 +0900	[thread overview]
Message-ID: <483412C0.2060404@miyazawa.org> (raw)
In-Reply-To: <48340F01.6050104@miyazawa.org>

[-- Attachment #1: Type: text/plain, Size: 218 bytes --]

Kazunori MIYAZAWA さんは書きました:
> Hello,
> 
> This patch fixes the problem.
> I though that someone (sorry I foget) sent the same patch
> when netlink was fixed.
> 

Sorry I did typo.

--
Kazunori Miyazawa

[-- Attachment #2: patch-fixing-af_key.txt --]
[-- Type: text/plain, Size: 533 bytes --]

signed-off-by: Kazunori MIYAZAWA <kazunori@miyazawa.org>

diff --git a/net/key/af_key.c b/net/key/af_key.c
index e9ef9af..835e307 100644
--- a/net/key/af_key.c
+++ b/net/key/af_key.c
@@ -1219,7 +1219,7 @@ static struct xfrm_state * pfkey_msg2xfrm_state(struct sadb_msg *hdr,
                x->sel.prefixlen_s = addr->sadb_address_prefixlen;
        }
 
-       if (x->props.mode == XFRM_MODE_TRANSPORT)
+       if (!x->sel.family)
                x->sel.family = x->props.family;
 
        if (ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]) {


  reply	other threads:[~2008-05-21 12:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-15 20:09 IPSEC IPV4 Tunnel Requires IPV6 WIth 2.6.25? Alan Swanson
2008-05-21 12:01 ` Kazunori MIYAZAWA
2008-05-21 12:17   ` Kazunori MIYAZAWA [this message]
2008-05-21 20:18     ` Alan Swanson
2008-05-21 20:28       ` 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=483412C0.2060404@miyazawa.org \
    --to=kazunori@miyazawa.org \
    --cc=netdev@vger.kernel.org \
    --cc=swanson@ukfsn.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 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.