summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2024-06-27 23:35:51 +0200
committerDavid S. Miller <davem@davemloft.net>2024-07-01 10:44:27 +0200
commit85674625e0bc25be4dbaa165a556ef6037328379 (patch)
tree1543cb769e391bb52fd912ea17407576bd7f1318 /net
parenttcp_metrics: add UAPI to the header guard (diff)
downloadlinux-85674625e0bc25be4dbaa165a556ef6037328379.tar.xz
linux-85674625e0bc25be4dbaa165a556ef6037328379.zip
tcp_metrics: add netlink protocol spec in YAML
Add a protocol spec for tcp_metrics, so that it's accessible via YNL. Useful at the very least for testing fixes. In this episode of "10,000 ways to complicate netlink" the metric nest has defines which are off by 1. iproute2 does: struct rtattr *m[TCP_METRIC_MAX + 1 + 1]; parse_rtattr_nested(m, TCP_METRIC_MAX + 1, a); for (i = 0; i < TCP_METRIC_MAX + 1; i++) { // ... attr = m[i + 1]; This is too weird to support in YNL, add a new set of defines with _correct_ values to the official kernel header. Signed-off-by: Jakub Kicinski <kuba@kernel.org> Reviewed-by: Donald Hunter <donald.hunter@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions