Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Dec 2010 21:32:17 +0000
From:      Bruce Cran <bruce@cran.org.uk>
To:        freebsd-net@freebsd.org
Subject:   EHOSTUNREACH returned for refused IPv6 connection
Message-ID:  <20101201213217.19712470@core.draftnet>

next in thread | raw e-mail | index | archive | help
It appears that the network stack on -CURRENT is returning EHOSTUNREACH
instead of ECONNREFUSED when trying to connect to a closed port over
IPv6. e.g.:

> telnet www.kame.net 10000
Trying 203.178.141.194...
telnet: connect to address 203.178.141.194: Connection refused
Trying 2001:200:dff:fff1:216:3eff:feb1:44d7...
telnet: connect to address 2001:200:dff:fff1:216:3eff:feb1:44d7: No
route to host 
telnet: Unable to connect to remote host

Though it works locally:

> telnet localhost 10000
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying ::1...
telnet: connect to address ::1: Connection refused
telnet: Unable to connect to remote host

-- 
Bruce Cran



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