login
Header Space

 
 

listening to IPv4 & 6 sockets

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
Date: Saturday, September 13, 2003 - 12:57 pm

Hello all,

I recently tried to compile my MUSH (pennmush-1.7.7p19) server so that 
it could accept IPv6 connections as well as IPv4, but unfortunately it 
was a no go.

Pennmush has, in its prebuild configure script a note that if it 
detects IPv6 capability but is being compiled on OpenBSD to force use 
of IPv4 only. This is because on OpenBSD you can't just bind to and 
listen on a IPv6 socket and get the IPv4 connections on that same 
socket like other OSes can do. I wrote a silly little program in C to 
test this, just something that wrote "Hi, how are you?" to any 
connector and when bound to an IPv6 address socket it didn't accept 
IPv4 connections opn that port. Compiling and running the exact same 
code on my ISP's shell machine (FreeBSD) accepted connections for both 
IPV4 & 6. (I used AF_UNSPEC in the hints arg for getaddrinfo(), just 
like the pennmush code does.)

The first thopught that blindly entered my head was that maybe this was 
a problem with the KAME code for IPv6, but since this forcing back to 
IPv4 only doesn't happen when building pennmush on FreeBSD or NetBSD, 
that really doesn't seem likely to me.

Is this behaviour by design on OpenBSD, or is it a fault in the 
implementation? And if it is by design, what was the reasoning behind 
it? Offhand, I can't think of a reason for this. Or if there is 
something special you have to do on OpenBSD  to open up a single socket 
that listens for both IPv4 & 6 sockets, I'd appreciate a few pointers 
on how to do this.

Thanks in advance.
--
Cory C. Albrecht
The trouble with doing something right the first time is that nobody 
appreciates how difficult it was.
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
best source code for IPv6, Knoke, Jim, (Mon Jul 26, 3:07 pm)
QoS with IPv6, Mischa Diehm, (Mon Aug 9, 3:13 pm)
Ipv6 web server, Romain, (Sat Sep 18, 10:39 am)
Strange IPSEC behavior for a basic setup, Christian, (Sat Nov 13, 10:40 pm)
Autoconfigure vs. Static Addressing, eric, (Thu Mar 17, 7:09 pm)
Default route and laptop suspend, Christian Weisgerber, (Tue May 17, 10:40 am)
top 20 gift shops, Jackie, (Wed Nov 30, 4:16 pm)
HP 3550n Colour LaserJet Printer S A L E, Kevin James, (Wed Feb 8, 1:55 pm)
IPv6 Mobility, Loren M. Lang, (Fri Aug 4, 1:39 am)
Porting ipsec code, wend ralph, (Thu Feb 8, 3:30 am)
Newbie to IPv6 ... Help me out .... in deploying ipv6 on lin..., Fazlur Rahaman Naik, (Wed May 16, 2:54 am)
Einladung in mein XING-Netzwerk, Stefan Ramahi, (Wed Jun 11, 10:28 pm)
error with ndp command for ND proxy, mailing BSD, (Fri Apr 4, 8:48 am)
Message important, Banque HSBC, (Thu Jan 24, 8:03 am)
strange installation issue, Flavio Curti, (Thu Aug 29, 12:09 pm)
pf problem, florkle, (Sun Sep 15, 5:00 pm)
Bind4/IPv6/DNSSEC support, Virginie, (Sun Dec 8, 2:01 pm)
blitz.thessalie.net, TrafficMagnet Reseller, (Thu Mar 13, 5:21 pm)
Returned mail: User unknown, Mail Delivery Subsystem, (Tue Jun 24, 1:31 pm)
listening to IPv4 & 6 sockets, Cory C. Albrecht, (Sat Sep 13, 12:57 pm)
GENDIA Newsletter, GENDIA, (Sun Oct 19, 12:41 pm)
Is that any NATPT package for OpenBSD?, Wang Hui, (Wed Nov 26, 11:36 pm)
Laptop to OpenBSD firewall VPN, Bernard Golden, (Fri Jan 2, 6:06 pm)
IPv6 raw socket (ICMPv6), Thomas Delaet, (Tue Mar 16, 6:13 pm)
Din e-mail til Ex-i-data ikke leveret, , (Fri Apr 16, 12:43 am)
EUI 64 autoconfiguration and static assignment, Joseph Birthisel, (Tue May 11, 3:00 pm)
apache 2.x for ipv6, Cory C. Albrecht, (Mon Jun 21, 11:29 pm)
Re: error with ndp command for ND proxy, mailing BSD, (Mon Apr 14, 1:03 pm)
Re: Newbie to IPv6 ... Help me out .... in deploying ipv6 on..., Prabhu Gurumurthy, (Wed May 16, 1:59 pm)
Re: IPv6 Mobility, Dikshie, (Fri Aug 4, 10:15 am)
Re: Default route and laptop suspend, Todd T. Fries, (Tue May 17, 12:11 pm)
Re: Default route and laptop suspend, Paul de Weerd, (Tue May 17, 11:27 am)
Re: Autoconfigure vs. Static Addressing, Alexandre Anriot, (Fri Mar 18, 12:34 am)
Re: Autoconfigure vs. Static Addressing, eric, (Fri Mar 18, 12:58 am)
Re: Autoconfigure vs. Static Addressing, eric, (Fri Mar 18, 1:57 am)
Re: Strange IPSEC behavior for a basic setup, Diego Righi, (Sun Nov 14, 7:10 am)
Re: Ipv6 web server, Waldemar Brodkorb, (Sat Sep 18, 11:28 am)
Re: Ipv6 web server, Thorsten Glaser, (Sat Sep 18, 12:09 pm)
Re: QoS with IPv6, Mischa Diehm, (Fri Aug 13, 6:23 am)
Re: QoS with IPv6, Todd T. Fries, (Fri Aug 13, 10:45 am)
Re: best source code for IPv6, Thorsten Glaser, (Mon Jul 26, 3:30 pm)
Re: best source code for IPv6, Todd T. Fries, (Wed Jul 28, 10:12 am)
Re: best source code for IPv6, Mischa Diehm, (Tue Jul 27, 3:42 am)
Re: best source code for IPv6, M. Warner Losh, (Tue Jul 27, 4:39 am)
Re: apache 2.x for ipv6, Peter Hessler, (Tue Jun 22, 11:43 am)
Re: apache 2.x for ipv6, Henning Brauer, (Tue Jun 22, 5:01 pm)
Re: apache 2.x for ipv6, Henning Brauer, (Tue Jun 22, 4:34 am)
Re: apache 2.x for ipv6, Cory C. Albrecht, (Tue Jun 22, 5:00 am)
Re: apache 2.x for ipv6, Thorsten Glaser, (Tue Jun 22, 1:30 pm)
Re: EUI 64 autoconfiguration and static assignment, Todd T. Fries, (Tue May 11, 3:41 pm)
Re: IPv6 raw socket (ICMPv6), Thomas Delaet, (Tue Mar 16, 6:57 pm)
Re: Laptop to OpenBSD firewall VPN, Robert Mooney, (Mon Jan 5, 11:14 pm)
Re: Laptop to OpenBSD firewall VPN, Tobias Crefeld, (Tue Jan 6, 9:29 pm)
Re: Laptop to OpenBSD firewall VPN, Dan Brosemer, (Wed Jan 7, 2:10 am)
Re: Laptop to OpenBSD firewall VPN, Todd T. Fries, (Mon Jan 5, 1:47 pm)
Re: Is that any NATPT package for OpenBSD?, Todd T. Fries, (Sun Nov 30, 9:34 am)
Re: listening to IPv4 & 6 sockets, Thorsten Glaser, (Sat Sep 13, 1:43 pm)
Re: listening to IPv4 & 6 sockets, Cory C. Albrecht, (Sat Sep 13, 5:14 pm)
Re: listening to IPv4 & 6 sockets, Theo de Raadt, (Thu Sep 18, 2:28 pm)
Re: listening to IPv4 & 6 sockets, Cory C. Albrecht, (Fri Sep 19, 12:37 pm)
Re: Bind4/IPv6/DNSSEC support, David Terrell, (Mon Dec 9, 1:48 pm)
Re: Bind4/IPv6/DNSSEC support, Virginie, (Tue Jan 21, 4:39 pm)
speck-geostationary