>
http://bugzilla.kernel.org/show_bug.cgi?id=9128
>
> Summary: PF_KEY SADB_GET messages return SADB_DUMP from the
> kernel
> Product: Networking
> Version: 2.5
> KernelVersion: 2.6.18
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: normal
> Priority: P1
> Component: Other
> AssignedTo:
acme@ghostprotocols.net
> ReportedBy:
chardin@2wire.com
>
>
> Most recent kernel where this bug did not occur:
> Distribution: Centos 5
> Hardware Environment: Dell 490
> Software Environment: Centos 5
> Problem Description:
> Sending an SADB_GET to the PF_KEY socket returns an SADB_DUMP in the out_hdr
>
> Steps to reproduce:
> Send an SADB_GET to the PF_KEY socket and dump the returned packet
>
>
> This patch should fix the problem
> diff --git a/net/key/af_key.c b/net/key/af_key.c
> index 5502df1..7a5e993 100644
> --- a/net/key/af_key.c
> +++ b/net/key/af_key.c
> @@ -1546,7 +1546,7 @@ static int pfkey_get(struct sock *sk, struct sk_buff
> *skb,
>
> 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;
>