* Checks if rte can be exported v.r.t jails/vnets. * * Returns 1 if it can, 0 otherwise. */
| 2098 | * Returns 1 if it can, 0 otherwise. |
| 2099 | */ |
| 2100 | static bool |
| 2101 | can_export_rte(struct ucred *td_ucred, bool rt_is_host, |
| 2102 | const struct sockaddr *rt_dst) |
| 2103 | { |
| 2104 | |
| 2105 | if ((!rt_is_host) ? jailed_without_vnet(td_ucred) |
| 2106 | : prison_if(td_ucred, rt_dst) != 0) |
| 2107 | return (false); |
| 2108 | return (true); |
| 2109 | } |
| 2110 | |
| 2111 | |
| 2112 | /* |
no test coverage detected