diff options
author | suz <suz@FreeBSD.org> | 2004-11-08 18:49:51 +0000 |
---|---|---|
committer | suz <suz@FreeBSD.org> | 2004-11-08 18:49:51 +0000 |
commit | 30108058ef925b4c34031dec54099496ef4e20d0 (patch) | |
tree | 0912a1de7b2155b38bee6a88783ce5b4d303f252 /sys/netkey/key.h | |
parent | fe29d052b3b44fdb738ae8d15342c3d868de1d7e (diff) | |
download | FreeBSD-src-30108058ef925b4c34031dec54099496ef4e20d0.zip FreeBSD-src-30108058ef925b4c34031dec54099496ef4e20d0.tar.gz |
support TCP-MD5(IPv4) in KAME-IPSEC, too.
MFC after: 3 week
Diffstat (limited to 'sys/netkey/key.h')
-rw-r--r-- | sys/netkey/key.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/netkey/key.h b/sys/netkey/key.h index 6bd1850..890516a 100644 --- a/sys/netkey/key.h +++ b/sys/netkey/key.h @@ -50,6 +50,7 @@ struct sockaddr; struct socket; struct sadb_msg; struct sadb_x_policy; +union sockaddr_union; extern struct secpolicy *key_allocsp(u_int16_t, struct secpolicyindex *, u_int); @@ -78,6 +79,15 @@ extern void key_sa_recordxfer(struct secasvar *, struct mbuf *); extern void key_sa_routechange(struct sockaddr *); extern void key_sa_stir_iv(struct secasvar *); +/* to keep compatibility with FAST_IPSEC */ +#define KEY_ALLOCSA(dst, proto, spi) \ + key_allocsa(((struct sockaddr *)(dst))->sa_family,\ + (caddr_t)&(((struct sockaddr_in *)(dst))->sin_addr),\ + (caddr_t)&(((struct sockaddr_in *)(dst))->sin_addr),\ + proto, spi) +#define KEY_FREESAV(psav) \ + key_freesav(*psav) + #ifdef MALLOC_DECLARE MALLOC_DECLARE(M_SECA); #endif /* MALLOC_DECLARE */ |