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

Function can_export_rte

lib/ff_route.c:1021–1030  ·  view source on GitHub ↗

* Checks if rte can be exported v.r.t jails/vnets. * * Returns 1 if it can, 0 otherwise. */

Source from the content-addressed store, hash-verified

1019 * Returns 1 if it can, 0 otherwise.
1020 */
1021static bool
1022can_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
1032int
1033ff_rtioctl(int fibnum, void *data, unsigned *plen, unsigned maxlen)

Callers 1

ff_rtioctlFunction · 0.70

Calls 2

jailed_without_vnetFunction · 0.70
prison_ifFunction · 0.70

Tested by

no test coverage detected