summaryrefslogtreecommitdiff
path: root/sbin/iked/iked.h
diff options
context:
space:
mode:
authortobhe <tobhe@cvs.openbsd.org>2020-10-29 21:49:59 +0000
committertobhe <tobhe@cvs.openbsd.org>2020-10-29 21:49:59 +0000
commit83f2ccef17176467707527dabd9216b2afe092c2 (patch)
treea7d1f38d503ecda00c8b42855567306246965ae1 /sbin/iked/iked.h
parentdf7cbdab60153656c19a828195074a4d83bdb9e0 (diff)
Add initial support to request IP addresses as IKEv2 initiator.
At the moment the address is only negotiated and printed to the log. If 'request addr 0.0.0.0' is configured, any address will be accepted. ok patrick@
Diffstat (limited to 'sbin/iked/iked.h')
-rw-r--r--sbin/iked/iked.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h
index 54583d4180d..36cf161c6b2 100644
--- a/sbin/iked/iked.h
+++ b/sbin/iked/iked.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: iked.h,v 1.169 2020/10/24 20:27:59 tobhe Exp $ */
+/* $OpenBSD: iked.h,v 1.170 2020/10/29 21:49:58 tobhe Exp $ */
/*
* Copyright (c) 2019 Tobias Heider <tobias.heider@stusta.de>
@@ -423,6 +423,8 @@ struct iked_sa {
unsigned int sa_statevalid; /* IKE_AUTH */
int sa_cp; /* XXX */
+ struct iked_addr *sa_cp_addr; /* requested address */
+ struct iked_addr *sa_cp_addr6; /* requested address */
struct iked_policy *sa_policy;
struct timeval sa_timecreated;
@@ -603,6 +605,8 @@ struct iked_message {
struct ibuf *msg_del_buf;
int msg_del_protoid;
int msg_cp;
+ struct iked_addr *msg_cp_addr; /* requested address */
+ struct iked_addr *msg_cp_addr6; /* requested address */
/* MOBIKE */
int msg_update_sa_addresses;