| 1361 | } |
| 1362 | |
| 1363 | static int |
| 1364 | rt_delete_unconditional(struct radix_node *rn, void *arg) |
| 1365 | { |
| 1366 | struct rtentry *rt = RNTORT(rn); |
| 1367 | struct rib_head *rnh = (struct rib_head *)arg; |
| 1368 | |
| 1369 | rn = rnh->rnh_deladdr(rt_key(rt), rt_mask(rt), &rnh->head); |
| 1370 | if (RNTORT(rn) == rt) |
| 1371 | rtfree(rt); |
| 1372 | |
| 1373 | return (0); |
| 1374 | } |
| 1375 | |
| 1376 | /* |
| 1377 | * Removes all routes from the routing table without executing notifications. |