[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ecn and 3.2, no ECONNRESET?



hello,

strange thing about ECN: SOCK_STREAM socket does not fail with
ECONNRESET when net.inet.tcp.ecn is enabled. is it the way it should be?
example:

cyxob_(_at_)_comrade:/home/cyxob [3] $ sysctl net.inet.tcp.ecn
net.inet.tcp.ecn = 0
cyxob_(_at_)_comrade:/home/cyxob [4] $ telnet 127.0.0.1 12345
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
cyxob_(_at_)_comrade:/home/cyxob [5] $ 

that is good, then:

cyxob_(_at_)_comrade:/home/cyxob [5] $ sudo sysctl -w net.inet.tcp.ecn=1
net.inet.tcp.ecn: 0 -> 1
cyxob_(_at_)_comrade:/home/cyxob [6] $ telnet 127.0.0.1 12345
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection timed out
cyxob_(_at_)_comrade:/home/cyxob [7] $

and tcpdump shows that there are SWE (ecn powered SYNs) going to the
localhost and RSTs coming back.

is this the way it should be?

the system is 3.2 release and the kernel is the GENERIC.

thanks in advance...

-- 
Denis A. Doroshenko, GPRS engineer, d_(_dot_)_doroshenko_(_at_)_omnitel_(_dot_)_net, +37069863486
Omnitel Ltd., Muitines Str. 35, LT-2600 Vilnius, Lithuania; www.omnitel.lt