]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Struct area_net changed.
authorOndrej Filip <feela@network.cz>
Sun, 6 Jun 2004 09:13:37 +0000 (09:13 +0000)
committerOndrej Filip <feela@network.cz>
Sun, 6 Jun 2004 09:13:37 +0000 (09:13 +0000)
proto/ospf/config.Y
proto/ospf/ospf.c
proto/ospf/ospf.h

index e4ed500b52bbf3f885a17b38e323577a754099dd..177c926f1abdf27f16811cd439be09bdd648e2e1 100644 (file)
@@ -112,8 +112,8 @@ pref_el: prefix ';'
  {
    this_pref = cfg_allocz(sizeof(struct area_net));
    add_tail(&this_area->net_list, NODE this_pref);
-   this_pref->net = $1.addr;
-   this_pref->mlen = $1.len;
+   this_pref->px.addr = $1.addr;
+   this_pref->px.len = $1.len;
  }
 ;
 
@@ -121,8 +121,8 @@ pref_hid: prefix HIDDEN ';'
  {
    this_pref = cfg_allocz(sizeof(struct area_net));
    add_tail(&this_area->net_list, NODE this_pref);
-   this_pref->net = $1.addr;
-   this_pref->mlen = $1.len;
+   this_pref->px.addr = $1.addr;
+   this_pref->px.len = $1.len;
    this_pref->hidden = 1;
  }
 ;
index 79564ed84f273f300c8db46376f8902802983dd2..7346082022390d08ebeba4c4efa7893f65b848fa 100644 (file)
@@ -116,8 +116,8 @@ ospf_start(struct proto *p)
     WALK_LIST(anet,ac->net_list)
     {
       antmp=mb_allocz(po->proto.pool, sizeof(struct area_net));
-      antmp->net=anet->net;
-      antmp->mlen=anet->mlen;
+      antmp->px.addr=anet->px.addr;
+      antmp->px.len=anet->px.len;
       antmp->hidden=anet->hidden;
       add_tail(&oa->net_list, NODE antmp);
     }
@@ -542,8 +542,8 @@ ospf_reconfigure(struct proto *p, struct proto_config *c)
     WALK_LIST(anet, ac2->net_list)
     {
        antmp=mb_alloc(p->pool, sizeof(struct area_net));
-       antmp->net=anet->net;
-       antmp->mlen=anet->mlen;
+       antmp->px.addr=anet->px.addr;
+       antmp->px.len=anet->px.len;
        antmp->hidden=anet->hidden;
        add_tail(&oa->net_list, NODE antmp);
     }
@@ -836,7 +836,7 @@ ospf_sh(struct proto *p)
       cli_msg(-1014,"\t\tArea networks:");
       WALK_LIST(anet, oa->net_list)
       {
-        cli_msg(-1014,"\t\t\t%1I/%u\t%s", anet->net, anet->mlen,
+        cli_msg(-1014,"\t\t\t%1I/%u\t%s", anet->px.addr, anet->px.len,
           anet->hidden ? "Hidden" : "Advertise");
       }
     }
index 4b573f8b4a1e98fe0bae8bdca32746223deeeccb..b0ac1e9f58595213a8f188af273e65736e5b33b9 100644 (file)
@@ -67,9 +67,10 @@ struct nbma_node {
 
 struct area_net {
   node n;
-  ip_addr net;
-  int mlen;
+  struct prefix px;
   int hidden;
+  int active;
+  int oldactive;
 };
 
 struct ospf_area_config {