[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

www/dillo IPv6 patch



This fixes the IPv6 buglet in dillo-0.7.0, now it works fine :)

$ dillo http://www.benzedrine.cx/

2001:470:1f00:670:1::1 - - [19/Feb/2003:03:23:09 +0100] "GET /www.benzedrine.cx/ HTTP/1.0" 200 5887 "" "Dillo/0.7.0"

Daniel


Index: Makefile
===================================================================
RCS file: /cvs/ports/www/dillo/Makefile,v
retrieving revision 1.11
diff -u -r1.11 Makefile
--- Makefile	18 Feb 2003 15:53:18 -0000	1.11
+++ Makefile	19 Feb 2003 02:26:09 -0000
@@ -24,6 +24,7 @@
 USE_GMAKE=		Yes
 CONFIGURE_STYLE=	gnu
 CONFIGURE_ARGS=		--enable-cookies
+CONFIGURE_ARGS+=	--enable-ipv6
 CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \
 			LDFLAGS="-L${LOCALBASE}/lib"
 
Index: patches/patch-src_IO_http_c
===================================================================
RCS file: /cvs/ports/www/dillo/patches/patch-src_IO_http_c,v
retrieving revision 1.4
diff -u -r1.4 patch-src_IO_http_c
--- patches/patch-src_IO_http_c	18 Feb 2003 15:53:18 -0000	1.4
+++ patches/patch-src_IO_http_c	19 Feb 2003 02:26:09 -0000
@@ -1,6 +1,5 @@
-$OpenBSD: patch-src_IO_http_c,v 1.4 2003/02/18 15:53:18 couderc Exp $
---- src/IO/http.c.orig	Tue Feb 18 17:30:49 2003
-+++ src/IO/http.c	Tue Feb 18 17:31:23 2003
+--- src/IO/http.c.orig	Wed Feb 19 03:17:26 2003
++++ src/IO/http.c	Wed Feb 19 03:19:15 2003
 @@ -43,7 +43,6 @@
     (a_Web_valid(web) && (!(root) || (web)->flags & WEB_RootUrl)) ? \
     a_Interface_msg((web)->bw, fmt) : (root)
@@ -9,3 +8,20 @@
  #include "../debug.h"
  
  
+@@ -246,7 +245,7 @@
+ {
+    gint status;
+ #ifdef ENABLE_IPV6
+-   struct sockaddr_storage name;
++   struct sockaddr_in6 name;
+ #else
+    struct sockaddr_in name;
+ #endif
+@@ -286,6 +285,7 @@
+       char buf[128];
+       struct sockaddr_in6 *sin6 = (struct sockaddr_in6 *)&name;
+       sin6->sin6_family = dh->af;
++      sin6->sin6_len = sizeof(name);
+       sin6->sin6_port = S->port ? htons(S->port) : htons(DILLO_URL_HTTP_PORT);
+       memcpy(&sin6->sin6_addr, dh->data, dh->alen);
+       inet_ntop(dh->af, dh->data, buf, sizeof(buf));