Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Dec 1999 12:03:51 +0900
From:      Yoshinobu Inoue <shin@nd.net.fujitsu.co.jp>
To:        freebsd-arch@freebsd.org, cvs-committers@freebsd.org
Subject:   [Solicite review for KAME 6th patch]
Message-ID:  <19991220120351Z.shin@nd.net.fujitsu.co.jp>

next in thread | raw e-mail | index | archive | help
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 <sys/param.h>
 #include <sys/kernel.h>
--- 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991220120351Z.shin>