ipmon(): simplify timeouted TCP entries handling
commit683c2b21c75cd0765e62ca91bb08b00199a0aa4a
authorVitezslav Samel <vitezslav@samel.cz>
Mon, 9 Jun 2014 13:05:51 +0000 (9 15:05 +0200)
committerNikola Pajkovsky <n.pajkovsky@gmail.com>
Mon, 9 Jun 2014 14:36:37 +0000 (10 02:36 +1200)
treef1c25f5cf50c3589948e803bccfbfa51bebaf548
parentd54d28d7ad0717327ae195bb0630ea0ccc554a9f
ipmon(): simplify timeouted TCP entries handling

Instead of checking for timeouted TCP entries in qt_partition(),
in_table() and flushclosedentries(), just scan the entire list for
timedout entries every second, mark them and list them in the closed
entries list. Their deletion/reuse is the same as for closed entries
(done in flushclosedentries()/addentry()). Also show the timeouted
entries as "TMOU" on the screen.

Signed-off-by: Vitezslav Samel <vitezslav@samel.cz>
Signed-off-by: Nikola Pajkovsky <n.pajkovsky@gmail.com>
src/itrafmon.c
src/othptab.c
src/tcptable.c
src/tcptable.h