1
2
3
4#ifndef _LINUX_TCP_METRICS_H
5#define _LINUX_TCP_METRICS_H
6
7#include <linux/types.h>
8
9
10
11#define TCP_METRICS_GENL_NAME "tcp_metrics"
12#define TCP_METRICS_GENL_VERSION 0x1
13
14enum tcp_metric_index {
15 TCP_METRIC_RTT,
16 TCP_METRIC_RTTVAR,
17 TCP_METRIC_SSTHRESH,
18 TCP_METRIC_CWND,
19 TCP_METRIC_REORDERING,
20
21 TCP_METRIC_RTT_US,
22 TCP_METRIC_RTTVAR_US,
23
24
25 __TCP_METRIC_MAX,
26};
27
28#define TCP_METRIC_MAX (__TCP_METRIC_MAX - 1)
29
30enum {
31 TCP_METRICS_ATTR_UNSPEC,
32 TCP_METRICS_ATTR_ADDR_IPV4,
33 TCP_METRICS_ATTR_ADDR_IPV6,
34 TCP_METRICS_ATTR_AGE,
35 TCP_METRICS_ATTR_TW_TSVAL,
36 TCP_METRICS_ATTR_TW_TS_STAMP,
37 TCP_METRICS_ATTR_VALS,
38 TCP_METRICS_ATTR_FOPEN_MSS,
39 TCP_METRICS_ATTR_FOPEN_SYN_DROPS,
40 TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS,
41 TCP_METRICS_ATTR_FOPEN_COOKIE,
42 TCP_METRICS_ATTR_SADDR_IPV4,
43 TCP_METRICS_ATTR_SADDR_IPV6,
44 TCP_METRICS_ATTR_PAD,
45
46 __TCP_METRICS_ATTR_MAX,
47};
48
49#define TCP_METRICS_ATTR_MAX (__TCP_METRICS_ATTR_MAX - 1)
50
51enum {
52 TCP_METRICS_CMD_UNSPEC,
53 TCP_METRICS_CMD_GET,
54 TCP_METRICS_CMD_DEL,
55
56 __TCP_METRICS_CMD_MAX,
57};
58
59#define TCP_METRICS_CMD_MAX (__TCP_METRICS_CMD_MAX - 1)
60
61#endif
62