Lines Matching refs:inp_socket

611 	if (inp->inp_socket != NULL) {  in inp_snprintf_tuple()
612 proto = SOCK_PROTO(inp->inp_socket); in inp_snprintf_tuple()
649 if (soopt_cred_check(inp->inp_socket, PRIV_NET_RESTRICTED_INTCOPROC, false, false) == 0 in in_pcb_check_management_entitled()
717 inp->inp_socket = so; in in_pcballoc()
771 struct socket *so = inp->inp_socket; in in_pcblookup_local_and_cleanup()
830 struct socket *so = inp->inp_socket; in in_pcbbind()
1023 !(t->inp_socket->so_options & SO_REUSEPORT)) && in in_pcbbind()
1024 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()
1025 !(t->inp_socket->so_flags & SOF_REUSESHAREUID) && in in_pcbbind()
1031 if ((t->inp_socket->so_flags & in in_pcbbind()
1050 (reuseport & t->inp_socket->so_options) == 0 && in in_pcbbind()
1057 SOCK_DOM(t->inp_socket) != PF_INET6) { in in_pcbbind()
1058 if ((t->inp_socket->so_flags & in in_pcbbind()
1609 (inp->inp_socket->so_options & SO_DONTROUTE)) { in in_pcbladdr()
1615 if (!(inp->inp_socket->so_options & SO_DONTROUTE) && in in_pcbladdr()
1651 if (apn_fallback_required(proc, inp->inp_socket, in in_pcbladdr()
1653 apn_fallback_trigger(proc, inp->inp_socket); in in_pcbladdr()
1809 soevent(inp->inp_socket, (SO_FILT_HINT_LOCKED | in in_pcbladdr()
1834 struct socket *so = inp->inp_socket; in in_pcbconnect()
1929 struct socket *so = inp->inp_socket; in in_pcbdisconnect()
1966 struct socket *so = inp->inp_socket; in in_pcbdetach()
2071 struct socket *so = inp->inp_socket; in in_pcbdispose()
2128 inp->inp_socket = NULL; in in_pcbdispose()
2235 inp->inp_socket == NULL) { in in_pcbnotifyall()
2241 socket_lock(inp->inp_socket, 1); in in_pcbnotifyall()
2244 socket_unlock(inp->inp_socket, 1); in in_pcbnotifyall()
2471 if ((found = (inp->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2476 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2478 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2512 if ((found = (inp->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2514 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2516 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2521 if (inp->inp_socket && in in_pcblookup_hash_exists()
2522 SOCK_CHECK_DOM(inp->inp_socket, PF_INET6)) { in in_pcblookup_hash_exists()
2532 if ((found = (local_wild_mapped->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2534 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2536 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2544 if ((found = (local_wild->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2546 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
2548 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
2638 if (SOCK_CHECK_DOM(inp->inp_socket, PF_INET6)) { in in_pcblookup_hash_locked()
2729 socket_unlock(inp->inp_socket, 0); in in_pcbinshash()
2731 socket_lock(inp->inp_socket, 0); in in_pcbinshash()
2786 struct socket *so = inp->inp_socket; in in_pcbinshash()
2839 struct socket *so = inp->inp_socket; in in_pcbrehash()
2983 socket_lock(pcb->inp_socket, 1); in in_pcb_checkstate()
2988 if (pcb->inp_socket->so_usecount < 0) { in in_pcb_checkstate()
2990 __func__, pcb, pcb->inp_socket); in in_pcb_checkstate()
2994 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
3032 socket_lock(pcb->inp_socket, 1); in in_pcb_checkstate()
3045 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
3055 if (pcb->inp_socket->so_usecount < 0) { in in_pcb_checkstate()
3057 __func__, pcb, pcb->inp_socket); in in_pcb_checkstate()
3062 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
3068 pcb->inp_socket, mode); in in_pcb_checkstate()
3159 socket_lock_assert_owned(inp->inp_socket); in inp_route_copyout()
3177 socket_lock_assert_owned(inp->inp_socket); in inp_route_copyin()
3278 struct socket *so = inp->inp_socket; in inp_clear_nocellular()
3449 (uint8_t)SOCK_PROTO(inp->inp_socket); in inp_calc_flowhash()
3583 struct socket *so = inp->inp_socket; in inp_fc_feedback()
3647 struct socket *so = inp->inp_socket; in inp_reset_fc_state()
3698 soevent(inp->inp_socket, in inp_set_fc_state()
3702 inp->inp_socket->so_flags |= SOF_SUSPENDED; in inp_set_fc_state()
3706 if (!is_flow_controlled && SOCK_TYPE(inp->inp_socket) == SOCK_STREAM) { in inp_set_fc_state()
3771 struct socket *so = inp->inp_socket; in inp_get_soprocinfo()
3808 inp->inp_socket != NULL && in inp_findinpcb_procinfo()
3824 struct socket *so = inp->inp_socket; in inp_update_cellular_policy()
3869 struct socket *so = inp->inp_socket; in inp_update_necp_want_app_policy()
3929 struct socket *so = inp->inp_socket; in inp_update_policy()
4174 struct socket *so = inp->inp_socket; in inp_count_sndbytes()
4505 struct socket *__single so = inp->inp_socket; in in_pcbsetport()
4520 socket_unlock(inp->inp_socket, 0); in in_pcbsetport()
4522 socket_lock(inp->inp_socket, 0); in in_pcbsetport()