summaryrefslogtreecommitdiffstats
path: root/proto/rip
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-11-27 22:09:57 +0100
committerMartin Mares <mj@ucw.cz>1998-11-27 22:09:57 +0100
commitc74c0e3cdf008988a8873d3f76c0d71b29ab8673 (patch)
treeb1392eb7bc193f820f7f57b8b12eea7ff56239e8 /proto/rip
parent93fb60d54ca7ce3efec1cc0b39fb0840d055ccd1 (diff)
downloadbird-c74c0e3cdf008988a8873d3f76c0d71b29ab8673.tar
bird-c74c0e3cdf008988a8873d3f76c0d71b29ab8673.zip
First attempt at protocol configuration (now done only for RIP).
Diffstat (limited to 'proto/rip')
-rw-r--r--proto/rip/config.Y32
1 files changed, 32 insertions, 0 deletions
diff --git a/proto/rip/config.Y b/proto/rip/config.Y
index e69de29..c89e59c 100644
--- a/proto/rip/config.Y
+++ b/proto/rip/config.Y
@@ -0,0 +1,32 @@
+/*
+ * BIRD -- RIP Configuration
+ *
+ * Can be freely distributed and used under the terms of the GNU GPL.
+ */
+
+CF_HDR
+
+#include "proto/rip/rip.h"
+
+CF_DECLS
+
+CF_KEYWORDS(RIP)
+
+CF_GRAMMAR
+
+CF_ADDTO(proto, rip_proto '}')
+
+rip_proto_start: proto_start RIP {
+ this_proto = proto_new(&proto_rip, sizeof(struct rip_data));
+ rip_init_instance(this_proto);
+ }
+ ;
+
+rip_proto:
+ rip_proto_start proto_name '{'
+ | rip_proto proto_item ';'
+ ;
+
+CF_CODE
+
+CF_END