Lines Matching refs:ort
368 nc_route(struct rt *ort, struct rt *nrt) in nc_route() argument
377 desc_route(ort == NULL ? "adding" : "changing", nrt); in nc_route()
379 if (ort == NULL) { in nc_route()
380 ort = ipv4_findrt(nrt->iface->ctx, nrt, 0); in nc_route()
381 if (ort && in nc_route()
382 ((ort->flags & RTF_REJECT && nrt->flags & RTF_REJECT) || in nc_route()
383 (ort->iface == nrt->iface && in nc_route()
385 ort->metric == nrt->metric && in nc_route()
387 ort->gate.s_addr == nrt->gate.s_addr))) in nc_route()
389 } else if (ort->flags & STATE_FAKE && !(nrt->flags & STATE_FAKE) && in nc_route()
390 ort->iface == nrt->iface && in nc_route()
392 ort->metric == nrt->metric && in nc_route()
394 ort->dest.s_addr == nrt->dest.s_addr && in nc_route()
395 ort->net.s_addr == nrt->net.s_addr && in nc_route()
396 ort->gate.s_addr == nrt->gate.s_addr) in nc_route()
403 if (ort && if_route(RTM_DELETE, ort) == -1 && errno != ESRCH) in nc_route()
410 if (errno != EEXIST || ort == NULL) in nc_route()
416 if (ort && if_route(RTM_DELETE, ort) == -1 && errno != ESRCH) in nc_route()