diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2007-01-18 20:00:20 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2007-01-18 20:00:20 +0000 |
commit | de1cfcbf14166d44cc0420634c71e93168c3b65c (patch) | |
tree | 9ba06fec9867f1c1a988fb55ebb3eef24e3996e0 /sys/kern/uipc_domain.c | |
parent | 8c0b6a9b6e6836f3e5e2508264aee0557e7520ca (diff) |
allow kernels with TCP_SIGNATURE (aka tcp md5sig), but without IPSEC to
compile and work. need to register pfkey whenever tcp md5 or ipsec is
defined, and the various ipsec encapsulations only if ipsec is defined.
ok theo
Diffstat (limited to 'sys/kern/uipc_domain.c')
-rw-r--r-- | sys/kern/uipc_domain.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/uipc_domain.c b/sys/kern/uipc_domain.c index 68b15c75399..c0b9c15798c 100644 --- a/sys/kern/uipc_domain.c +++ b/sys/kern/uipc_domain.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_domain.c,v 1.24 2006/06/15 10:46:58 henning Exp $ */ +/* $OpenBSD: uipc_domain.c,v 1.25 2007/01/18 20:00:18 henning Exp $ */ /* $NetBSD: uipc_domain.c,v 1.14 1996/02/09 19:00:44 christos Exp $ */ /* @@ -54,9 +54,9 @@ void pffasttimo(void *); void pfslowtimo(void *); struct domain * pffinddomain(int); -#if defined (KEY) || defined (IPSEC) +#if defined (KEY) || defined (IPSEC) || defined (TCP_SIGNATURE) int pfkey_init(void); -#endif /* KEY || IPSEC */ +#endif /* KEY || IPSEC || TCP_SIGNATURE */ #define ADDDOMAIN(x) { \ extern struct domain __CONCAT(x,domain); \ @@ -85,7 +85,7 @@ domaininit(void) #ifdef INET6 ADDDOMAIN(inet6); #endif /* INET6 */ -#if defined (KEY) || defined (IPSEC) +#if defined (KEY) || defined (IPSEC) || defined (TCP_SIGNATURE) pfkey_init(); #endif /* KEY || IPSEC */ #ifdef IPX |