blob: b9eb1415b94f303ce7524f73460f2f8f6e01633d [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
2 ****************************************************************************
3 ***
4 *** This header was automatically generated from a Linux kernel header
5 *** of the same name, to make information necessary for userspace to
6 *** call into the kernel available to libc. It contains only constants,
7 *** structures, and macros generated from the original header, and thus,
8 *** contains no copyrightable information.
9 ***
10 *** To edit the content of this header, modify the corresponding
11 *** source file (e.g. under external/kernel-headers/original/) then
12 *** run bionic/libc/kernel/tools/update_all.py
13 ***
14 *** Any manual change here will be lost the next time this script will
15 *** be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _LINUX_TCP_METRICS_H
20#define _LINUX_TCP_METRICS_H
21#include <linux/types.h>
22#define TCP_METRICS_GENL_NAME "tcp_metrics"
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define TCP_METRICS_GENL_VERSION 0x1
24enum tcp_metric_index {
Tao Baod7db5942015-01-28 10:07:51 -080025 TCP_METRIC_RTT,
26 TCP_METRIC_RTTVAR,
Tao Baod7db5942015-01-28 10:07:51 -080027 TCP_METRIC_SSTHRESH,
28 TCP_METRIC_CWND,
29 TCP_METRIC_REORDERING,
30 TCP_METRIC_RTT_US,
Tao Baod7db5942015-01-28 10:07:51 -080031 TCP_METRIC_RTTVAR_US,
32 __TCP_METRIC_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070033};
34#define TCP_METRIC_MAX (__TCP_METRIC_MAX - 1)
35enum {
Tao Baod7db5942015-01-28 10:07:51 -080036 TCP_METRICS_ATTR_UNSPEC,
37 TCP_METRICS_ATTR_ADDR_IPV4,
38 TCP_METRICS_ATTR_ADDR_IPV6,
Tao Baod7db5942015-01-28 10:07:51 -080039 TCP_METRICS_ATTR_AGE,
40 TCP_METRICS_ATTR_TW_TSVAL,
41 TCP_METRICS_ATTR_TW_TS_STAMP,
42 TCP_METRICS_ATTR_VALS,
Tao Baod7db5942015-01-28 10:07:51 -080043 TCP_METRICS_ATTR_FOPEN_MSS,
44 TCP_METRICS_ATTR_FOPEN_SYN_DROPS,
45 TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS,
46 TCP_METRICS_ATTR_FOPEN_COOKIE,
Tao Baod7db5942015-01-28 10:07:51 -080047 TCP_METRICS_ATTR_SADDR_IPV4,
48 TCP_METRICS_ATTR_SADDR_IPV6,
Christopher Ferris106b3a82016-08-24 12:15:38 -070049 TCP_METRICS_ATTR_PAD,
Tao Baod7db5942015-01-28 10:07:51 -080050 __TCP_METRICS_ATTR_MAX,
Christopher Ferris106b3a82016-08-24 12:15:38 -070051};
Ben Cheng655a7c02013-10-16 16:09:24 -070052#define TCP_METRICS_ATTR_MAX (__TCP_METRICS_ATTR_MAX - 1)
53enum {
Tao Baod7db5942015-01-28 10:07:51 -080054 TCP_METRICS_CMD_UNSPEC,
Christopher Ferris106b3a82016-08-24 12:15:38 -070055 TCP_METRICS_CMD_GET,
Tao Baod7db5942015-01-28 10:07:51 -080056 TCP_METRICS_CMD_DEL,
57 __TCP_METRICS_CMD_MAX,
Ben Cheng655a7c02013-10-16 16:09:24 -070058};
Christopher Ferris106b3a82016-08-24 12:15:38 -070059#define TCP_METRICS_CMD_MAX (__TCP_METRICS_CMD_MAX - 1)
Ben Cheng655a7c02013-10-16 16:09:24 -070060#endif