1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Taught Netlink how to behave in IPv6 world.

This commit is contained in:
Martin Mares
1999-08-03 19:37:37 +00:00
parent 4f22c98185
commit 4532a89e31
4 changed files with 53 additions and 13 deletions

View File

@@ -19,7 +19,7 @@ CF_ADDTO(kern_proto, kern_proto nl_item ';')
nl_item:
ASYNC bool { THIS_KRT->scan.async = $2; }
| KERNEL TABLE expr {
if ($3 <= 0 || $3 >= 255)
if ($3 <= 0 || $3 >= NL_NUM_TABLES)
cf_error("Kernel routing table number out of range");
THIS_KRT->scan.table_id = $3;
}