]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PFKEY]: Sending an SADB_GET responds with an SADB_GET
authorCharles Hardin <chardin@2wire.com>
Sun, 9 Dec 2007 17:41:07 +0000 (18:41 +0100)
committerAdrian Bunk <bunk@kernel.org>
Sun, 6 Jan 2008 02:18:59 +0000 (04:18 +0200)
[ Upstream commit: 435000bebd94aae3a7a50078d142d11683d3b193 ]

Kernel needs to respond to an SADB_GET with the same message type to
conform to the RFC 2367 Section 3.1.5

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
net/key/af_key.c

index b2d4d1dd2116fb64212b2c4d33f1d8a2196b42e6..2f8cfb9c842bd045ee1344015117195587792395 100644 (file)
@@ -1498,7 +1498,7 @@ static int pfkey_get(struct sock *sk, struct sk_buff *skb, struct sadb_msg *hdr,
 
        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;