diff options
author | Niels Provos <provos@cvs.openbsd.org> | 1997-06-24 12:15:28 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 1997-06-24 12:15:28 +0000 |
commit | 6e79d83bde76cc1e88a4d6bf487189769ef11465 (patch) | |
tree | 79413ebba8b387f6a704b63bf112acec6759b2cf /sys/netinet/ip_ipsp.h | |
parent | d3aefd9008254bea4ccef33b0b71ee00ec825972 (diff) |
handle IP options in AH + allow IP options in outgoing encapsulated packets
+ usage counters for later use with keymanagement processes
Diffstat (limited to 'sys/netinet/ip_ipsp.h')
-rw-r--r-- | sys/netinet/ip_ipsp.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 53b42ab198d..b9c9c27e64d 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.h,v 1.6 1997/06/21 00:09:19 deraadt Exp $ */ +/* $OpenBSD: ip_ipsp.h,v 1.7 1997/06/24 12:15:26 provos Exp $ */ /* * The author of this code is John Ioannidis, ji@tla.org, @@ -36,11 +36,17 @@ struct tdb /* tunnel descriptor block */ u_int32_t tdb_flags; /* Flags related to this TDB */ #define TDBF_UNIQUE 0x0001 /* This should not be used by others */ #define TDBF_TIMER 0x0002 /* Check the timers */ -#define TDBF_BYTES 0x0004 /* Update the byte counters */ +#define TDBF_BYTES 0x0004 /* Check the byte counters */ +#define TDBF_PACKETS 0x0008 /* Check the packet counters */ +#define TDBF_INVALID 0x0010 /* This SPI is no longer valid */ + u_int64_t tdb_packets; /* Expire after so many packets s|r */ + u_int64_t tdb_soft_packets; /* Expiration warning */ + u_int64_t tdb_cur_packets; /* Current number of packets s|r'ed */ u_int64_t tdb_bytes; /* Expire after so many bytes passed */ + u_int64_t tdb_soft_bytes; /* Expiration warning */ u_int64_t tdb_cur_bytes; /* Current count of bytes */ + u_int64_t tdb_timeout; /* When does the SPI expire */ u_int64_t tdb_soft_timeout; /* Send a soft-expire warning */ - u_int64_t tdb_hard_timeout; /* When does the SPI expire */ u_int64_t tdb_established; /* When was the SPI established */ struct in_addr tdb_dst; /* dest address for this SPI */ struct ifnet *tdb_rcvif; /* related rcv encap interface */ |