if (!krt_capable(e))
return -1;
+ /* Before first scan we don't touch the routes */
+ if (!SKIP_BACK(struct krt_proto, p, C->proto)->ready)
+ return -1;
+
return 0;
}
return;
#endif
- if (p->initialized) /* Before first scan we don't touch the routes */
- krt_replace_rte(p, net, new, old);
+ krt_replace_rte(p, net, new, old);
}
static void
}
p->ready = 1;
+ bmap_reset(&C->export_reject_map, 16);
krt_scan_timer_kick(p);
}