From c8fad656c218fec95d89b979a62ea0f461000cd4 Mon Sep 17 00:00:00 2001 From: Maria Matejka Date: Sun, 19 May 2024 12:19:49 +0200 Subject: [PATCH] Missing definition of RTAX_FASTOPEN_NO_COOKIE shouldn't kill the whole build --- sysdep/linux/netlink.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 6b5faeff..81131351 100644 --- a/sysdep/linux/netlink.c +++ b/sysdep/linux/netlink.c @@ -95,14 +95,21 @@ static struct ea_class ea_krt_metrics[] = { KRT_METRIC_INT(RTAX_RTO_MIN, "krt_rto_min"), KRT_METRIC_INT(RTAX_INITRWND, "krt_initrwnd"), KRT_METRIC_INT(RTAX_QUICKACK, "krt_quickack"), +#ifdef RTAX_FASTOPEN_NO_COOKIE KRT_METRIC_INT(RTAX_FASTOPEN_NO_COOKIE, "krt_fastopen_no_cookie"), +#else +#warning "Definition of RTAX_FASTOPEN_NO_COOKIE not found" +#endif #undef KRT_METRIC_INT }; static const char *krt_metrics_names[KRT_METRICS_MAX] = { NULL, "lock", "mtu", "window", "rtt", "rttvar", "ssthresh", "cwnd", "advmss", "reordering", "hoplimit", "initcwnd", "features", "rto_min", "initrwnd", "quickack", - "congctl", "fastopen_no_cookie" + "congctl", +#ifdef RTAX_FASTOPEN_NO_COOKIE + "fastopen_no_cookie", +#endif }; static const char *krt_features_names[KRT_FEATURES_MAX] = {