Conntrack TCP query
Hi,
In the TCP conntrack code ip_conntrack_proto_tcp.c,
I find that state of the conntrack is updated based on a table of direction vs cur state vs packet type. This is ostensibly before verifying the TCP checksum and other checks. It is then possible that such a packet is actually dropped. But the conntrack has already updated the state based on this packet.
Where am I going wrong?
=====
Regards,
Kiran Kumar Immidi
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com
Quoted 7 lines · Kiran Kumar
In the TCP conntrack code
ip_conntrack_proto_tcp.c,
I find that state of the conntrack is updated based on a table of direction vs cur state vs packet type. This is ostensibly before verifying the TCP checksum and other checks. It is then possible that such a packet is actually dropped. But the conntrack has already updated the state based on this packet.
Yes. Check out the tcp-window-tracking patch in patch-o-matic which implements more correct TCP connection tracking.
Best regards,
Jozsef
-
E-mail : [email protected], [email protected] PGP key : http://www.kfki.hu/~kadlec/pgp_public_key.txt
Address : KFKI Research Institute for Particle and Nuclear Physics
H-1525 Budapest 114, POB. 49, Hungary