From: David Miller <davem@davemloft.net>
To: nakam@linux-ipv6.org
Cc: netdev@vger.kernel.org, takamiya@po.ntts.co.jp
Subject: Re: [PATCH] [XFRM] STATE: Fix to respond error to get operation if no matching entry exists.
Date: Fri, 24 Nov 2006 20:35:13 -0800 (PST) [thread overview]
Message-ID: <20061124.203513.112983202.davem@davemloft.net> (raw)
In-Reply-To: <11644286393508-git-send-email-nakam@linux-ipv6.org>
From: Masahide NAKAMURA <nakam@linux-ipv6.org>
Date: Sat, 25 Nov 2006 13:23:59 +0900
> When application uses XFRM_MSG_GETSA to get state entry through netlink
> socket and kernel has no matching one, the application expects reply
> message with error status by kernel.
>
> Kernel doesn't send the message back in the case of Mobile IPv6 route
> optimization protocols (i.e. routing header or destination options
> header). This is caused by incorrect return code "0" from
> net/xfrm/xfrm_user.c(xfrm_user_state_lookup) and it makes kernel skip to
> acknowledge at net/netlink/af_netlink.c(netlink_rcv_skb).
>
> This patch fix to reply ESRCH to application.
>
> Signed-off-by: Masahide NAKAMURA <nakam@linux-ipv6.org>
> Signed-off-by: TAKAMIYA Noriaki <takamiya@po.ntts.co.jp>
Patch applied, thank you very much.
prev parent reply other threads:[~2006-11-25 4:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-25 4:23 [PATCH] [XFRM] STATE: Fix to respond error to get operation if no matching entry exists Masahide NAKAMURA
2006-11-25 4:35 ` David Miller [this message]
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=20061124.203513.112983202.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=nakam@linux-ipv6.org \
--cc=netdev@vger.kernel.org \
--cc=takamiya@po.ntts.co.jp \
/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