From: Maria Matejka Date: Sun, 19 May 2024 10:19:49 +0000 (+0200) Subject: Missing definition of RTAX_FASTOPEN_NO_COOKIE shouldn't kill the whole build X-Git-Tag: v3.0.0~245 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0046594237c49fcb42bcb922ae680d0c5819845d;p=thirdparty%2Fbird.git Missing definition of RTAX_FASTOPEN_NO_COOKIE shouldn't kill the whole build --- diff --git a/sysdep/linux/netlink.c b/sysdep/linux/netlink.c index 6b5faeff2..81131351a 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] = {