From 8441f179253777b3e4bf3461ac847b33ddb098a4 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Mon, 5 Jun 2000 18:40:25 +0000 Subject: Unless a filter specifies otherwise, all external routes have type 2 metric 10000. --- proto/ospf/topology.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proto/ospf/topology.c') diff --git a/proto/ospf/topology.c b/proto/ospf/topology.c index d2a244c..6be0ca6 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; -- cgit v1.2.3