Whitespace/spelling fixes in advance of upcoming functional changes.
Approved by: bz (mentor)
This commit is contained in:
parent
15ced2cfb3
commit
8571af59e5
@ -2043,6 +2043,7 @@ freebsd32_jail(struct thread *td, struct freebsd32_jail_args *uap)
|
||||
error = copyin(uap->jail, &version, sizeof(uint32_t));
|
||||
if (error)
|
||||
return (error);
|
||||
|
||||
switch (version) {
|
||||
case 0:
|
||||
{
|
||||
|
@ -123,10 +123,10 @@ static void init_prison(void *);
|
||||
static void prison_complete(void *context, int pending);
|
||||
static int sysctl_jail_list(SYSCTL_HANDLER_ARGS);
|
||||
#ifdef INET
|
||||
static int _prison_check_ip4(struct prison *, struct in_addr *);
|
||||
static int _prison_check_ip4(struct prison *pr, struct in_addr *ia);
|
||||
#endif
|
||||
#ifdef INET6
|
||||
static int _prison_check_ip6(struct prison *, struct in6_addr *);
|
||||
static int _prison_check_ip6(struct prison *pr, struct in6_addr *ia6);
|
||||
#endif
|
||||
|
||||
static void
|
||||
@ -594,6 +594,7 @@ e_killmtx:
|
||||
return (error);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* struct jail_attach_args {
|
||||
* int jid;
|
||||
@ -807,7 +808,7 @@ prison_proc_free(struct prison *pr)
|
||||
* Pass back primary IPv4 address of this jail.
|
||||
*
|
||||
* If not jailed return success but do not alter the address. Caller has to
|
||||
* make sure to intialize it correctly (e.g. INADDR_ANY).
|
||||
* 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.
|
||||
@ -822,7 +823,6 @@ prison_get_ip4(struct ucred *cred, struct in_addr *ia)
|
||||
if (!jailed(cred))
|
||||
/* Do not change address passed in. */
|
||||
return (0);
|
||||
|
||||
if (cred->cr_prison->pr_ip4 == NULL)
|
||||
return (EAFNOSUPPORT);
|
||||
|
||||
@ -956,7 +956,7 @@ prison_check_ip4(struct ucred *cred, struct in_addr *ia)
|
||||
* Pass back primary IPv6 address for this jail.
|
||||
*
|
||||
* If not jailed return success but do not alter the address. Caller has to
|
||||
* make sure to intialize it correctly (e.g. IN6ADDR_ANY_INIT).
|
||||
* make sure to initialize it correctly (e.g. IN6ADDR_ANY_INIT).
|
||||
*
|
||||
* Returns 0 on success, EAFNOSUPPORT if the jail doesn't allow IPv6.
|
||||
*/
|
||||
|
@ -7,7 +7,6 @@
|
||||
* ----------------------------------------------------------------------------
|
||||
*
|
||||
* $FreeBSD$
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _SYS_JAIL_H_
|
||||
|
Loading…
x
Reference in New Issue
Block a user