summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2.h
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-08 19:37:19 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-08 19:37:19 +0000
commitf4de8b0c9db0238addc29a03e2eb61d899ea8a7f (patch)
tree9c620ff175580cd83b06328267f09c0683c071d3 /sys/net/pfkeyv2.h
parent5642a4aac134d1e632cd8413e7919e7f37a27dc9 (diff)
Flag field for flows.
Diffstat (limited to 'sys/net/pfkeyv2.h')
-rw-r--r--sys/net/pfkeyv2.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2.h b/sys/net/pfkeyv2.h
index d4fe2586c15..7c1f20418ac 100644
--- a/sys/net/pfkeyv2.h
+++ b/sys/net/pfkeyv2.h
@@ -158,7 +158,8 @@ struct sadb_protocol {
uint16_t sadb_protocol_exttype;
uint8_t sadb_protocol_proto;
uint8_t sadb_protocol_direction;
- uint16_t sadb_protocol_reserved2;
+ uint8_t sadb_protocol_flags;
+ uint8_t sadb_protocol_reserved2;
};
struct sadb_x_policy {
@@ -265,6 +266,8 @@ struct sadb_x_cred {
#define SADB_X_SAFLAGS_RANDOMPADDING 0x080 /* Random ESP padding */
#define SADB_X_SAFLAGS_NOREPLAY 0x100 /* No replay counter */
+#define SADB_X_POLICYFLAGS_POLICY 0x0001 /* This is a static policy */
+
#define SADB_IDENTTYPE_RESERVED 0
#define SADB_IDENTTYPE_PREFIX 1
#define SADB_IDENTTYPE_FQDN 2