Revision f4a60a9b proto/ospf/rt.c

View differences:

proto/ospf/rt.c
1973 1973

  
1974 1974
      if (reload || ort_changed(nf, &a0))
1975 1975
      {
1976
	net *ne = net_get(p->p.table, nf->fn.addr);
1976
	net *ne = net_get(p->p.main_channel->table, nf->fn.addr);
1977 1977
	rta *a = rta_lookup(&a0);
1978 1978
	rte *e = rte_get_temp(a);
1979 1979

  
......
1985 1985
	e->u.ospf.router_id = nf->old_rid = nf->n.rid;
1986 1986
	e->pflags = 0;
1987 1987
	e->net = ne;
1988
	e->pref = p->p.preference;
1989 1988

  
1990 1989
	DBG("Mod rte type %d - %N via %I on iface %s, met %d\n",
1991 1990
	    a0.source, nf->fn.addr, a0.gw, a0.iface ? a0.iface->name : "(none)", nf->n.metric1);
......
1998 1997
      rta_free(nf->old_rta);
1999 1998
      nf->old_rta = NULL;
2000 1999

  
2001
      net *ne = net_get(p->p.table, nf->fn.addr);
2000
      net *ne = net_get(p->p.main_channel->table, nf->fn.addr);
2002 2001
      rte_update(&p->p, ne, NULL);
2003 2002
    }
2004 2003

  

Also available in: Unified diff