aboutsummaryrefslogtreecommitdiffstats
path: root/mbone/vic/files
diff options
context:
space:
mode:
authorsumikawa <sumikawa@FreeBSD.org>2002-03-24 16:22:52 +0800
committersumikawa <sumikawa@FreeBSD.org>2002-03-24 16:22:52 +0800
commit3db8671ab6c0dbec9fbd6741be208912a1c20f6b (patch)
tree095e5e1b1ffa688c8d8bd68ab8b1722d82b4a0f4 /mbone/vic/files
parent19c7cc600365b1fc444902ea42b2ff91f2c596d3 (diff)
downloadfreebsd-ports-graphics-3db8671ab6c0dbec9fbd6741be208912a1c20f6b.tar.gz
freebsd-ports-graphics-3db8671ab6c0dbec9fbd6741be208912a1c20f6b.tar.zst
freebsd-ports-graphics-3db8671ab6c0dbec9fbd6741be208912a1c20f6b.zip
Support IPv6.
Submitted by: Takenori Kobayashi <nori@3si.co.jp> No response from: maintainer
Diffstat (limited to 'mbone/vic/files')
-rw-r--r--mbone/vic/files/patch-inet6.c14
-rw-r--r--mbone/vic/files/patch-inet6.h34
-rw-r--r--mbone/vic/files/patch-net-ipv6.cpp29
3 files changed, 77 insertions, 0 deletions
diff --git a/mbone/vic/files/patch-inet6.c b/mbone/vic/files/patch-inet6.c
new file mode 100644
index 00000000000..3d1ba594a6f
--- /dev/null
+++ b/mbone/vic/files/patch-inet6.c
@@ -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 --git a/mbone/vic/files/patch-inet6.h b/mbone/vic/files/patch-inet6.h
new file mode 100644
index 00000000000..ed330bfa8b0
--- /dev/null
+++ b/mbone/vic/files/patch-inet6.h
@@ -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 --git a/mbone/vic/files/patch-net-ipv6.cpp b/mbone/vic/files/patch-net-ipv6.cpp
new file mode 100644
index 00000000000..26397cdde8f
--- /dev/null
+++ b/mbone/vic/files/patch-net-ipv6.cpp
@@ -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");