Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Nov 2006 20:55:40 GMT
From:      Sten Spans<sten@blinkenlights.nl>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/105490: [patch] ports/dns/powerdns fix ipv6 support
Message-ID:  <200611132055.kADKteMu037343@www.freebsd.org>
Resent-Message-ID: <200611132100.kADL06rZ050417@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         105490
>Category:       ports
>Synopsis:       [patch] ports/dns/powerdns fix ipv6 support
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 13 21:00:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sten Spans
>Release:        6.1-RELEASE-p7
>Organization:
>Environment:
FreeBSD earth.blinkenlights.nl 6.1-RELEASE-p7 FreeBSD 6.1-RELEASE-p7 #0: Sun Sep 24 14:42:21 CEST 2006     root@earth.blinkenlights.nl:/usr/obj/usr/src/sys/1650  i386

>Description:
IPv6 support in powerdns 2.9.20 doesn't work on FreeBSD, the author
has written a bugfix which will be included in the next release.

It would be nice to include the patch in the port until
the next release is out.
>How-To-Repeat:

>Fix:
Add the attached patch to the port.

Patch attached with submission follows:

--- pdns/nameserver.cc (revision 763)
+++ pdns/nameserver.cc (revision 885)
@@ -146,7 +146,7 @@
 
     sockaddr_in6 locala;
-    locala.sin6_port=ntohs(arg().asNum("local-port"));
+    memset(&locala, 0, sizeof(locala));
+    locala.sin6_port=htons(arg().asNum("local-port"));
     locala.sin6_family=AF_INET6;
-    locala.sin6_flowinfo=0;
 
     if(!inet_pton(AF_INET6, localname.c_str(), (void *)&locala.sin6_addr)) {
--- pdns/tcpreceiver.cc (revision 874)
+++ pdns/tcpreceiver.cc (revision 886)
@@ -490,8 +490,7 @@
 
     sockaddr_in6 locala;
-    locala.sin6_port=ntohs(arg().asNum("local-port"));
+    memset(&locala, 0, sizeof(locala));
+    locala.sin6_port=htons(arg().asNum("local-port"));
     locala.sin6_family=AF_INET6;
-    locala.sin6_flowinfo=0;
-
 
     if(!inet_pton(AF_INET6, laddr->c_str(), (void *)&locala.sin6_addr)) {

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611132055.kADKteMu037343>