From de1cfcbf14166d44cc0420634c71e93168c3b65c Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Thu, 18 Jan 2007 20:00:20 +0000 Subject: 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 --- sys/kern/uipc_domain.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/kern') 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 -- cgit v1.2.3