Annotation of embedaddon/bird/sysdep/bsd/krt-sock.Y, revision 1.1.1.1
1.1 misho 1: /*
2: * BIRD -- BSD Kernel Syncer Configuration
3: *
4: * (c) 1999--2000 Martin Mares <mj@ucw.cz>
5: *
6: * Can be freely distributed and used under the terms of the GNU GPL.
7: */
8:
9: CF_HDR
10:
11: CF_DECLS
12:
13: CF_KEYWORDS(KERNEL, TABLE)
14:
15: CF_GRAMMAR
16:
17: CF_ADDTO(kern_proto, kern_proto kern_sys_item ';')
18:
19: kern_sys_item:
20: KERNEL TABLE expr {
21: if ($3 && (krt_max_tables == 1))
22: cf_error("Multiple kernel routing tables not supported");
23: if ($3 < 0 || $3 >= krt_max_tables)
24: cf_error("Kernel table id must be in range 0-%d", krt_max_tables - 1);
25:
26: THIS_KRT->sys.table_id = $3;
27: }
28: ;
29:
30: CF_CODE
31:
32: CF_END
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>