1 #ifndef __tcp_accounting_h__
2 #define __tcp_accounting_h__
4 * Return values from tcp_do_ack_accounting
5 * and indexs to the into the tcp_proc_time[]
11 #define ACK_CUMACK_SACK 3
14 /* Added values for tracking output too */
17 #define SND_OUT_DATA 8
19 #define SND_OUT_FAIL 10
20 /* We also count in the counts array two added (MSS sent and ACKS In) */
21 #define CNT_OF_MSS_OUT 11
22 #define CNT_OF_ACKS_IN 12
24 /* for the tcpcb we add two more cycle counters */
25 #define CYC_HANDLE_MAP 11
26 #define CYC_HANDLE_ACK 12
28 /* Should the tp->xxx array's be alloc'ed? */
29 /* #define TCP_NUM_PROC_COUNTERS 11 defined in tcp_var.h */
30 /* #define TCP_NUM_CNT_COUNTERS 13 defined in tcp_var.h */
34 extern counter_u64_t tcp_cnt_counters[TCP_NUM_CNT_COUNTERS];
35 extern counter_u64_t tcp_proc_time[TCP_NUM_PROC_COUNTERS];