TCP conntrack oddness
Hi,
Last week I had a problem with the current ("old") TCP connection
tracking code. My problem was that while the TCP stack said a connection was in LAST_ACK state, the conntrack code said it was in TIME_WAIT. (This wouldn't cause problems by itself, however, our own code relied on this information. Apart from this the worst effect could be that instead of a 30 s timeout we have 2 minutes by default.) Having a look at the code, it turned out that in conntrack a connection _can't be_ in LAST_ACK state.
Although the TCP conntrack module's state machine has a LAST_ACK
state, that state is unreachable. In the transition graph the only edges going to the sLA state are _from_ the sLA node.
Of course I know the code is old, known to be oversimplified, and
Jozsef Kadlecsik's new code fixes the problem. However, I don't know when his code will be merged, and I think the fact that an unreachable state is present in the state machine code is definitely ugly (besides causing problems).
Signature · 2 lines
Regards, Krisztian KOVACS