summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/iked/iked.h')
-rw-r--r--sbin/iked/iked.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h
index e580fb96269..163f63196f1 100644
--- a/sbin/iked/iked.h
+++ b/sbin/iked/iked.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: iked.h,v 1.127 2019/11/30 15:44:07 tobhe Exp $ */
+/* $OpenBSD: iked.h,v 1.128 2019/12/03 12:38:34 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -140,6 +140,13 @@ struct iked_addr {
in_port_t addr_port;
};
+struct iked_ts {
+ struct iked_addr ts_addr;
+ uint8_t ts_ipproto;
+ TAILQ_ENTRY(iked_ts) ts_entry;
+};
+TAILQ_HEAD(iked_tss, iked_ts);
+
struct iked_flow {
struct iked_addr flow_src;
struct iked_addr flow_dst;
@@ -277,6 +284,10 @@ struct iked_policy {
struct iked_flows pol_flows;
size_t pol_nflows;
+ struct iked_tss pol_tssrc; /* Traffic Selectors Initiator*/
+ size_t pol_tssrc_count;
+ struct iked_tss pol_tsdst; /* Traffic Selectors Responder*/
+ size_t pol_tsdst_count;
struct iked_cfg pol_cfg[IKED_CFG_MAX];
unsigned int pol_ncfg;
@@ -759,6 +770,7 @@ void policy_init(struct iked *);
int policy_lookup(struct iked *, struct iked_message *);
struct iked_policy *
policy_test(struct iked *, struct iked_policy *);
+int policy_generate_ts(struct iked_policy *);
void policy_calc_skip_steps(struct iked_policies *);
void policy_ref(struct iked *, struct iked_policy *);
void policy_unref(struct iked *, struct iked_policy *);