]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Unless a filter specifies otherwise, all external routes have type 2
authorMartin Mares <mj@ucw.cz>
Mon, 5 Jun 2000 18:40:25 +0000 (18:40 +0000)
committerMartin Mares <mj@ucw.cz>
Mon, 5 Jun 2000 18:40:25 +0000 (18:40 +0000)
metric 10000.

TODO
proto/ospf/ospf.c
proto/ospf/topology.c

diff --git a/TODO b/TODO
index 2226d0b81735e94d87f3d4df5844ca741d795835..61f161a577a1958ff525cb3bd9eb57060cf2a4ad 100644 (file)
--- a/TODO
+++ b/TODO
@@ -87,8 +87,6 @@ Last minute stuff:
 ~~~~~~~~~~~~~~~~~~
 Martin:        DOC: korektury
        DOC: typograficky doladit, vyrobit titulni stranku (ta, co ji vygeneruji SGMLtools, vypada priserne)
-       progdoc: dopsat kapitoly o resourcech a sysdepu
-       OSPF: zkontrolovat defaultni hodnoty metrik
        Zinscenovat jeste jeden poradny test OSPF
        Zjistit, kde se bude tisknout a vazat dokumentace
        DOC: Linux 2.2 je ten, kdo podporuje vice routing tables
index 30be459740372b609d902d96d4f8abfc1b75f5c9..9bb0388b666ec1236ae8269830ba7500026c5045 100644 (file)
@@ -193,7 +193,7 @@ ospf_import_control(struct proto *p, rte **new, ea_list **attrs, struct linpool
   struct proto_ospf *po=(struct proto_ospf *)p;
 
   if(p==e->attrs->proto) return -1;    /* Reject our own routes */
-  *attrs = ospf_build_attrs(*attrs, pool, 0, 0, 0); /* FIXME: Use better defaults? */
+  *attrs = ospf_build_attrs(*attrs, pool, LSINFINITY, 10000, 0);
   return 0;                            /* Leave decision to the filters */
 }
 
@@ -206,8 +206,8 @@ ospf_make_tmp_attrs(struct rte *rt, struct linpool *pool)
 void
 ospf_store_tmp_attrs(struct rte *rt, struct ea_list *attrs)
 {
-  rt->u.ospf.metric1 = ea_get_int(attrs, EA_OSPF_METRIC1, 0);
-  rt->u.ospf.metric2 = ea_get_int(attrs, EA_OSPF_METRIC2, 0);
+  rt->u.ospf.metric1 = ea_get_int(attrs, EA_OSPF_METRIC1, LSINFINITY);
+  rt->u.ospf.metric2 = ea_get_int(attrs, EA_OSPF_METRIC2, 10000);
   rt->u.ospf.tag     = ea_get_int(attrs, EA_OSPF_TAG,     0);
 }
 
index d2a244c982a2731c63b820fda1567bbb3130d608..6be0ca6c083799579950bd1994c02a34a750b9e4 100644 (file)
@@ -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;