RE: [PATCH] Add SPD Priority for PF_KEY Interface

From: Buesker, Brian
Date: Wed Apr 14 2004 - 00:45:54 EST


Sorry, I missed that. The following line just needs to be added to
pfkey_xfrm_policy2msg:

pol->sadb_x_policy_priority = xp->priority;

I don't have access to my development environment at this time, so I
can't provide the fix in patch form. I'll do so next Monday but feel
free to do so yourself if you want, since it is such a simple fix.

Brian

-----Original Message-----
From: Herbert Xu [mailto:herbert@xxxxxxxxxxxxxxxxxxx]
Sent: Tuesday, April 13, 2004 7:27 PM
To: Buesker, Brian; linux-net@xxxxxxxxxxxxxxx
Subject: Re: [PATCH] Add SPD Priority for PF_KEY Interface


Brian Buesker <bbuesker@xxxxxxxxxxxx> wrote:
>
> diff -aru linux-2.6.5.orig/net/key/af_key.c
linux-2.6.5/net/key/af_key.c
> --- linux-2.6.5.orig/net/key/af_key.c 2004-04-05 08:26:54.360692320
-0700
> +++ linux-2.6.5/net/key/af_key.c 2004-04-05 08:27:12.133680342
-0700
> @@ -1872,6 +1872,7 @@
>
> xp->action = (pol->sadb_x_policy_type == IPSEC_POLICY_DISCARD ?
> XFRM_POLICY_BLOCK : XFRM_POLICY_ALLOW);
> + xp->priority = pol->sadb_x_policy_priority;
>
> sa = ext_hdrs[SADB_EXT_ADDRESS_SRC-1],
> xp->family = pfkey_sadb_addr2xfrm_addr(sa,
> &xp->selector.saddr);
>

Where's the code to set sadb_x_policy_priority for the get operation?
--
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page:
http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html