Date: Sat, 18 Dec 1999 01:30:56 +0900 From: Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp> To: freebsd-arch@freebsd.org, cvs-committers@freebsd.org Subject: Re: [Solicite review for KAME 5th patch] Message-ID: <19991218013056S.shin@nd.net.fujitsu.co.jp> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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 <sys/param.h> @@ -63,6 +64,10 @@ #include <netinet/tcp_debug.h> #endif +#ifdef IPSEC +#include <netinet6/ipsec.h> +#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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991218013056S.shin>