Revision 094d2bdb proto/ospf/ospf.c

View differences:

proto/ospf/ospf.c
298 298
{
299 299
  struct proto *p = proto_new(c, sizeof(struct proto_ospf));
300 300

  
301
  p->make_tmp_attrs = ospf_make_tmp_attrs;
302
  p->store_tmp_attrs = ospf_store_tmp_attrs;
303
  p->import_control = ospf_import_control;
304
  p->reload_routes = ospf_reload_routes;
305 301
  p->accept_ra_types = RA_OPTIMAL;
306 302
  p->rt_notify = ospf_rt_notify;
307 303
  p->if_notify = ospf_if_notify;
308 304
  p->ifa_notify = ospf_ifa_notify;
305
  p->import_control = ospf_import_control;
306
  p->reload_routes = ospf_reload_routes;
307
  p->make_tmp_attrs = ospf_make_tmp_attrs;
308
  p->store_tmp_attrs = ospf_store_tmp_attrs;
309 309
  p->rte_better = ospf_rte_better;
310 310
  p->rte_same = ospf_rte_same;
311 311

  
......
502 502
  struct ospf_area *oa = ospf_main_area((struct proto_ospf *) p);
503 503
  rte *e = *new;
504 504

  
505
  if (p == e->attrs->proto)
505
  if (e->attrs->src->proto == p)
506 506
    return -1;			/* Reject our own routes */
507 507

  
508 508
  if (oa_is_stub(oa))

Also available in: Unified diff