~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/tcp_metrics.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/uapi/linux/tcp_metrics.h (Version linux-6.12-rc7) and /include/uapi/linux/tcp_metrics.h (Version linux-4.4.302)


  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux << 
  2 /* tcp_metrics.h - TCP Metrics Interface */         1 /* tcp_metrics.h - TCP Metrics Interface */
  3                                                     2 
  4 #ifndef _UAPI_LINUX_TCP_METRICS_H              !!   3 #ifndef _LINUX_TCP_METRICS_H
  5 #define _UAPI_LINUX_TCP_METRICS_H              !!   4 #define _LINUX_TCP_METRICS_H
  6                                                     5 
  7 #include <linux/types.h>                            6 #include <linux/types.h>
  8                                                     7 
  9 /* NETLINK_GENERIC related info                     8 /* NETLINK_GENERIC related info
 10  */                                                 9  */
 11 #define TCP_METRICS_GENL_NAME           "tcp_m     10 #define TCP_METRICS_GENL_NAME           "tcp_metrics"
 12 #define TCP_METRICS_GENL_VERSION        0x1        11 #define TCP_METRICS_GENL_VERSION        0x1
 13                                                    12 
 14 enum tcp_metric_index {                            13 enum tcp_metric_index {
 15         TCP_METRIC_RTT,         /* in ms units     14         TCP_METRIC_RTT,         /* in ms units */
 16         TCP_METRIC_RTTVAR,      /* in ms units     15         TCP_METRIC_RTTVAR,      /* in ms units */
 17         TCP_METRIC_SSTHRESH,                       16         TCP_METRIC_SSTHRESH,
 18         TCP_METRIC_CWND,                           17         TCP_METRIC_CWND,
 19         TCP_METRIC_REORDERING,                     18         TCP_METRIC_REORDERING,
 20                                                    19 
 21         TCP_METRIC_RTT_US,      /* in usec uni     20         TCP_METRIC_RTT_US,      /* in usec units */
 22         TCP_METRIC_RTTVAR_US,   /* in usec uni     21         TCP_METRIC_RTTVAR_US,   /* in usec units */
 23                                                    22 
 24         /* Always last.  */                        23         /* Always last.  */
 25         __TCP_METRIC_MAX,                          24         __TCP_METRIC_MAX,
 26 };                                                 25 };
 27                                                    26 
 28 #define TCP_METRIC_MAX  (__TCP_METRIC_MAX - 1)     27 #define TCP_METRIC_MAX  (__TCP_METRIC_MAX - 1)
 29                                                    28 
 30 /* Re-define enum tcp_metric_index, again, usi << 
 31  * as netlink attribute types.                 << 
 32  */                                            << 
 33 enum {                                         << 
 34         TCP_METRICS_A_METRICS_RTT = 1,         << 
 35         TCP_METRICS_A_METRICS_RTTVAR,          << 
 36         TCP_METRICS_A_METRICS_SSTHRESH,        << 
 37         TCP_METRICS_A_METRICS_CWND,            << 
 38         TCP_METRICS_A_METRICS_REODERING,       << 
 39         TCP_METRICS_A_METRICS_RTT_US,          << 
 40         TCP_METRICS_A_METRICS_RTTVAR_US,       << 
 41                                                << 
 42         __TCP_METRICS_A_METRICS_MAX            << 
 43 };                                             << 
 44 #define TCP_METRICS_A_METRICS_MAX (__TCP_METRI << 
 45                                                << 
 46 enum {                                             29 enum {
 47         TCP_METRICS_ATTR_UNSPEC,                   30         TCP_METRICS_ATTR_UNSPEC,
 48         TCP_METRICS_ATTR_ADDR_IPV4,                31         TCP_METRICS_ATTR_ADDR_IPV4,             /* u32 */
 49         TCP_METRICS_ATTR_ADDR_IPV6,                32         TCP_METRICS_ATTR_ADDR_IPV6,             /* binary */
 50         TCP_METRICS_ATTR_AGE,                      33         TCP_METRICS_ATTR_AGE,                   /* msecs */
 51         TCP_METRICS_ATTR_TW_TSVAL,                 34         TCP_METRICS_ATTR_TW_TSVAL,              /* u32, raw, rcv tsval */
 52         TCP_METRICS_ATTR_TW_TS_STAMP,              35         TCP_METRICS_ATTR_TW_TS_STAMP,           /* s32, sec age */
 53         TCP_METRICS_ATTR_VALS,                     36         TCP_METRICS_ATTR_VALS,                  /* nested +1, u32 */
 54         TCP_METRICS_ATTR_FOPEN_MSS,                37         TCP_METRICS_ATTR_FOPEN_MSS,             /* u16 */
 55         TCP_METRICS_ATTR_FOPEN_SYN_DROPS,          38         TCP_METRICS_ATTR_FOPEN_SYN_DROPS,       /* u16, count of drops */
 56         TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS,        39         TCP_METRICS_ATTR_FOPEN_SYN_DROP_TS,     /* msecs age */
 57         TCP_METRICS_ATTR_FOPEN_COOKIE,             40         TCP_METRICS_ATTR_FOPEN_COOKIE,          /* binary */
 58         TCP_METRICS_ATTR_SADDR_IPV4,               41         TCP_METRICS_ATTR_SADDR_IPV4,            /* u32 */
 59         TCP_METRICS_ATTR_SADDR_IPV6,               42         TCP_METRICS_ATTR_SADDR_IPV6,            /* binary */
 60         TCP_METRICS_ATTR_PAD,                  << 
 61                                                    43 
 62         __TCP_METRICS_ATTR_MAX,                    44         __TCP_METRICS_ATTR_MAX,
 63 };                                                 45 };
 64                                                    46 
 65 #define TCP_METRICS_ATTR_MAX    (__TCP_METRICS     47 #define TCP_METRICS_ATTR_MAX    (__TCP_METRICS_ATTR_MAX - 1)
 66                                                    48 
 67 enum {                                             49 enum {
 68         TCP_METRICS_CMD_UNSPEC,                    50         TCP_METRICS_CMD_UNSPEC,
 69         TCP_METRICS_CMD_GET,                       51         TCP_METRICS_CMD_GET,
 70         TCP_METRICS_CMD_DEL,                       52         TCP_METRICS_CMD_DEL,
 71                                                    53 
 72         __TCP_METRICS_CMD_MAX,                     54         __TCP_METRICS_CMD_MAX,
 73 };                                                 55 };
 74                                                    56 
 75 #define TCP_METRICS_CMD_MAX     (__TCP_METRICS     57 #define TCP_METRICS_CMD_MAX     (__TCP_METRICS_CMD_MAX - 1)
 76                                                    58 
 77 #endif /* _UAPI_LINUX_TCP_METRICS_H */         !!  59 #endif /* _LINUX_TCP_METRICS_H */
 78                                                    60 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php