From 7de45ba4a01bfdc986a4b597c04ad39d9b97a58a Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 3 Aug 1999 19:33:22 +0000 Subject: Kernel route syncer supports multiple tables. The changes are just too extensive for lazy me to list them there, but see the comment at the top of sysdep/unix/krt.c. The code got a bit more ifdeffy than I'd like, though. Also fixed a bunch of FIXME's and added a couple of others. :) --- sysdep/linux/netlink/netlink.Y | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sysdep/linux/netlink/netlink.Y') diff --git a/sysdep/linux/netlink/netlink.Y b/sysdep/linux/netlink/netlink.Y index b5c45f2..1b9b1e4 100644 --- a/sysdep/linux/netlink/netlink.Y +++ b/sysdep/linux/netlink/netlink.Y @@ -10,7 +10,7 @@ CF_HDR CF_DECLS -CF_KEYWORDS(ASYNC) +CF_KEYWORDS(ASYNC, KERNEL, TABLE) CF_GRAMMAR @@ -18,6 +18,11 @@ 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) + cf_error("Kernel routing table number out of range"); + THIS_KRT->scan.table_id = $3; + } ; CF_CODE -- cgit v1.2.3