summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_ipsp.c
diff options
context:
space:
mode:
authorho <ho@openbsd.org>2005-05-28 15:10:07 +0000
committerho <ho@openbsd.org>2005-05-28 15:10:07 +0000
commitc45b24e7e39a84ca8e974533b1439ffb569e1ee7 (patch)
tree5ad3c289c82afd962eea749ffce2d348c0927938 /sys/netinet/ip_ipsp.c
parentenable IFCAP_VLAN_MTU because IEEE 802.11 defines a MTU of about 2290. (diff)
downloadwireguard-openbsd-c45b24e7e39a84ca8e974533b1439ffb569e1ee7.tar.xz
wireguard-openbsd-c45b24e7e39a84ca8e974533b1439ffb569e1ee7.zip
Add SA replay counter synchronization to pfsync(4). Required for IPsec
failover gateways. ok mcbride@, "looks good" hshoexer@
Diffstat (limited to 'sys/netinet/ip_ipsp.c')
-rw-r--r--sys/netinet/ip_ipsp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/netinet/ip_ipsp.c b/sys/netinet/ip_ipsp.c
index 663309466d4..3bd169e6014 100644
--- a/sys/netinet/ip_ipsp.c
+++ b/sys/netinet/ip_ipsp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.c,v 1.162 2005/05/27 19:33:56 hshoexer Exp $ */
+/* $OpenBSD: ip_ipsp.c,v 1.163 2005/05/28 15:10:07 ho Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr),
@@ -76,10 +76,6 @@ void tdb_hashstats(void);
#define DPRINTF(x)
#endif
-#ifdef __GNUC__
-#define INLINE static __inline
-#endif
-
int ipsp_kern(int, char **, int);
u_int8_t get_sa_require(struct inpcb *);
void tdb_rehash(void);
@@ -145,7 +141,7 @@ static int tdb_count;
* Our hashing function needs to stir things with a non-zero random multiplier
* so we cannot be DoS-attacked via choosing of the data to hash.
*/
-INLINE int
+int
tdb_hash(u_int32_t spi, union sockaddr_union *dst, u_int8_t proto)
{
static u_int32_t mult1 = 0, mult2 = 0;