prison_check_ip4() can take const arguments.
This commit is contained in:
parent
b52d3ddba3
commit
0d168b8d36
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257498
@ -135,7 +135,7 @@ static void prison_racct_modify(struct prison *pr);
|
|||||||
static void prison_racct_detach(struct prison *pr);
|
static void prison_racct_detach(struct prison *pr);
|
||||||
#endif
|
#endif
|
||||||
#ifdef INET
|
#ifdef INET
|
||||||
static int _prison_check_ip4(struct prison *pr, struct in_addr *ia);
|
static int _prison_check_ip4(const struct prison *, const struct in_addr *);
|
||||||
static int prison_restrict_ip4(struct prison *pr, struct in_addr *newip4);
|
static int prison_restrict_ip4(struct prison *pr, struct in_addr *newip4);
|
||||||
#endif
|
#endif
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
@ -2930,7 +2930,7 @@ prison_remote_ip4(struct ucred *cred, struct in_addr *ia)
|
|||||||
* doesn't allow IPv4. Address passed in in NBO.
|
* doesn't allow IPv4. Address passed in in NBO.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
_prison_check_ip4(struct prison *pr, struct in_addr *ia)
|
_prison_check_ip4(const struct prison *pr, const struct in_addr *ia)
|
||||||
{
|
{
|
||||||
int i, a, z, d;
|
int i, a, z, d;
|
||||||
|
|
||||||
@ -2960,7 +2960,7 @@ _prison_check_ip4(struct prison *pr, struct in_addr *ia)
|
|||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
prison_check_ip4(struct ucred *cred, struct in_addr *ia)
|
prison_check_ip4(const struct ucred *cred, const struct in_addr *ia)
|
||||||
{
|
{
|
||||||
struct prison *pr;
|
struct prison *pr;
|
||||||
int error;
|
int error;
|
||||||
|
@ -384,7 +384,7 @@ int prison_equal_ip4(struct prison *, struct prison *);
|
|||||||
int prison_get_ip4(struct ucred *cred, struct in_addr *ia);
|
int prison_get_ip4(struct ucred *cred, struct in_addr *ia);
|
||||||
int prison_local_ip4(struct ucred *cred, struct in_addr *ia);
|
int prison_local_ip4(struct ucred *cred, struct in_addr *ia);
|
||||||
int prison_remote_ip4(struct ucred *cred, struct in_addr *ia);
|
int prison_remote_ip4(struct ucred *cred, struct in_addr *ia);
|
||||||
int prison_check_ip4(struct ucred *cred, struct in_addr *ia);
|
int prison_check_ip4(const struct ucred *, const struct in_addr *);
|
||||||
int prison_saddrsel_ip4(struct ucred *, struct in_addr *);
|
int prison_saddrsel_ip4(struct ucred *, struct in_addr *);
|
||||||
#ifdef INET6
|
#ifdef INET6
|
||||||
int prison_equal_ip6(struct prison *, struct prison *);
|
int prison_equal_ip6(struct prison *, struct prison *);
|
||||||
|
Loading…
Reference in New Issue
Block a user