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

Makes krt.c much more readable.

This commit is contained in:
Ondrej Zajicek
2013-06-29 22:55:41 +02:00
parent 6ac4f87a2d
commit c6964c305b
7 changed files with 101 additions and 94 deletions

View File

@@ -10,13 +10,13 @@ CF_HDR
CF_DECLS
CF_KEYWORDS(ASYNC, KERNEL, TABLE, KRT_PREFSRC, KRT_REALM)
CF_KEYWORDS(KERNEL, TABLE, KRT_PREFSRC, KRT_REALM)
CF_GRAMMAR
CF_ADDTO(kern_proto, kern_proto nl_item ';')
CF_ADDTO(kern_proto, kern_proto kern_sys_item ';')
nl_item:
kern_sys_item:
KERNEL TABLE expr {
if ($3 <= 0 || $3 >= NL_NUM_TABLES)
cf_error("Kernel routing table number out of range");