Skip to contentSkip to conversation

pfkey: sending an SADB_GET responds with an SADB_GET

PATCH Applied [email protected] 2 participants 2 messages Nov 21, 2007 – Nov 22, 2007

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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]>

---

 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
diff -puN net/key/af_key.c~pfkey-sending-an-sadb_get-responds-with-an-sadb_get net/key/af_key.c
@@ -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;

_

maintainer Applied
#1 lore raw
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_GET with the same message type to conform to the RFC 2367 Section 3.1.5

Cc "David S. Miller" <[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