summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_ipsp.h
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-04 20:34:01 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-04 20:34:01 +0000
commitb3552319e0a4fc708f980ca2e241fda39eac5ccf (patch)
tree0c1a81e157abacf56c8dbe96cb92b8515c36e25b /sys/netinet/ip_ipsp.h
parenta573b477e71dc804e389953d9a30d2882335e524 (diff)
Store peer's credentials in TDB.
Diffstat (limited to 'sys/netinet/ip_ipsp.h')
-rw-r--r--sys/netinet/ip_ipsp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index bdd08a5d1cc..e37f5a8828c 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.78 2001/02/28 04:16:57 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.79 2001/03/04 20:34:00 angelos Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -292,10 +292,12 @@ struct tdb /* tunnel descriptor block */
u_int16_t tdb_amxkeylen; /* Raw authentication key length */
u_int16_t tdb_emxkeylen; /* Raw encryption key length */
u_int16_t tdb_ivlen; /* IV length */
+ u_int16_t tdb_cred_len; /* size of tdb_credentials */
u_int8_t tdb_sproto; /* IPsec protocol */
u_int8_t tdb_wnd; /* Replay window */
u_int8_t tdb_satype; /* SA type (RFC2367, PF_KEY) */
-
+ u_int8_t tdb_cred_type; /* type of tdb_credentials */
+
union sockaddr_union tdb_dst; /* Destination address for this SA */
union sockaddr_union tdb_src; /* Source address for this SA */
union sockaddr_union tdb_proxy;
@@ -318,6 +320,7 @@ struct tdb /* tunnel descriptor block */
u_int8_t tdb_iv[4]; /* Used for HALF-IV ESP */
caddr_t tdb_interface;
+ caddr_t tdb_credentials;
TAILQ_HEAD(tdb_inp_head, inpcb) tdb_inp;
TAILQ_HEAD(tdb_policy_head, ipsec_policy) tdb_policy_head;