FreeBSD kernel IPv4 code
|
#include <sys/cdefs.h>
#include "opt_ddb.h"
#include "opt_inet.h"
#include "opt_inet6.h"
#include <sys/param.h>
#include <sys/types.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/errno.h>
#include <sys/sysproto.h>
#include <sys/malloc.h>
#include <sys/osd.h>
#include <sys/priv.h>
#include <sys/proc.h>
#include <sys/taskqueue.h>
#include <sys/fcntl.h>
#include <sys/jail.h>
#include <sys/lock.h>
#include <sys/mutex.h>
#include <sys/racct.h>
#include <sys/refcount.h>
#include <sys/sx.h>
#include <sys/sysent.h>
#include <sys/namei.h>
#include <sys/mount.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <sys/syscallsubr.h>
#include <sys/sysctl.h>
#include <sys/vnode.h>
#include <net/if.h>
#include <net/vnet.h>
#include <netinet/in.h>
Go to the source code of this file.
Functions | |
__FBSDID ("$FreeBSD$") | |
static in_addr_t | prison_primary_ip4 (const struct prison *pr) |
int | prison_qcmp_v4 (const void *ip1, const void *ip2) |
bool | prison_valid_v4 (const void *ip) |
int | prison_get_ip4 (struct ucred *cred, struct in_addr *ia) |
int | prison_saddrsel_ip4 (struct ucred *cred, struct in_addr *ia) |
int | prison_equal_ip4 (struct prison *pr1, struct prison *pr2) |
int | prison_local_ip4 (struct ucred *cred, struct in_addr *ia) |
int | prison_remote_ip4 (struct ucred *cred, struct in_addr *ia) |
int | prison_check_ip4_locked (const struct prison *pr, const struct in_addr *ia) |
int | prison_check_ip4 (const struct ucred *cred, const struct in_addr *ia) |
__FBSDID | ( | "$FreeBSD$" | ) |
int prison_check_ip4 | ( | const struct ucred * | cred, |
const struct in_addr * | ia | ||
) |
Definition at line 322 of file in_jail.c.
References prison_check_ip4_locked().
Referenced by in_aifaddr_ioctl(), in_control(), in_difaddr_ioctl(), in_gifaddr_ioctl(), sctp_add_addresses_to_i_ia(), sctp_addr_mgmt_assoc(), sctp_asconf_iterator_stcb(), sctp_asconf_send_nat_state_update(), sctp_check_address_list_all(), sctp_choose_boundall(), sctp_choose_boundspecific_inp(), sctp_choose_boundspecific_stcb(), sctp_count_num_preferred_boundall(), sctp_does_stcb_own_this_addr(), sctp_endpoint_probe(), sctp_fill_up_addresses_vrf(), sctp_find_valid_localaddr(), sctp_local_addr_count(), sctp_select_nth_preferred_addr_from_ifn_boundall(), sctp_setopt(), sctp_sysctl_copy_out_local_addresses(), and sctp_tcb_special_locate().
int prison_check_ip4_locked | ( | const struct prison * | pr, |
const struct in_addr * | ia | ||
) |
Definition at line 312 of file in_jail.c.
Referenced by prison_check_ip4(), prison_local_ip4(), and prison_remote_ip4().
int prison_equal_ip4 | ( | struct prison * | pr1, |
struct prison * | pr2 | ||
) |
int prison_get_ip4 | ( | struct ucred * | cred, |
struct in_addr * | ia | ||
) |
Definition at line 122 of file in_jail.c.
References prison_primary_ip4(), and in_addr::s_addr.
Referenced by prison_saddrsel_ip4().
int prison_local_ip4 | ( | struct ucred * | cred, |
struct in_addr * | ia | ||
) |
Definition at line 220 of file in_jail.c.
References INADDR_ANY, prison_check_ip4_locked(), prison_primary_ip4(), and in_addr::s_addr.
Referenced by sctp_inpcb_bind_locked(), and sctp_setopt().
|
static |
Definition at line 69 of file in_jail.c.
References s_addr.
Referenced by prison_get_ip4(), prison_local_ip4(), and prison_remote_ip4().
int prison_qcmp_v4 | ( | const void * | ip1, |
const void * | ip2 | ||
) |
int prison_remote_ip4 | ( | struct ucred * | cred, |
struct in_addr * | ia | ||
) |
Definition at line 271 of file in_jail.c.
References prison_check_ip4_locked(), prison_primary_ip4(), and in_addr::s_addr.
Referenced by tcp_usr_send().
int prison_saddrsel_ip4 | ( | struct ucred * | cred, |
struct in_addr * | ia | ||
) |
Definition at line 155 of file in_jail.c.
References INADDR_ANY, prison_get_ip4(), and in_addr::s_addr.
bool prison_valid_v4 | ( | const void * | ip | ) |
Definition at line 101 of file in_jail.c.
References INADDR_ANY, and INADDR_BROADCAST.