diff options
author | Andrey V. Elsukov <ae@FreeBSD.org> | 2017-03-07 00:13:53 +0000 |
---|---|---|
committer | Andrey V. Elsukov <ae@FreeBSD.org> | 2017-03-07 00:13:53 +0000 |
commit | 22986c6740d148cbf4f97936940e561fd2f807aa (patch) | |
tree | 4ad589f25f6dba931f67cc83dbc5a1426dab13df /sys/net/pfkeyv2.h | |
parent | b440e965da9648c04cceae5371897c50a2673739 (diff) | |
download | src-22986c6740d148cbf4f97936940e561fd2f807aa.tar.gz src-22986c6740d148cbf4f97936940e561fd2f807aa.zip |
Notes
Diffstat (limited to 'sys/net/pfkeyv2.h')
-rw-r--r-- | sys/net/pfkeyv2.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h index cc2b746aec3b..c2cf568f6f98 100644 --- a/sys/net/pfkeyv2.h +++ b/sys/net/pfkeyv2.h @@ -223,9 +223,12 @@ struct sadb_x_policy { u_int16_t sadb_x_policy_exttype; u_int16_t sadb_x_policy_type; /* See policy type of ipsec.h */ u_int8_t sadb_x_policy_dir; /* direction, see ipsec.h */ - u_int8_t sadb_x_policy_reserved; + u_int8_t sadb_x_policy_scope; /* scope, see ipsec.h */ u_int32_t sadb_x_policy_id; u_int32_t sadb_x_policy_priority; +#define sadb_x_policy_reserved sadb_x_policy_scope +/* Policy with ifnet scope uses priority field to store ifindex */ +#define sadb_x_policy_ifindex sadb_x_policy_priority }; _Static_assert(sizeof(struct sadb_x_policy) == 16, "struct size mismatch"); |