summaryrefslogtreecommitdiff
path: root/mbone/vic/files
diff options
context:
space:
mode:
authorMunechika SUMIKAWA <sumikawa@FreeBSD.org>2002-03-24 08:22:52 +0000
committerMunechika SUMIKAWA <sumikawa@FreeBSD.org>2002-03-24 08:22:52 +0000
commitfd1e56fd983993538e1ee8292b2a6ebaf6e8c2d2 (patch)
treeafb1c3460cce8052773a9db509706b21ecb3a327 /mbone/vic/files
parentRemove krb5-beta, which was deleted from the tree. (diff)
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 000000000000..3d1ba594a6f2
--- /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 000000000000..ed330bfa8b04
--- /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 000000000000..26397cdde8ff
--- /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");