diff options
author | Martin Mares <mj@ucw.cz> | 2000-06-05 20:40:25 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-06-05 20:40:25 +0200 |
commit | 8441f179253777b3e4bf3461ac847b33ddb098a4 (patch) | |
tree | 334cc78e85a11db5bcb139f5491a837bc802f9b3 /proto/ospf/topology.c | |
parent | f8032bbdb150221e84f0bd7de825cf3e9f15aa66 (diff) | |
download | bird-8441f179253777b3e4bf3461ac847b33ddb098a4.tar bird-8441f179253777b3e4bf3461ac847b33ddb098a4.zip |
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.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |