* Checks if rte can be exported v.r.t jails/vnets. * * Returns 1 if it can, 0 otherwise. */
| 1019 | * Returns 1 if it can, 0 otherwise. |
| 1020 | */ |
| 1021 | static bool |
| 1022 | can_export_rte(struct ucred *td_ucred, bool rt_is_host, |
| 1023 | const struct sockaddr *rt_dst) |
| 1024 | { |
| 1025 | |
| 1026 | if ((!rt_is_host) ? jailed_without_vnet(td_ucred) |
| 1027 | : prison_if(td_ucred, rt_dst) != 0) |
| 1028 | return (false); |
| 1029 | return (true); |
| 1030 | } |
| 1031 | |
| 1032 | int |
| 1033 | ff_rtioctl(int fibnum, void *data, unsigned *plen, unsigned maxlen) |
no test coverage detected