tcp: fix double increment for the established stats
authorAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 18 Aug 2010 16:36:14 +0000 (18:36 +0200)
committerAndrei Pelinescu-Onciul <andrei@iptel.org>
Wed, 18 Aug 2010 16:49:10 +0000 (18:49 +0200)
commit66cda7bc5f642ce892124cfb35f1e5effd78e9d6
tree0168500e070bbf4f20e242f8242c0faeb5eff225
parentbb5d5155daefe654f1998f61c3a92c07830d9204
tcp: fix double increment for the established stats

The counter/stats for established TCP connections were incremented
twice in the case of accept()-ed connections: once immediately
after the accept() and another time after the first packet
received or sent on the connection.
Now they are incremented only after the first successful send or
receive.
tcp_main.c