]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Missing definition of RTAX_FASTOPEN_NO_COOKIE shouldn't kill the whole build
authorMaria Matejka <mq@ucw.cz>
Sun, 19 May 2024 10:19:49 +0000 (12:19 +0200)
committerMaria Matejka <mq@ucw.cz>
Sun, 19 May 2024 10:47:38 +0000 (12:47 +0200)
sysdep/linux/netlink.c

index 6b5faeff2457959091fb54c988a9b7f06aa45a76..81131351ac2308f6675c2e0686a8a5eb335cbc4c 100644 (file)
@@ -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] = {