Staging
v0.8.1
https://github.com/torvalds/linux
Revision 9abbffee861c6c56fce27e4eda96a10cf0de0f84 authored by Masahide NAKAMURA on 25 November 2006, 04:34:51 UTC, committed by David S. Miller on 25 November 2006, 23:16:52 UTC
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent dc9b334
History
Tip revision: 9abbffee861c6c56fce27e4eda96a10cf0de0f84 authored by Masahide NAKAMURA on 25 November 2006, 04:34:51 UTC
[XFRM] STATE: Fix to respond error to get operation if no matching entry exists.
Tip revision: 9abbffe
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 547 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.2 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 74.1 KB
Makefile -rw-r--r-- 49.0 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top