From 61eed162b2c53be3ae2cfe2433a7b5d1e8d1a53a Mon Sep 17 00:00:00 2001 From: itojun Date: Sat, 2 Nov 2002 19:03:44 +0000 Subject: [PATCH] cleanup ipsec.h dependency. commented by perry, sync w/kame --- sys/netinet/in_pcb.h | 7 +++---- sys/netinet/in_proto.c | 5 +++-- sys/netinet/tcp_output.c | 8 ++++++-- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h index 49328a9c3101..4187aeb88d4e 100644 --- a/sys/netinet/in_pcb.h +++ b/sys/netinet/in_pcb.h @@ -1,4 +1,4 @@ -/* $NetBSD: in_pcb.h,v 1.31 2002/06/09 16:33:38 itojun Exp $ */ +/* $NetBSD: in_pcb.h,v 1.32 2002/11/02 19:03:44 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -68,9 +68,6 @@ #define _NETINET_IN_PCB_H_ #include -#if 1 /*IPSEC*/ -#include -#endif /* * Common structure pcb for internet protocol implementation. @@ -79,6 +76,8 @@ * up (to a socket structure) and down (to a protocol-specific) * control block. */ +struct inpcbpolicy; + struct inpcb { LIST_ENTRY(inpcb) inp_hash; CIRCLEQ_ENTRY(inpcb) inp_queue; diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index 67977e05a7bb..7e1fee329b41 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -1,4 +1,4 @@ -/* $NetBSD: in_proto.c,v 1.57 2002/09/25 07:37:12 itojun Exp $ */ +/* $NetBSD: in_proto.c,v 1.58 2002/11/02 19:03:44 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -65,7 +65,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.57 2002/09/25 07:37:12 itojun Exp $"); +__KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.58 2002/11/02 19:03:44 itojun Exp $"); #include "opt_mrouting.h" #include "opt_eon.h" /* ISO CLNL over IP */ @@ -114,6 +114,7 @@ __KERNEL_RCSID(0, "$NetBSD: in_proto.c,v 1.57 2002/09/25 07:37:12 itojun Exp $") */ #ifdef IPSEC +#include #include #ifdef IPSEC_ESP #include diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 5ef79d3bbca4..bfde7b628069 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcp_output.c,v 1.86 2002/09/13 18:26:55 mycroft Exp $ */ +/* $NetBSD: tcp_output.c,v 1.87 2002/11/02 19:03:44 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -142,7 +142,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.86 2002/09/13 18:26:55 mycroft Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.87 2002/11/02 19:03:44 itojun Exp $"); #include "opt_inet.h" #include "opt_ipsec.h" @@ -179,6 +179,10 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_output.c,v 1.86 2002/09/13 18:26:55 mycroft Exp #include #endif +#ifdef IPSEC +#include +#endif + #include #define TCPOUTFLAGS #include