1 // after a connection has been closed for this many seconds,
2 // remove it
3 #define CLOSED_PURGE 2
4 
5 // the display will be updated every DISPLAY_REFRESH nanoseconds.
6 //#define DISPLAY_REFRESH 10000
7 #define DISPLAY_REFRESH 1000000
8 
9 // the packet queues will be processed every PKTBUF_PROC nanoseconds.
10 #define PKTBUF_PROC 10000
11 
12 // this is the amount of time pcap_loop will wait for more packets before
13 // passing what it has to tcptrack. this is milliseconds.
14 // This is passed to the third argument (to_ms) to pcap_open_live
15 #define POL_TO_MS 10
16 
17 // the amount of time we will wait for a connection to finish opening after
18 // the initial syn has been sent before we dicard it
19 #define SYN_SYNACK_WAIT 30
20 
21 // connections in the CLOSING state are removed after this timeout
22 #define FIN_FINACK_WAIT 60
23 
24 // pcap snaplen. Should be as long as biggest link level header len +
25 // vlan header len + IP header len + tcp header len.
26 #define SNAPLEN 100
27 
28 // when fast mode is enabled, averages will be recalculated this freqently.
29 // if no fast mode, once per second.
30 //#define FASTMODE_INTERVAL 250000000 // one quarter of a second
31 #define FASTMODE_INTERVAL 100000000 // one tenth of a second
32