summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorLuiz Otavio O Souza <luiz@netgate.com>2016-05-11 12:55:12 -0500
committerLuiz Otavio O Souza <luiz@netgate.com>2016-05-12 11:00:23 -0500
commitad9757e9045dfb7a1874be0663130fe1c0c2933d (patch)
tree39536c8f97c579e096cc95513476d7aa08e375a5 /sys/net
parenteaaca999d480adab78b944fb5b4822c14ab4778f (diff)
downloadFreeBSD-src-ad9757e9045dfb7a1874be0663130fe1c0c2933d.zip
FreeBSD-src-ad9757e9045dfb7a1874be0663130fe1c0c2933d.tar.gz
MFC r290982:
Implement the sadb_x_policy_priority field as it is done in Linux: lower priority policies are inserted first. Submitted by: Emeric Poupon <emeric.poupon@stormshield.eu> Reviewed by: ae Sponsored by: Stormshield TAG: IPSEC-HEAD (cherry picked from commit 25996276a907484d8fc26a6a9a79827367bfcfc0)
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pfkeyv2.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index bab26fe..c9b2769 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -225,7 +225,7 @@ struct sadb_x_policy {
u_int8_t sadb_x_policy_dir; /* direction, see ipsec.h */
u_int8_t sadb_x_policy_reserved;
u_int32_t sadb_x_policy_id;
- u_int32_t sadb_x_policy_reserved2;
+ u_int32_t sadb_x_policy_priority;
};
_Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch");
OpenPOWER on IntegriCloud