2 * BIRD -- BSD Kernel Syncer Configuration
4 * (c) 1999--2000 Martin Mares <mj@ucw.cz>
6 * Can be freely distributed and used under the terms of the GNU GPL.
13 CF_KEYWORDS(KERNEL, TABLE, METRIC)
17 kern_proto: kern_proto kern_sys_item ';' ;
21 if ($3 && (krt_max_tables == 1))
22 cf_error("Multiple kernel routing tables not supported");
23 if ($3 >= krt_max_tables)
24 cf_error("Kernel table id must be in range 0-%u", krt_max_tables - 1);
26 THIS_KRT->sys.table_id = $3;
29 if ($2 && !krt_max_metric)
30 cf_error("Kernel route metric not supported");
31 if ($2 > krt_max_metric)
32 cf_error("Kernel table id must be in range 0-%u", krt_max_metric);
34 THIS_KRT->sys.metric = $2;