diff options
author | Martin Mares <mj@ucw.cz> | 1999-04-03 13:05:18 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-04-03 13:05:18 +0000 |
commit | c10421d3d4b5f23dc953c887332bdb6e80ae0540 (patch) | |
tree | 17ea979a4796bfccbf9e58bb50fc6f501e0390be /sysdep/unix/krt.Y | |
parent | 69ec9087ad3fb631f46275220909a876deadb6b5 (diff) |
More changes to the kernel syncer.
o Now compatible with filtering.
o Learning of kernel routes supported only on CONFIG_SELF_CONSCIOUS
systems (on the others it's impossible to get it semantically correct).
o Learning now stores all of its routes in a separate fib and selects
the ones the kernel really uses for forwarding packets.
o Better treatment of CONFIG_AUTO_ROUTES ports.
o Lots of internal changes.
Diffstat (limited to 'sysdep/unix/krt.Y')
-rw-r--r-- | sysdep/unix/krt.Y | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdep/unix/krt.Y b/sysdep/unix/krt.Y index 083df7d6..de25cadb 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 */ |