Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/route.c
Show First 20 Lines • Show All 598 Lines • ▼ Show 20 Lines | #endif | ||||
uma_zfree(V_rtzone, rt); | uma_zfree(V_rtzone, rt); | ||||
return; | return; | ||||
} | } | ||||
done: | done: | ||||
RT_UNLOCK(rt); | RT_UNLOCK(rt); | ||||
} | } | ||||
/* | /* | ||||
* Temporary RTFREE() function wrapper. | |||||
* Intended to use in control plane code to | |||||
* avoid exposing internal layout of 'struct rtentry'. | |||||
*/ | |||||
void | |||||
rtfree_func(struct rtentry *rt) | |||||
{ | |||||
RTFREE(rt); | |||||
} | |||||
/* | |||||
* Adds a temporal redirect entry to the routing table. | * Adds a temporal redirect entry to the routing table. | ||||
* @fibnum: fib number | * @fibnum: fib number | ||||
* @dst: destination to install redirect to | * @dst: destination to install redirect to | ||||
* @gateway: gateway to go via | * @gateway: gateway to go via | ||||
* @author: sockaddr of originating router, can be NULL | * @author: sockaddr of originating router, can be NULL | ||||
* @ifp: interface to use for the redirected route | * @ifp: interface to use for the redirected route | ||||
* @flags: set of flags to add. Allowed: RTF_GATEWAY | * @flags: set of flags to add. Allowed: RTF_GATEWAY | ||||
* @lifetime_sec: time in seconds to expire this redirect. | * @lifetime_sec: time in seconds to expire this redirect. | ||||
▲ Show 20 Lines • Show All 1,758 Lines • Show Last 20 Lines |