summaryrefslogtreecommitdiff
path: root/proto/ospf/topology.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-06-05 18:40:25 +0000
committerMartin Mares <mj@ucw.cz>2000-06-05 18:40:25 +0000
commit8441f179253777b3e4bf3461ac847b33ddb098a4 (patch)
tree334cc78e85a11db5bcb139f5491a837bc802f9b3 /proto/ospf/topology.c
parentf8032bbdb150221e84f0bd7de825cf3e9f15aa66 (diff)
Unless a filter specifies otherwise, all external routes have type 2
metric 10000.
Diffstat (limited to 'proto/ospf/topology.c')
-rw-r--r--proto/ospf/topology.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c
index d2a244c9..6be0ca6c 100644
--- a/proto/ospf/topology.c
+++ b/proto/ospf/topology.c
@@ -313,8 +313,8 @@ originate_ext_lsa_body(net *n, rte *e, struct proto_ospf *po, struct ea_list *at
struct ospf_lsa_ext *ext;
struct ospf_lsa_ext_tos *et;
neighbor *nn;
- u32 m1 = ea_get_int(attrs, EA_OSPF_METRIC1, 0);
- u32 m2 = ea_get_int(attrs, EA_OSPF_METRIC2, 0);
+ u32 m1 = ea_get_int(attrs, EA_OSPF_METRIC1, LSINFINITY);
+ u32 m2 = ea_get_int(attrs, EA_OSPF_METRIC2, 10000);
u32 tag = ea_get_int(attrs, EA_OSPF_TAG, 0);
int inas=0;