MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rt_delete_unconditional

Function rt_delete_unconditional

freebsd/net/route/route_ctl.c:1363–1374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361}
1362
1363static int
1364rt_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.

Callers

nothing calls this directly

Calls 1

rtfreeFunction · 0.85

Tested by

no test coverage detected