EHOSTUNREACH returned for refused IPv6 connection

Bruce Cran bruce at cran.org.uk
Wed Dec 1 21:32:32 UTC 2010


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


More information about the freebsd-net mailing list