Revision 1a61882d proto/ospf/ospf.c

View differences:

proto/ospf/ospf.c
95 95
  po->disp_timer->hook = ospf_disp;
96 96
  po->disp_timer->recurrent = po->tick;
97 97
  tm_start(po->disp_timer, 1);
98

  
99
  fib_init(&po->efib, p->pool, sizeof(struct extfib), 16, init_efib);
100 98
  init_list(&(po->iface_list));
101 99
  init_list(&(po->area_list));
100
  fib_init(&po->rtf[0], p->pool, sizeof(ort), 16, ospf_rt_initort);
101
  fib_init(&po->rtf[1], p->pool, sizeof(ort), 16, ospf_rt_initort);
102 102
  po->areano = 0;
103 103
  if (EMPTY_LIST(c->area_list))
104 104
  {
......
133 133
      antmp->hidden = anet->hidden;
134 134
      add_tail(&oa->net_list, NODE antmp);
135 135
    }
136
    fib_init(&oa->infib, po->proto.pool, sizeof(struct infib), 16,
137
	     init_infib);
138 136
  }
139 137
  return PS_UP;
140 138
}
......
191 189
static int
192 190
ospf_rte_better(struct rte *new, struct rte *old)
193 191
{
192
  /* FIXME this is wrong */
194 193
  if (new->u.ospf.metric1 == LSINFINITY)
195 194
    return 0;
196 195

  

Also available in: Unified diff