]> git.pld-linux.org Git - packages/GNUnet.git/commitdiff
- allow build with ipv6 support, based on
authorkali <kali@pld-linux.org>
Sat, 20 Nov 2004 19:06:24 +0000 (19:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2004-October/042652.html

Changed files:
    GNUnet-ipv6.patch -> 1.1

GNUnet-ipv6.patch [new file with mode: 0644]

diff --git a/GNUnet-ipv6.patch b/GNUnet-ipv6.patch
new file mode 100644 (file)
index 0000000..2d5239e
--- /dev/null
@@ -0,0 +1,42 @@
+diff -urN GNUnet-0.6.4a.orig/src/include/gnunet_util.h GNUnet-0.6.4a.new/src/include/gnunet_util.h
+--- GNUnet-0.6.4a.orig/src/include/gnunet_util.h       2004-09-12 20:32:45.000000000 +0200
++++ GNUnet-0.6.4a.new/src/include/gnunet_util.h        2004-10-30 19:06:52.000000000 +0200
+@@ -1044,8 +1044,8 @@
+  * @param ip the IP to check (in network byte order)
+  * @return NO if the IP is not in the list, YES if it it is
+  */
+-int checkIP6Listed(const CIDR6Network * list,
+-                 const IP6addr * ip);
++int checkIP6Listed(CIDR6Network * list,
++                 IP6addr * ip);
+ /**
+  * Parse a network specification. The argument specifies
+@@ -1058,7 +1058,7 @@
+  * @param routeList a string specifying the forbidden networks
+  * @return the converted list, NULL if the synatx is flawed
+  */
+-CIDR6Network * parseRoutes6(const char * routeList);
++CIDR6Network * parseRoutes6(char * routeList);
+diff -urN GNUnet-0.6.4a.orig/src/transports/udp6.c GNUnet-0.6.4a.new/src/transports/udp6.c
+--- GNUnet-0.6.4a.orig/src/transports/udp6.c   2004-09-18 19:49:26.000000000 +0200
++++ GNUnet-0.6.4a.new/src/transports/udp6.c    2004-10-30 19:20:30.000000000 +0200
+@@ -275,6 +275,7 @@
+ #endif
+     /* quick test of the packet, if failed, repeat! */
+     if (size != ntohs(udp6m.size)) {
++      char * tmp = MALLOC(INET6_ADDRSTRLEN);
+       LOG(LOG_WARNING,
+         _("Packed received from %s:%d (UDP6) failed format check."),
+         inet_ntop(AF_INET6,
+@@ -282,6 +283,7 @@
+                   tmp,
+                   INET6_ADDRSTRLEN), 
+         ntohs(incoming.sin6_port));
++      FREE(tmp);
+       goto RETRY;
+     }
+     GNUNET_ASSERT(sizeof(struct in6_addr) == sizeof(IP6addr));
This page took 0.045093 seconds and 4 git commands to generate.