From owner-ports-jp@jp.FreeBSD.org Mon Feb  4 18:25:13 2002
Received: (from daemon@localhost)
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) id g149PDp12002;
	Mon, 4 Feb 2002 18:25:13 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from gauss.3si.co.jp (gauss.3si.co.jp [61.115.200.67])
	by castle.jp.FreeBSD.org (8.11.6+3.4W/8.11.3) with SMTP/inet id g149PC611995
	for <ports-jp@jp.FreeBSD.org>; Mon, 4 Feb 2002 18:25:12 +0900 (JST)
	(envelope-from nori@3si.co.jp)
Received: (qmail 27890 invoked from network); 4 Feb 2002 09:25:09 -0000
Received: from unknown (HELO localhost) (127.0.0.1)
  by localhost with SMTP; 4 Feb 2002 09:25:09 -0000
Date: Mon, 04 Feb 2002 18:24:50 +0900 (JST)
Message-Id: <20020204.182450.840803724.deco@kali.3si.co.jp>
To: ports-jp@jp.FreeBSD.org
From: Takenori Kobayashi <nori@3si.co.jp>
X-No-Archive: Yes
X-Mailer: Mew version 2.1 on XEmacs 21.4.5 (Civil Service)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
 boundary="--Next_Part(Mon_Feb__4_18:24:50_2002_363)--"
Content-Transfer-Encoding: 7bit
Reply-To: ports-jp@jp.FreeBSD.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+011218
X-Sequence: ports-jp 12342
Subject: [ports-jp 12342] mbone/vic =?ISO-2022-JP?B?GyRCJE4bKEI=?= IPv6
 =?ISO-2022-JP?B?GyRCQlAxfhsoQg==?= 
Errors-To: owner-ports-jp@jp.FreeBSD.org
Sender: owner-ports-jp@jp.FreeBSD.org
X-Originator: nori@3si.co.jp

----Next_Part(Mon_Feb__4_18:24:50_2002_363)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$B$O$8$a$^$7$F!#>.NS$H?=$7$^$9!#(B

 mbone/vic$B$K$h$k!"(BIPv6$B%^%k%A%-%c%9%H$r9T$*$&$H$7$^$7$?$,!"(B
$B$=$N$^$^$G$OBP1~$7$F$$$J$+$C$?MM$J$N$G!"(BWeb$B>e$N>pJsEy$r(B
$B;29M$K%Q%C%A$r:n@.$7$^$7$?!#(B

 $B;d$O(BC$B%W%m%0%i%_%s%0$N7P83$O$[$H$s$I$"$j$^$;$s$7!"$3$&$$$C$?7A$G$N(B
$B%]%9%H$b=i$a$F$G$9$N$G!"$*$+$7$J=j$,B?!9$"$k$+$H;W$$$^$9!#3'$5$s$K(B
$BC!$$$F$b$i$&$HM-Fq$$$G$9!#(B

 $B$H$j$"$($:!";d$N<j85$N(B 4.4-RELEASE $B$H(B 4.4-STABLE $B$G$OF0:n$r3NG'(B
$B$7$F$$$^$9!#(B

--------------------------
Takenori Kobayashi
nori@3si.co.jp


----Next_Part(Mon_Feb__4_18:24:50_2002_363)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="vic-v6.diff"

diff -urN vic.orig/Makefile vic/Makefile
--- vic.orig/Makefile	Mon Feb  4 13:29:35 2002
+++ vic/Makefile	Mon Feb  4 13:36:36 2002
@@ -25,7 +25,8 @@
 		-without-ucltcl \
 		-with-tcl=${LOCALBASE} \
 		-without-ucltk \
-		-with-tk=${LOCALBASE}
+		-with-tk=${LOCALBASE} \
+		-enable-ipv6
 MAN1=		vic.1
 
 pre-patch:
diff -urN vic.orig/files/patch-inet6.c vic/files/patch-inet6.c
--- vic.orig/files/patch-inet6.c	Thu Jan  1 09:00:00 1970
+++ vic/files/patch-inet6.c	Mon Feb  4 17:55:11 2002
@@ -0,0 +1,14 @@
+--- net/inet6.c.org	Mon Feb  4 17:51:32 2002
++++ net/inet6.c	Mon Feb  4 17:52:02 2002
+@@ -64,11 +64,7 @@
+     memcpy(addr->s6_addr, &(((struct sockaddr_in6 *)(ai->ai_addr))->sin6_addr),  sizeof(struct in6_addr));
+     return (0);
+ #else
+-#ifdef MUSICA_IPV6
+     hp = gethostbyname2(hostname, AF_INET6);
+-#else
+-    hp = getnodebyname(hostname, AF_INET6,AI_DEFAULT);
+-#endif /*MUSICA_IPV6*/
+ #endif /*LINUX_IPV6*/
+ #endif /*SOLARIS7_IPV6*/
+     if (hp == 0)  return (-1);
diff -urN vic.orig/files/patch-inet6.h vic/files/patch-inet6.h
--- vic.orig/files/patch-inet6.h	Thu Jan  1 09:00:00 1970
+++ vic/files/patch-inet6.h	Mon Feb  4 17:55:23 2002
@@ -0,0 +1,34 @@
+--- net/inet6.h.org	Mon Feb  4 17:51:39 2002
++++ net/inet6.h	Mon Feb  4 17:52:02 2002
+@@ -44,7 +44,6 @@
+ #define vic_inet6_h
+ 
+ #ifdef HAVE_IPV6
+-
+ #include <sys/types.h>
+ #ifdef WIN32
+ //#include <winsock.h>
+@@ -62,10 +61,23 @@
+ }
+ #else
+ #include <netinet/in.h>
++#include <netinet6/in6.h>
+ #endif
+ #endif
+ #ifndef WIN32
+ #include <arpa/inet.h>
++#ifdef  _NETINET6_IN6_H_
++#ifndef IPV6_ADD_MEMBERSHIP
++#ifdef  IPV6_JOIN_GROUP
++#define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP
++#endif  /* IPV6_JOIN_GROUP      */
++#endif  /* IPV6_ADD_MEMBERSHIP  */
++#ifndef IPV6_DROP_MEMBERSHIP
++#ifdef  IPV6_LEAVE_GROUP
++#define IPV6_DROP_MEMBERSHIP IPV6_LEAVE_GROUP
++#endif  /* IPV6_LEAVE_GROUP     */
++#endif  /* IPV6_DROP_MEMBERSHIP */
++#endif  /* _NETINET6_IN6_H_     */
+ #endif
+ 
+ #include "config.h"
diff -urN vic.orig/files/patch-net-ipv6.cpp vic/files/patch-net-ipv6.cpp
--- vic.orig/files/patch-net-ipv6.cpp	Thu Jan  1 09:00:00 1970
+++ vic/files/patch-net-ipv6.cpp	Mon Feb  4 17:55:34 2002
@@ -0,0 +1,29 @@
+--- net/net-ipv6.cpp.org	Mon Feb  4 17:51:46 2002
++++ net/net-ipv6.cpp	Mon Feb  4 17:52:08 2002
+@@ -277,7 +277,7 @@
+   p->sin6_family = AF_INET6;
+   int len = sizeof(*p), result = 0;
+ 
+-  if ((result = getsockname(ssock_, (struct sockaddr *)p, &len)) < 0) {
++  if ((result = getsockname(ssock_, (struct sockaddr *)p, (socklen_t *)&len)) < 0) {
+     perror("getsockname");
+     p->sin6_addr = in6addr_any;
+     p->sin6_port = 0;
+@@ -364,7 +364,7 @@
+ 		 * with bated breath.
+ 		 */
+ #if defined(__FreeBSD__)
+-                struct oipv6_mreq mr;
++                struct ipv6_mreq mr;
+ #else
+                 struct ipv6_mreq mr;
+ #endif
+@@ -522,7 +522,7 @@
+ 	sockaddr_in6 sfrom;
+ 	int fromlen = sizeof(sfrom);
+ 	int cc = ::recvfrom(fd, (char*)buf, len, 0,
+-			    (sockaddr*)&sfrom, &fromlen);
++			    (sockaddr*)&sfrom, (socklen_t *)&fromlen);
+ 	if (cc < 0) {
+ 		if (errno != EWOULDBLOCK)
+ 			perror("recvfrom");

----Next_Part(Mon_Feb__4_18:24:50_2002_363)----
