Lines Matching refs:inp_socket
597 if (inp->inp_socket != NULL && inp->inp_socket->so_proto != NULL) { in inp_snprintf_tuple()
598 proto = inp->inp_socket->so_proto->pr_protocol; in inp_snprintf_tuple()
635 if (soopt_cred_check(inp->inp_socket, PRIV_NET_RESTRICTED_INTCOPROC, false, false) == 0 in in_pcb_check_management_entitled()
681 inp->inp_socket = so; in in_pcballoc()
766 struct socket *so = inp->inp_socket; in in_pcblookup_local_and_cleanup()
825 struct socket *so = inp->inp_socket; in in_pcbbind()
1003 !(t->inp_socket->so_options & SO_REUSEPORT)) && in in_pcbbind()
1004 (u != kauth_cred_getuid(t->inp_socket->so_cred)) && in in_pcbbind()
1005 !(t->inp_socket->so_flags & SOF_REUSESHAREUID) && in in_pcbbind()
1011 if ((t->inp_socket->so_flags & in in_pcbbind()
1029 (reuseport & t->inp_socket->so_options) == 0 && in in_pcbbind()
1036 SOCK_DOM(t->inp_socket) != PF_INET6) { in in_pcbbind()
1037 if ((t->inp_socket->so_flags & in in_pcbbind()
1579 (inp->inp_socket->so_options & SO_DONTROUTE)) { in in_pcbladdr()
1585 if (!(inp->inp_socket->so_options & SO_DONTROUTE) && in in_pcbladdr()
1621 if (apn_fallback_required(proc, inp->inp_socket, in in_pcbladdr()
1623 apn_fallback_trigger(proc, inp->inp_socket); in in_pcbladdr()
1779 soevent(inp->inp_socket, (SO_FILT_HINT_LOCKED | in in_pcbladdr()
1804 struct socket *so = inp->inp_socket; in in_pcbconnect()
1899 struct socket *so = inp->inp_socket; in in_pcbdisconnect()
1936 struct socket *so = inp->inp_socket; in in_pcbdetach()
2035 struct socket *so = inp->inp_socket; in in_pcbdispose()
2093 inp->inp_socket = NULL; in in_pcbdispose()
2200 inp->inp_socket == NULL) { in in_pcbnotifyall()
2206 socket_lock(inp->inp_socket, 1); in in_pcbnotifyall()
2209 socket_unlock(inp->inp_socket, 1); in in_pcbnotifyall()
2436 if ((found = (inp->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2441 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2443 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2477 if ((found = (inp->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2479 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2481 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2486 if (inp->inp_socket && in in_pcblookup_hash_exists()
2487 SOCK_CHECK_DOM(inp->inp_socket, PF_INET6)) { in in_pcblookup_hash_exists()
2497 if ((found = (local_wild_mapped->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2499 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2501 local_wild_mapped->inp_socket->so_cred); in in_pcblookup_hash_exists()
2509 if ((found = (local_wild->inp_socket != NULL))) { in in_pcblookup_hash_exists()
2511 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
2513 local_wild->inp_socket->so_cred); in in_pcblookup_hash_exists()
2614 if (SOCK_CHECK_DOM(inp->inp_socket, PF_INET6)) { in in_pcblookup_hash()
2672 socket_unlock(inp->inp_socket, 0); in in_pcbinshash()
2674 socket_lock(inp->inp_socket, 0); in in_pcbinshash()
2729 struct socket *so = inp->inp_socket; in in_pcbinshash()
2782 struct socket *so = inp->inp_socket; in in_pcbrehash()
2926 socket_lock(pcb->inp_socket, 1); in in_pcb_checkstate()
2931 if (pcb->inp_socket->so_usecount < 0) { in in_pcb_checkstate()
2933 __func__, pcb, pcb->inp_socket); in in_pcb_checkstate()
2937 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
2975 socket_lock(pcb->inp_socket, 1); in in_pcb_checkstate()
2988 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
2998 if (pcb->inp_socket->so_usecount < 0) { in in_pcb_checkstate()
3000 __func__, pcb, pcb->inp_socket); in in_pcb_checkstate()
3005 socket_unlock(pcb->inp_socket, 1); in in_pcb_checkstate()
3011 pcb->inp_socket, mode); in in_pcb_checkstate()
3102 socket_lock_assert_owned(inp->inp_socket); in inp_route_copyout()
3120 socket_lock_assert_owned(inp->inp_socket); in inp_route_copyin()
3194 struct socket *so = inp->inp_socket; in inp_clear_nocellular()
3355 (uint8_t)SOCK_PROTO(inp->inp_socket); in inp_calc_flowhash()
3489 struct socket *so = inp->inp_socket; in inp_fc_feedback()
3525 struct socket *so = inp->inp_socket; in inp_reset_fc_state()
3573 soevent(inp->inp_socket, in inp_set_fc_state()
3577 inp->inp_socket->so_flags |= SOF_SUSPENDED; in inp_set_fc_state()
3581 if (!is_flow_controlled && SOCK_TYPE(inp->inp_socket) == SOCK_STREAM) { in inp_set_fc_state()
3642 struct socket *so = inp->inp_socket; in inp_get_soprocinfo()
3681 inp->inp_socket != NULL && in inp_findinpcb_procinfo()
3697 struct socket *so = inp->inp_socket; in inp_update_cellular_policy()
3742 struct socket *so = inp->inp_socket; in inp_update_necp_want_app_policy()
3802 struct socket *so = inp->inp_socket; in inp_update_policy()
4039 struct socket *so = inp->inp_socket; in inp_count_sndbytes()