From owner-freebsd-arch Fri Dec 17 8:32:24 1999 Delivered-To: freebsd-arch@freebsd.org Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (Postfix) with ESMTP id 33063150CB for ; Fri, 17 Dec 1999 08:32:22 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.3/8.9.3) with ESMTP id RAA13439 for ; Fri, 17 Dec 1999 17:32:19 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id RAA01080 for freebsd-arch@freebsd.org; Fri, 17 Dec 1999 17:32:19 +0100 (MET) Received: from fgwmail7.fujitsu.co.jp (fgwmail7.fujitsu.co.jp [192.51.44.37]) by hub.freebsd.org (Postfix) with ESMTP id C1D3714F49; Fri, 17 Dec 1999 08:30:37 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m3.gw.fujitsu.co.jp by fgwmail7.fujitsu.co.jp (8.9.3/3.7W-MX9912-Fujitsu Gateway) id BAA25487; Sat, 18 Dec 1999 01:30:32 +0900 (JST) Received: from incapgw.fujitsu.co.jp by m3.gw.fujitsu.co.jp (8.9.3/3.7W-9912-Fujitsu Domain Master) id BAA00205; Sat, 18 Dec 1999 01:30:31 +0900 (JST) Received: from localhost ([192.168.245.120]) by incapgw.fujitsu.co.jp (8.9.3/3.7W-9912) id BAA14310; Sat, 18 Dec 1999 01:30:29 +0900 (JST) To: freebsd-arch@freebsd.org, cvs-committers@freebsd.org Subject: Re: [Solicite review for KAME 5th patch] In-Reply-To: <19991217030527N.shin@nd.net.fujitsu.co.jp> References: <19991212094142.F32274@daemon.ninth-circle.org> <19991212223550M.shin@nd.net.fujitsu.co.jp> <19991217030527N.shin@nd.net.fujitsu.co.jp> X-Mailer: Mew version 1.94 on Emacs 20.4 / Mule 4.0 (HANANOEN) X-Prom-Mew: Prom-Mew 1.93.4 (procmail reader for Mew) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <19991218013056S.shin@nd.net.fujitsu.co.jp> Date: Sat, 18 Dec 1999 01:30:56 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 57 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Hi, 5th KAME patch is updated, as below. > > http://paradise.kame.net/v6proxy/diana2/shin/work/freebsd/kernel-ipsec.19991217 Sorry, this patches lacks of an IPSEC related initialization at tcp_attach(), and it might cause kernel panic. If someone actually try applying it, please use updated patches below, http://paradise.kame.net/v6proxy/diana2/shin/work/freebsd/kernel-ipsec.19991218 or, apply this patch additionally to the previous patches. Thanks, Yoshinobu Inoue Index: tcp_usrreq.c =================================================================== RCS file: /home/ncvs/src/sys/netinet/tcp_usrreq.c,v retrieving revision 1.49 diff -u -r1.49 tcp_usrreq.c --- tcp_usrreq.c 1999/12/13 00:39:20 1.49 +++ tcp_usrreq.c 1999/12/17 16:24:53 @@ -34,6 +34,7 @@ * $FreeBSD: src/sys/netinet/tcp_usrreq.c,v 1.49 1999/12/13 00:39:20 shin Exp $ */ +#include "opt_ipsec.h" #include "opt_tcpdebug.h" #include @@ -63,6 +64,10 @@ #include #endif +#ifdef IPSEC +#include +#endif /*IPSEC*/ + /* * TCP protocol interface to socket abstraction. */ @@ -731,6 +736,13 @@ if (error) return (error); inp = sotoinpcb(so); +#ifdef IPSEC + error = ipsec_init_policy(so, &inp->inp_sp); + if (error) { + in_pcbdetach(inp); + return (error); + } +#endif /*IPSEC*/ inp->inp_vflag |= INP_IPV4; tp = tcp_newtcpcb(inp); if (tp == 0) { To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message