blob: 80ad90d0cfc23b0a67b4c6639eaf6df1d2abca25 [file] [log] [blame]
Julian Anastasovd23ff702012-09-04 11:03:15 +00001/* tcp_metrics.h - TCP Metrics Interface */
2
3#ifndef _LINUX_TCP_METRICS_H
4#define _LINUX_TCP_METRICS_H
5
6#include <linux/types.h>
7
8/* NETLINK_GENERIC related info
9 */
10#define TCP_METRICS_GENL_NAME "tcp_metrics"
11#define TCP_METRICS_GENL_VERSION 0x1
12
13enum tcp_metric_index {
Eric Dumazet740b0f12014-02-26 14:02:48 -080014 TCP_METRIC_RTT, /* in ms units */
15 TCP_METRIC_RTTVAR, /* in ms units */
Julian Anastasovd23ff702012-09-04 11:03:15 +000016 TCP_METRIC_SSTHRESH,
17 TCP_METRIC_CWND,
18 TCP_METRIC_REORDERING,
19
Eric Dumazet740b0f12014-02-26 14:02:48 -080020 TCP_METRIC_RTT_US, /* in usec units */
21 TCP_METRIC_RTTVAR_US, /* in usec units */
22
Julian Anastasovd23ff702012-09-04 11:03:15 +000023 /* Always last. */
24 __TCP_METRIC_MAX,
25};
26
27#define TCP_METRIC_MAX (__TCP_METRIC_MAX - 1)
28
29enum {
30 TCP_METRICS_ATTR_UNSPEC,
31 TCP_METRICS_ATTR_ADDR_IPV4, /* u32 */
32 TCP_METRICS_ATTR_ADDR_IPV6, /* binary */
33 TCP_METRICS_ATTR_AGE, /* msecs */
34 TCP_METRICS_ATTR_TW_TSVAL, /* u32, raw, rcv tsval */
35 TCP_METRICS_ATTR_TW_TS_STAMP, /* s32, sec age */
36 TCP_METRICS_ATTR_VALS, /* nested +1, u32 */
37 TCP_METRICS_ATTR_FOPEN_MSS, /* u16 */
38 TCP_METRICS_ATTR_FOPEN_SYN_DROPS, /* u16, count of drops */
39 TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS, /* msecs age */
40 TCP_METRICS_ATTR_FOPEN_COOKIE, /* binary */
Christoph Paasch8a593592014-01-08 16:05:57 +010041 TCP_METRICS_ATTR_SADDR_IPV4, /* u32 */
42 TCP_METRICS_ATTR_SADDR_IPV6, /* binary */
Nicolas Dichtel2175d872016-04-22 17:31:21 +020043 TCP_METRICS_ATTR_PAD,
Julian Anastasovd23ff702012-09-04 11:03:15 +000044
45 __TCP_METRICS_ATTR_MAX,
46};
47
48#define TCP_METRICS_ATTR_MAX (__TCP_METRICS_ATTR_MAX - 1)
49
50enum {
51 TCP_METRICS_CMD_UNSPEC,
52 TCP_METRICS_CMD_GET,
53 TCP_METRICS_CMD_DEL,
54
55 __TCP_METRICS_CMD_MAX,
56};
57
58#define TCP_METRICS_CMD_MAX (__TCP_METRICS_CMD_MAX - 1)
59
60#endif /* _LINUX_TCP_METRICS_H */