From 013a9b91fe495371cbf9a5690613de45b634e3af Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 13 Feb 1999 20:46:03 +0000 Subject: When shutting down, remove all routes (except for RTS_INHERIT and RTS_DEVICE routes) from kernel routing tables unless the "persist" switch is set. --- sysdep/unix/krt-set.Y | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sysdep/unix/krt-set.Y (limited to 'sysdep/unix/krt-set.Y') diff --git a/sysdep/unix/krt-set.Y b/sysdep/unix/krt-set.Y new file mode 100644 index 0000000..551ee16 --- /dev/null +++ b/sysdep/unix/krt-set.Y @@ -0,0 +1,29 @@ +/* + * BIRD -- UNIX Kernel Syncer Configuration + * + * (c) 1998--1999 Martin Mares + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +CF_HDR + +#include "lib/krt-scan.h" + +CF_DECLS + +CF_KEYWORDS(PERSIST) + +CF_GRAMMAR + +CF_ADDTO(kern_proto, kern_proto krt_set_item ';') + +krt_set_item: + PERSIST bool { + ((struct krt_config *) this_proto)->setopt.persist = $2; + } + ; + +CF_CODE + +CF_END -- cgit v1.2.3