From a1bf6440b5c27f7fb829eb25f6ac1c2629eb72eb Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 6 Dec 1998 18:21:23 +0000 Subject: Added skeleton of static route protocol. --- proto/static/config.Y | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 proto/static/config.Y (limited to 'proto/static/config.Y') diff --git a/proto/static/config.Y b/proto/static/config.Y new file mode 100644 index 00000000..a9eaa872 --- /dev/null +++ b/proto/static/config.Y @@ -0,0 +1,34 @@ +/* + * BIRD -- Static Protocol Configuration + * + * (c) 1998 Martin Mares + * + * Can be freely distributed and used under the terms of the GNU GPL. + */ + +CF_HDR + +#include "proto/static/static.h" + +CF_DECLS + +CF_KEYWORDS(STATIC) + +CF_GRAMMAR + +CF_ADDTO(proto, static_proto '}') + +static_proto_start: proto_start STATIC { + this_proto = proto_new(&proto_static, sizeof(struct static_proto)); + static_init_instance((struct static_proto *) this_proto); + } + ; + +static_proto: + static_proto_start proto_name '{' + | static_proto proto_item ';' + ; + +CF_CODE + +CF_END -- cgit v1.2.3