summaryrefslogtreecommitdiffstats
path: root/proto/ospf/config.Y
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2000-06-02 17:05:41 +0200
committerOndrej Filip <feela@network.cz>2000-06-02 17:05:41 +0200
commit3fa5722defc340571a6518d5556b1e354f05ce18 (patch)
tree41121f21b9efd9af57a48eae914d36cebadddf5c /proto/ospf/config.Y
parent62924172aef9cf5308fd21d3ad5f6572b977c268 (diff)
downloadbird-3fa5722defc340571a6518d5556b1e354f05ce18.tar
bird-3fa5722defc340571a6518d5556b1e354f05ce18.zip
First option into config added. :-)
Diffstat (limited to 'proto/ospf/config.Y')
-rw-r--r--proto/ospf/config.Y11
1 files changed, 8 insertions, 3 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index 0951572..5a58bf2 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -1,7 +1,7 @@
/*
* BIRD -- OSPF Configuration
*
- * (c) 1999 Ondrej Filip <feela@network.cz>
+ * (c) 1999-2000 Ondrej Filip <feela@network.cz>
*
* Can be freely distributed and used under the terms of the GNU GPL.
*/
@@ -10,10 +10,14 @@ CF_HDR
#include "proto/ospf/ospf.h"
+CF_DEFINES
+
+#define OSPF_CFG ((struct ospf_config *) this_proto)
+
CF_DECLS
CF_KEYWORDS(OSPF, AREA, OSPF_METRIC1, OSPF_METRIC2, OSPF_TAG)
-CF_KEYWORDS(NEIGHBORS)
+CF_KEYWORDS(NEIGHBORS, RFC1583COMPAT)
%type <t> opttext
@@ -29,8 +33,9 @@ ospf_proto_start: proto_start OSPF {
ospf_proto:
ospf_proto_start proto_name '{'
- | ospf_proto proto_item ';'
+ | ospf_proto proto_item ';'
| ospf_proto ospf_area ';'
+ | ospf_proto RFC1583COMPAT bool ';' { OSPF_CFG->rfc1583 = $3; }
;
ospf_area: AREA idval {