]> git.pld-linux.org Git - packages/GNUnet.git/blob - GNUnet-ipv6.patch
- updated gettext BR
[packages/GNUnet.git] / GNUnet-ipv6.patch
1 diff -urN GNUnet-0.6.4a.orig/src/include/gnunet_util.h GNUnet-0.6.4a.new/src/include/gnunet_util.h
2 --- GNUnet-0.6.4a.orig/src/include/gnunet_util.h        2004-09-12 20:32:45.000000000 +0200
3 +++ GNUnet-0.6.4a.new/src/include/gnunet_util.h 2004-10-30 19:06:52.000000000 +0200
4 @@ -1044,8 +1044,8 @@
5   * @param ip the IP to check (in network byte order)
6   * @return NO if the IP is not in the list, YES if it it is
7   */
8 -int checkIP6Listed(const CIDR6Network * list,
9 -                  const IP6addr * ip);
10 +int checkIP6Listed(CIDR6Network * list,
11 +                  IP6addr * ip);
12  
13  /**
14   * Parse a network specification. The argument specifies
15 @@ -1058,7 +1058,7 @@
16   * @param routeList a string specifying the forbidden networks
17   * @return the converted list, NULL if the synatx is flawed
18   */
19 -CIDR6Network * parseRoutes6(const char * routeList);
20 +CIDR6Network * parseRoutes6(char * routeList);
21  
22  
23  
24 diff -urN GNUnet-0.6.4a.orig/src/transports/udp6.c GNUnet-0.6.4a.new/src/transports/udp6.c
25 --- GNUnet-0.6.4a.orig/src/transports/udp6.c    2004-09-18 19:49:26.000000000 +0200
26 +++ GNUnet-0.6.4a.new/src/transports/udp6.c     2004-10-30 19:20:30.000000000 +0200
27 @@ -275,6 +275,7 @@
28  #endif
29      /* quick test of the packet, if failed, repeat! */
30      if (size != ntohs(udp6m.size)) {
31 +      char * tmp = MALLOC(INET6_ADDRSTRLEN);
32        LOG(LOG_WARNING,
33           _("Packed received from %s:%d (UDP6) failed format check."),
34           inet_ntop(AF_INET6,
35 @@ -282,6 +283,7 @@
36                     tmp,
37                     INET6_ADDRSTRLEN), 
38           ntohs(incoming.sin6_port));
39 +      FREE(tmp);
40        goto RETRY;
41      }
42      GNUNET_ASSERT(sizeof(struct in6_addr) == sizeof(IP6addr));
This page took 0.030444 seconds and 3 git commands to generate.