pfkey: sending an SADB_GET responds with an SADB_GET
Subsystems (3)
PATCH 1/4 pfkey: sending an SADB_GET responds with an SADB_GET
From: Charles Hardin <[email protected]>
Kernel needs to respond to an SADB_GET with the same message type to conform to the RFC 2367 Section 3.1.5
Cc "David S. Miller" <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
net/key/af_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/key/af_key.c renamed from net/key/af_key.c~pfkey-sending-an-sadb_get-responds-with-an-sadb_get +1 -1
@@ -1552,7 +1552,7 @@ static int pfkey_get(struct sock *sk, st out_hdr = (struct sadb_msg *) out_skb->data; out_hdr->sadb_msg_version = hdr->sadb_msg_version; - out_hdr->sadb_msg_type =SADB_DUMP ; + out_hdr->sadb_msg_type =SADB_GET ; out_hdr->sadb_msg_satype =pfkey_proto2satype (proto); out_hdr->sadb_msg_errno =0 ; out_hdr->sadb_msg_reserved =0 ;
_
Quoted 7 lines · On Wed, Nov 21, 2007 at 11:02:13PM +0000, [email protected] wrote:
From: Charles Hardin <[email protected]>
Kernel needs to respond to an
SADB_GETwith the same message type to conform to the RFC 2367 Section 3.1.5Cc "David S. Miller" <[email protected]>Signed-off-by Andrew Morton <[email protected]>
Applied to net-2.6. Thanks Andrew.
Signature · 4 lines
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt