NetBSD Problem Report #10092
Received: (qmail 7317 invoked from network); 10 May 2000 18:20:06 -0000
Message-Id: <200005101820.e4AIK5517694@capsicum.wsrcc.com>
Date: Wed, 10 May 2000 11:20:05 -0700 (PDT)
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
Reply-To: wolfgang@wsrcc.com
To: gnats-bugs@gnats.netbsd.org
Subject: thttpd confused by ipv6
X-Send-Pr-Version: 3.95
>Number: 10092
>Category: pkg
>Synopsis: thttpd gets confused when run on an ipv6 kernel
>Confidential: no
>Severity: serious
>Priority: low
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 10 18:21:00 +0000 2000
>Closed-Date: Thu Jul 27 13:12:27 +0000 2000
>Last-Modified: Thu Jul 27 16:39:01 +0000 2000
>Originator: Wolfgang Rupprecht
>Release: netbsd-current May 9, 2000
>Organization:
W S Rupprecht Computer Consulting, Fremont CA
>Environment:
System: NetBSD capsicum.wsrcc.com 1.4X NetBSD 1.4X (WSRCC) #0: Mon Apr 24 09:39:55 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386
>Description:
A stock thttpd daemon compiled from pkgsrc fails to work under ipv4
if one tries to run it on an ipv6-capable kernel.
>How-To-Repeat:
cd /usr/pkgsrc/www/thttpd
make
make install
thttpd
telnet localhost 80
<connection refused>
lsof -c thttpd
<notice that the thttpd daemon is only listening on the
ipv6 port. *Nothing* is listening on 80/tcp/ipv4
>Fix:
1) teach thttpd to either open both ipv4 and ipv6 connections
(or)
2) fix the kernel/libraries to prefer ipv4 over ipv6 if the
program ask for "ANY".
(I know, this is probably distastful.)
3) fix thttpd to explicitly request ipv4 connections unless
instructed to use ipv6.
>Release-Note:
>Audit-Trail:
From: <abs@mono.org>
To: Wolfgang Rupprecht <wolfgang@wsrcc.com>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd confused by ipv6
Date: Wed, 10 May 2000 22:22:12 +0100 (BST)
I reported this issue back to the author and the prerelease
next version appears to fix it. He's looking at pulling in
some of the patches from pkgsrc (this was as of yesterday :)
David/absolute
-- www.netbsd.org: No hype required --
On Wed, 10 May 2000, Wolfgang Rupprecht wrote:
>
> >Number: 10092
> >Category: pkg
> >Synopsis: thttpd gets confused when run on an ipv6 kernel
> >Confidential: no
> >Severity: serious
> >Priority: low
> >Responsible: pkg-manager
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Wed May 10 11:21:00 PDT 2000
> >Closed-Date:
> >Last-Modified:
> >Originator: Wolfgang Rupprecht
> >Release: netbsd-current May 9, 2000
> >Organization:
> W S Rupprecht Computer Consulting, Fremont CA
> >Environment:
> System: NetBSD capsicum.wsrcc.com 1.4X NetBSD 1.4X (WSRCC) #0: Mon Apr 24 09:39:55 PDT 2000 wolfgang@capsicum.wsrcc.com:/v/src/netbsd/NetBSD-current/usr/src/sys/arch/i386/compile/WSRCC i386
>
>
> >Description:
> A stock thttpd daemon compiled from pkgsrc fails to work under ipv4
> if one tries to run it on an ipv6-capable kernel.
>
> >How-To-Repeat:
> cd /usr/pkgsrc/www/thttpd
> make
> make install
> thttpd
> telnet localhost 80
> <connection refused>
>
> lsof -c thttpd
>
> <notice that the thttpd daemon is only listening on the
> ipv6 port. *Nothing* is listening on 80/tcp/ipv4
>
> >Fix:
> 1) teach thttpd to either open both ipv4 and ipv6 connections
> (or)
> 2) fix the kernel/libraries to prefer ipv4 over ipv6 if the
> program ask for "ANY".
> (I know, this is probably distastful.)
> 3) fix thttpd to explicitly request ipv4 connections unless
> instructed to use ipv6.
> >Release-Note:
> >Audit-Trail:
> >Unformatted:
>
>
From: itojun@iijlab.net
To: wolfgang@wsrcc.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd confused by ipv6
Date: Thu, 11 May 2000 09:35:34 +0900
>>Fix:
> 1) teach thttpd to either open both ipv4 and ipv6 connections
> (or)
> 2) fix the kernel/libraries to prefer ipv4 over ipv6 if the
> program ask for "ANY".
> (I know, this is probably distastful.)
> 3) fix thttpd to explicitly request ipv4 connections unless
> instructed to use ipv6.
4) add an option to specify address family it should run on
("thttpd -4"). make -4 default. if you need both AFs, run two
of them (-6 and -4).
5) add setsockopt(IPV6_BINDV6ONLY, 0) after socket(). I'm not in
favor of this.
itojun
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
To: wolfgang@wsrcc.com
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd confused by ipv6
Date: Mon, 22 May 2000 23:40:47 +0200
At 20:20 Uhr +0200 10.5.2000, Wolfgang Rupprecht wrote:
>>Number: 10092
>>Category: pkg
>>Synopsis: thttpd gets confused when run on an ipv6 kernel
[...]
>>Description:
> A stock thttpd daemon compiled from pkgsrc fails to work under ipv4
> if one tries to run it on an ipv6-capable kernel.
The thttpd homepage lists an update that claims to have fixed the ipv4 vs.
ipv6 confusion.
hauke
--
"It's never straight up and down" (DEVO)
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd confused by ipv6
Date: Mon, 22 May 2000 14:43:22 -0700 (PDT)
Hauke Fath writes:
> The thttpd homepage lists an update that claims to have fixed the ipv4 vs.
> ipv6 confusion.
The beta rev, thttpd-2.17 does indeed fix the problem for me.
-wolfgang
--
Wolfgang Rupprecht <wolfgang@wsrcc.com> http://www.wsrcc.com/wolfgang/
DGPS signals via the Internet http://www.wsrcc.com/wolfgang/gps/dgps-ip.html
State-Changed-From-To: open->closed
State-Changed-By: itojun
State-Changed-When: Thu Jul 27 06:11:50 PDT 2000
State-Changed-Why:
pkgsrc/www/thttpd uses 2.19, which supposedly fix the problem
From: "Johnny C. Lam" <lamj@stat.cmu.edu>
To: wolfgang@wsrcc.com
Cc: lamj@stat.cmu.edu, gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd gets confused when run on an ipv6 kernel
Date: Thu, 27 Jul 2000 09:42:19 -0400
Hi,
I recently updated the thttpd package to verion 2.19. I've
tested on my own ipv6-enabled kernel and it worked just fine. Could
you please verify that it also works for you?
Thanks,
-- Johnny C. Lam <lamj@stat.cmu.edu>
Department of Statistics, Carnegie Mellon University
http://www.stat.cmu.edu/~lamj/
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
To: "Johnny C. Lam" <lamj@stat.cmu.edu>
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: pkg/10092: thttpd gets confused when run on an ipv6 kernel
Date: Thu, 27 Jul 2000 09:38:29 -0700 (PDT)
Johnny C. Lam writes:
> I recently updated the thttpd package to verion 2.19. I've
> tested on my own ipv6-enabled kernel and it worked just fine. Could
> you please verify that it also works for you?
Yes, this problem was fixed back in version 2.16 . I had meant to
send a note in to that effect. I guess I forgot.
-wolfgang
--
Wolfgang Rupprecht <wolfgang@wsrcc.com> http://www.wsrcc.com/wolfgang/
DGPS signals via the Internet http://www.wsrcc.com/wolfgang/gps/dgps-ip.html
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.