From owner-freebsd-arch Sun Dec 19 19: 3:50 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 1331615250 for ; Sun, 19 Dec 1999 19:03:40 -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 EAA18545 for ; Mon, 20 Dec 1999 04:03:38 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id EAA17100 for freebsd-arch@freebsd.org; Mon, 20 Dec 1999 04:03:37 +0100 (MET) Received: from fgwmail5.fujitsu.co.jp (fgwmail5.fujitsu.co.jp [192.51.44.35]) by hub.freebsd.org (Postfix) with ESMTP id A3E0714A0A; Sun, 19 Dec 1999 19:03:28 -0800 (PST) (envelope-from shin@nd.net.fujitsu.co.jp) Received: from m5.gw.fujitsu.co.jp by fgwmail5.fujitsu.co.jp (8.9.3/3.7W-MX9912-Fujitsu Gateway) id MAA12209; Mon, 20 Dec 1999 12:03:26 +0900 (JST) Received: from chisato.nd.net.fujitsu.co.jp by m5.gw.fujitsu.co.jp (8.9.3/3.7W-9912-Fujitsu Domain Master) id MAA00954; Mon, 20 Dec 1999 12:03:26 +0900 (JST) Received: from localhost (dhcp7194.nd.net.fujitsu.co.jp [10.18.7.194]) by chisato.nd.net.fujitsu.co.jp (8.8.5+2.7Wbeta5/3.3W8chisato-970826) with ESMTP id MAA06825; Mon, 20 Dec 1999 12:03:25 +0900 (JST) To: freebsd-arch@freebsd.org, cvs-committers@freebsd.org Subject: [Solicite review for KAME 6th patch] 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: <19991220120351Z.shin@nd.net.fujitsu.co.jp> Date: Mon, 20 Dec 1999 12:03:51 +0900 From: Yoshinobu Inoue X-Dispatcher: imput version 990905(IM130) Lines: 86 Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG The 6th KAME patches is prepared. http://paradise.kame.net/v6proxy/diana2/shin/work/freebsd/udp-raw-apps.19991220 This time, it includes, -gethostbyaddr(), gethostbyname(), etc support in libc/net (but DNS query over IPv6 transport is not yet) -several udp and raw socket apps ping6 rtsol(host address autoconfiguration tool. Actually the source code is shared with 'rtsold'. Though it needs 'rtadvd' daemon on a router, 'rtadvd' for current is not yet.) rtsold(host address autoconfiguration daemon for Note PC, which frequently change its subnet) gifconfig(v6/v4, v6/v4, v4/v4, v6/v6 tunneling configuration) ifmcstat(print out v6 multicast addr configuration info) prefix(assigne address prefix, e.g. subnet addr, just like ifconfig for full addr. it also support host internal prefix renumbering) route6d rip6query As far as I roughly checked those apps, they seems to work fine over 5th KAME patched machines. Also, confirming those apps, I found some bugs and cause of warnings in the patched kernel. I fixed them and updated 5th KAME patches as below. http://paradise.kame.net/v6proxy/diana2/shin/work/freebsd/kernel-ipsec.19991220 I'll also attach the changes from previous version at the end of this mail. Please give me comments, thanks, Yoshinobu Inoue --- sys/netinet/in_proto.c Thu Dec 16 13:11:15 1999 +++ sys.tmp/netinet/in_proto.c Mon Dec 20 05:43:06 1999 @@ -37,6 +37,7 @@ #include "opt_ipdivert.h" #include "opt_ipx.h" #include "opt_ipsec.h" +#include "opt_inet6.h" #include #include --- sys/netinet6/ip6_input.c Thu Dec 16 14:02:41 1999 +++ sys.tmp/netinet6/ip6_input.c Sun Dec 19 09:02:57 1999 @@ -211,7 +211,8 @@ } /* cheat */ -SYSINIT(netinet6init2, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, ip6_init2, NULL); +/* This must be after route_init(), which is now SI_ORDER_THIRD */ +SYSINIT(netinet6init2, SI_SUB_PROTO_DOMAIN, SI_ORDER_MIDDLE, ip6_init2, NULL); /* * IP6 input interrupt handling. Just pass the packet to ip6_input. --- sys/net/route.c Fri Dec 10 11:53:43 1999 +++ sys.tmp/net/route.c Mon Dec 20 05:42:45 1999 @@ -1077,4 +1077,5 @@ return (error); } -SYSINIT(route, SI_SUB_PROTO_DOMAIN, SI_ORDER_ANY, route_init, 0); +/* This must be before ip6_init2(), which is now SI_ORDER_MIDDLE */ +SYSINIT(route, SI_SUB_PROTO_DOMAIN, SI_ORDER_THIRD, route_init, 0); --- sys/sys/socket.h Fri Jan 1 14:11:25 1999 +++ sys.tmp/sys/socket.h Sun Dec 19 06:20:06 1999 @@ -363,7 +363,7 @@ /* given pointer to struct cmsghdr, return pointer to next cmsghdr */ #define CMSG_NXTHDR(mhdr, cmsg) \ (((caddr_t)(cmsg) + (cmsg)->cmsg_len + sizeof(struct cmsghdr) > \ - (mhdr)->msg_control + (mhdr)->msg_controllen) ? \ + (caddr_t)(mhdr)->msg_control + (mhdr)->msg_controllen) ? \ (struct cmsghdr *)NULL : \ (struct cmsghdr *)((caddr_t)(cmsg) + CMSG_ALIGN((cmsg)->cmsg_len))) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message