mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 00:39:54 +08:00
Added two prison methods to resolve linker errors.
This commit is contained in:
parent
e3f2b511a6
commit
761f597d30
@ -235,3 +235,30 @@ prison_remote_ip6(struct ucred *cred, struct in6_addr *ia6)
|
|||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Return 1 if we should do proper source address selection or are not jailed.
|
||||||
|
* We will return 0 if we should bypass source address selection in favour
|
||||||
|
* of the primary jail IPv4 address. Only in this case *ia will be updated and
|
||||||
|
* returned in NBO.
|
||||||
|
* Return EAFNOSUPPORT, in case this jail does not allow IPv4.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
prison_saddrsel_ip4(struct ucred *cred, struct in_addr *ia)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Pass back primary IPv4 address of this jail.
|
||||||
|
*
|
||||||
|
* If not restricted return success but do not alter the address. Caller has
|
||||||
|
* to make sure to initialize it correctly (e.g. INADDR_ANY).
|
||||||
|
*
|
||||||
|
* Returns 0 on success, EAFNOSUPPORT if the jail doesn't allow IPv4.
|
||||||
|
* Address returned in NBO.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
prison_get_ip4(struct ucred *cred, struct in_addr *ia)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user