1999-03-03 19:49:56 +00:00
|
|
|
/*
|
|
|
|
* BIRD -- Linux Netlink Configuration
|
|
|
|
*
|
2000-05-08 12:05:55 +00:00
|
|
|
* (c) 1999--2000 Martin Mares <mj@ucw.cz>
|
1999-03-03 19:49:56 +00:00
|
|
|
*
|
|
|
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
|
|
|
*/
|
|
|
|
|
|
|
|
CF_HDR
|
|
|
|
|
|
|
|
CF_DECLS
|
|
|
|
|
1999-08-03 19:33:22 +00:00
|
|
|
CF_KEYWORDS(ASYNC, KERNEL, TABLE)
|
1999-03-03 19:49:56 +00:00
|
|
|
|
|
|
|
CF_GRAMMAR
|
|
|
|
|
|
|
|
CF_ADDTO(kern_proto, kern_proto nl_item ';')
|
|
|
|
|
|
|
|
nl_item:
|
2000-05-08 12:05:55 +00:00
|
|
|
KERNEL TABLE expr {
|
1999-08-03 19:37:37 +00:00
|
|
|
if ($3 <= 0 || $3 >= NL_NUM_TABLES)
|
1999-08-03 19:33:22 +00:00
|
|
|
cf_error("Kernel routing table number out of range");
|
|
|
|
THIS_KRT->scan.table_id = $3;
|
|
|
|
}
|
1999-03-03 19:49:56 +00:00
|
|
|
;
|
|
|
|
|
|
|
|
CF_CODE
|
|
|
|
|
|
|
|
CF_END
|