summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/krt.Y
diff options
context:
space:
mode:
Diffstat (limited to 'sysdep/unix/krt.Y')
-rw-r--r--sysdep/unix/krt.Y8
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y
index 083df7d..de25cad 100644
--- a/sysdep/unix/krt.Y
+++ b/sysdep/unix/krt.Y
@@ -45,7 +45,13 @@ kern_item:
/* Scan time of 0 means scan on startup only */
THIS_KRT->scan_time = $3;
}
- | LEARN bool { THIS_KRT->learn = $2; }
+ | LEARN bool {
+ THIS_KRT->learn = $2;
+#ifndef KRT_ALLOW_LEARN
+ if ($2)
+ cf_error("Learning of kernel routes not supported in this configuration");
+#endif
+ }
;
/* Kernel interface protocol */