summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-06 16:27:11 +0200
committerOndrej Filip <feela@network.cz>2004-06-06 16:27:11 +0200
commitd631698ec8a63270f7ca9bc069508d1313a08f92 (patch)
tree922a23cdbe59401b78f809878ba814e2adac4697 /proto
parentd8d553cadfecab2a2f3d8a69624b5a743bd97ce3 (diff)
downloadbird-d631698ec8a63270f7ca9bc069508d1313a08f92.tar
bird-d631698ec8a63270f7ca9bc069508d1313a08f92.zip
Indentation.
Diffstat (limited to 'proto')
-rw-r--r--proto/ospf/config.Y4
-rw-r--r--proto/ospf/ospf.h8
2 files changed, 8 insertions, 4 deletions
diff --git a/proto/ospf/config.Y b/proto/ospf/config.Y
index 177c926..5b4f1ac 100644
--- a/proto/ospf/config.Y
+++ b/proto/ospf/config.Y
@@ -37,7 +37,7 @@ ospf_proto_start: proto_start OSPF {
this_proto = proto_config_new(&proto_ospf, sizeof(struct ospf_config));
this_proto->preference = DEF_PREF_OSPF;
init_list(&OSPF_CFG->area_list);
- OSPF_CFG->rfc1583=1;
+ OSPF_CFG->rfc1583 = DEFAULT_RFC1583;
}
;
@@ -56,7 +56,7 @@ ospf_area_start: AREA idval '{' {
this_area = cfg_allocz(sizeof(struct ospf_area_config));
add_tail(&OSPF_CFG->area_list, NODE this_area);
this_area->areaid = $2;
- this_area->tick = DISPTICK;
+ this_area->tick = DEFAULT_DISPTICK;
this_area->stub = 0;
init_list(&this_area->patt_list);
init_list(&this_area->net_list);
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index cf984aa..29e1af5 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -43,7 +43,7 @@
#define AllDRouters ipa_from_u32(0xe0000006) /* 224.0.0.6 */
#define DEFAULTDES ipa_from_u32(0)
#else
-#error Multicast address not defined in IPv6
+#error OSPF for IPv6 is not implemented (mail to Feela <feela@network.cz>)
#endif
@@ -51,7 +51,11 @@
#define MINLSINTERVAL 5
#define MINLSARRIVAL 1
#define LSINFINITY 0xffff /* RFC says 0xffffff ??? */
-#define DISPTICK 7
+
+#define DEFAULT_DISPTICK 4
+#define DEFAULT_OSPFTICK 5
+#define DEFAULT_RFC1583 1 /* compatibility with rfc1583 */
+
struct ospf_config
{