Home
last modified time | relevance | path

Searched refs:inp_socket (Results 1 – 25 of 41) sorted by relevance

12

/xnu-11215/bsd/netinet6/
H A Din6_pcb.c165 struct socket *so = inp->inp_socket; in in6_pcblookup_local_and_cleanup()
699 soevent(inp->inp_socket, in in6_pcbladdr()
732 struct socket *so = inp->inp_socket; in in6_pcbconnect()
1186 socket_lock(inp->inp_socket, 1); in in6_pcbnotify()
1189 socket_unlock(inp->inp_socket, 1); in in6_pcbnotify()
1201 inp->inp_socket != NULL && in in6_pcbnotify()
1219 socket_lock(inp->inp_socket, 1); in in6_pcbnotify()
1418 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()
1420 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()
1454 inp->inp_socket->so_cred); in in6_pcblookup_hash_exists()
[all …]
H A Dudp6_output.c612 in6p->inp_socket->so_flags1 |= SOF1_QOSMARKING_ALLOWED; in udp6_output()
614 in6p->inp_socket->so_flags1 &= ~SOF1_QOSMARKING_ALLOWED; in udp6_output()
726 soevent(in6p->inp_socket, (SO_FILT_HINT_LOCKED | in udp6_output()
H A Dip6_input.c1808 if ((inp->inp_socket->so_options & SO_TIMESTAMP) != 0) { in ip6_savecontrol_v4()
1818 if ((inp->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) { in ip6_savecontrol_v4()
1828 if ((inp->inp_socket->so_options & SO_TIMESTAMP_CONTINUOUS) != 0) { in ip6_savecontrol_v4()
1838 if ((inp->inp_socket->so_flags & SOF_RECV_TRAFFIC_CLASS) != 0) { in ip6_savecontrol_v4()
1848 if ((inp->inp_socket->so_flags & SOF_RECV_WAKE_PKT) && in ip6_savecontrol_v4()
1878 if ((inp->inp_flags & IN6P_PKTINFO) != 0 || SOFLOW_ENABLED(inp->inp_socket)) { in ip6_savecontrol_v4()
1899 if ((inp->inp_flags & IN6P_PKTINFO) != 0 || SOFLOW_ENABLED(inp->inp_socket)) { in ip6_savecontrol_v4()
2108 so = in6p->inp_socket; in ip6_notify_pmtu()
H A Din6_mcast.c1847 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in ip6_getmoptions()
1848 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in ip6_getmoptions()
1849 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in ip6_getmoptions()
2988 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in ip6_setmoptions()
2989 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in ip6_setmoptions()
2990 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in ip6_setmoptions()
/xnu-11215/bsd/netinet/
H A Dtcp_ccdbg.c98 inet_ntop(SOCK_DOM(inp->inp_socket), in tcp_ccdbg_trace()
99 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace()
104 inet_ntop(SOCK_DOM(inp->inp_socket), in tcp_ccdbg_trace()
105 ((SOCK_DOM(inp->inp_socket) == PF_INET) ? in tcp_ccdbg_trace()
119 dbg_state.ccd_sndcc = inp->inp_socket->so_snd.sb_cc; in tcp_ccdbg_trace()
120 dbg_state.ccd_sndhiwat = inp->inp_socket->so_snd.sb_hiwat; in tcp_ccdbg_trace()
H A Din_pcblist.c420 sotoxsocket_n(inp->inp_socket, xso); in get_pcblist_n()
421 sbtoxsockbuf_n(inp->inp_socket ? in get_pcblist_n()
423 sbtoxsockbuf_n(inp->inp_socket ? in get_pcblist_n()
783 inp->inp_socket != NULL && in inpcb_count_opportunistic()
788 struct socket *so = inp->inp_socket; in inpcb_count_opportunistic()
837 inp->inp_socket != NULL) { in inpcb_find_anypcb_byaddr()
838 so = inp->inp_socket; in inpcb_find_anypcb_byaddr()
959 inp->inp_socket != NULL) { in inp_limit_companion_link()
960 so = inp->inp_socket; in inp_limit_companion_link()
989 inp->inp_socket != NULL) { in inp_recover_companion_link()
[all …]
H A Dudp_usrreq.c432 if (inp->inp_socket == NULL) { in udp_input()
465 udp_lock(inp->inp_socket, 1, 0); in udp_input()
720 udp_lock(inp->inp_socket, 1, 0); in udp_input()
804 sorwakeup(inp->inp_socket); in udp_input()
898 sorwakeup(last->inp_socket); in udp_append()
914 sorwakeup(inp->inp_socket); in udp_notify()
915 sowwakeup(inp->inp_socket); in udp_notify()
1252 udp_lock(inp->inp_socket, 1, 0);
1266 if (inp->inp_socket) {
1389 if (inp->inp_socket) {
[all …]
H A Din_pcb.c607 if (inp->inp_socket != NULL) { in inp_snprintf_tuple()
715 inp->inp_socket = so; in in_pcballoc()
2170 inp->inp_socket = NULL; in in_pcbdispose()
2277 inp->inp_socket == NULL) { in in_pcbnotifyall()
2518 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2520 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2556 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2558 inp->inp_socket->so_cred); in in_pcblookup_hash_exists()
2563 if (inp->inp_socket && in in_pcblookup_hash_exists()
3089 pcb->inp_socket, mode); in in_pcb_checkstate()
[all …]
H A Dudp_log.c208 struct socket *so = inp->inp_socket; in udp_log_common()
219 so = inp->inp_socket; in udp_log_common()
260 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_bind()
283 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_connect()
312 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_connection_summary()
332 so = inp->inp_socket; in udp_log_connection_summary()
408 if (inp == NULL || inp->inp_socket == NULL) { in udp_log_message()
421 so = inp->inp_socket; in udp_log_message()
H A Dtcp_log.c221 struct socket *so = inp->inp_socket; in tcp_log_rtt_info()
255 struct socket *so = inp->inp_socket; in tcp_log_rt_rtt()
336 struct socket *so = inp->inp_socket; in tcp_log_keepalive()
393 so = inp->inp_socket; in tcp_log_connection()
477 so = inp->inp_socket; in tcp_log_listen()
584 so = inp->inp_socket; in tcp_log_connection_summary()
771 so = inp->inp_socket; in tcp_log_drop_pcb()
1015 so = inp->inp_socket; in tcp_log_message()
1074 so = inp->inp_socket; in tcp_log_fsw_flow()
1135 so = inp->inp_socket; in tcp_log_state_change()
[all …]
H A Dtcp_cc.c84 sb = &tp->t_inpcb->inp_socket->so_snd; in tcp_cc_resize_sndbuf()
98 sb = &tp->t_inpcb->inp_socket->so_snd; in tcp_bad_rexmt_fix_sndbuf()
198 tp->t_inpcb->inp_socket->so_rcv.sb_cc > tp->t_inpcb->inp_socket->so_rcv.sb_lowat && in tcp_cc_delay_ack()
262 struct socket *so = tp->t_inpcb->inp_socket; in tcp_cc_is_cwnd_nonvalidated()
H A Dtcp_subr.c1334 so = inp->inp_socket; in tcp_create_ifnet_stats_per_flow()
2050 if (inp->inp_socket) {
2232 if (inp->inp_socket) {
2233 sotoxsocket64(inp->inp_socket,
2512 inp->inp_socket == NULL) { in tcp_ctlinput()
2674 inp->inp_socket == NULL) { in tcp6_ctlinput()
3063 somultipages(inp->inp_socket, in tcp_rtlookup()
3066 soif2kcl(inp->inp_socket, in tcp_rtlookup()
3171 somultipages(inp->inp_socket, in tcp_rtlookup6()
3174 soif2kcl(inp->inp_socket, in tcp_rtlookup6()
[all …]
H A Dtcp_timer.c608 socket_unlock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now()
610 socket_lock(tp->t_inpcb->inp_socket, 0); in add_to_time_wait_now()
635 so = inp->inp_socket; in tcp_garbage_collect()
1038 so = tp->t_inpcb->inp_socket; in tcp_timers()
2015 socket_lock(tp->t_inpcb->inp_socket, 1); in tcp_run_conn_timer()
2017 so = tp->t_inpcb->inp_socket; in tcp_run_conn_timer()
2206 socket_lock(tp->t_inpcb->inp_socket, 1); in tcp_run_timerlist()
2877 socket_lock(inp->inp_socket, 1); in tcp_probe_connectivity()
2882 socket_unlock(inp->inp_socket, 1); in tcp_probe_connectivity()
2892 socket_unlock(inp->inp_socket, 1); in tcp_probe_connectivity()
[all …]
H A Draw_ip.c219 SOFLOW_ENABLED(inp->inp_socket) || in rip_inp_input()
220 SO_RECV_CONTROL_OPTS(inp->inp_socket)) { in rip_inp_input()
232 && (!CFIL_DGRAM_FILTERED(inp->inp_socket)) in rip_inp_input()
239 so_recv_data_stat(inp->inp_socket, m, 0); in rip_inp_input()
240 if (sbappendaddr(&inp->inp_socket->so_rcv, in rip_inp_input()
243 sorwakeup(inp->inp_socket); in rip_inp_input()
702 inp->inp_socket == NULL || in rip_output()
1281 if (inp->inp_socket) {
1282 sotoxsocket(inp->inp_socket, &xi.xi_socket);
1388 if (inp->inp_socket) {
[all …]
H A Dtcp_usrreq.c1486 struct socket *so = inp->inp_socket; in tcp_connect()
1510 socket_unlock(inp->inp_socket, 0); in tcp_connect()
1516 socket_lock(inp->inp_socket, 0); in tcp_connect()
1519 socket_lock(oinp->inp_socket, 1); in tcp_connect()
1564 socket_unlock(inp->inp_socket, 0); in tcp_connect()
1566 socket_lock(inp->inp_socket, 0); in tcp_connect()
1619 struct socket *so = inp->inp_socket; in tcp6_connect()
1646 socket_unlock(inp->inp_socket, 0); in tcp6_connect()
1662 socket_lock(inp->inp_socket, 0); in tcp6_connect()
1687 socket_unlock(inp->inp_socket, 0); in tcp6_connect()
[all …]
H A Dmptcp_opt.c236 struct socket *so = tp->t_inpcb->inp_socket; in mptcp_send_infinite_mapping()
325 struct socket *so = inp->inp_socket; in mptcp_setup_opts()
1027 if (tp->t_inpcb->inp_socket != NULL) { \ in mptcp_do_mpjoin_opt()
1138 tp->t_inpcb->inp_socket->so_flags1 |= in mptcp_data_ack_rcvd()
1171 sowwakeup(tp->t_inpcb->inp_socket); in mptcp_update_window_wakeup()
1206 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat()
1208 mptcp_notify_close(tp->t_inpcb->inp_socket); in mptcp_do_dss_opt_ack_meat()
1507 if (tp->t_inpcb->inp_socket != NULL) { in mptcp_do_fastclose_opt()
1508 soevent(tp->t_inpcb->inp_socket, in mptcp_do_fastclose_opt()
1544 error = mptcp_get_map_for_dsn(tp->t_inpcb->inp_socket, in mptcp_do_mpfail_opt()
[all …]
H A Din_pcb.h170 struct socket *inp_socket; /* back pointer to socket */ member
362 _INPCB_PTR(void *) inp_socket; /* back pointer to socket */
558 #define in6p_socket inp_socket
688 ((_inp_)->inp_socket->so_flags & SOF_SUSPENDED)) ? true : false)
H A Dtcp_timer.h304 ((tp)->t_inpcb->inp_socket->so_options & SO_KEEPALIVE) ? \
H A Dmptcp.c1016 if (mptcp_subflow_cwnd_space(bestinp->inp_socket) <= 0) { in mptcp_get_subflow()
1133 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat()
1137 mptcp_notify_mpready(tp->t_inpcb->inp_socket); in mptcp_update_rcv_state_meat()
1207 mptcp_notify_mpfail(tp->t_inpcb->inp_socket); in mptcp_validate_csum()
H A Dtcp_output.c297 struct socket *__single so = tp->t_inpcb->inp_socket; in tcp_tfo_check()
405 struct socket *__single so = tp->t_inpcb->inp_socket; in tcp_tfo_write_cookie()
504 inbound = (tp->t_inpcb->inp_socket->so_head != NULL); in tcp_set_ecn()
710 struct socket *__single so = inp->inp_socket; in tcp_output()
3631 inp->inp_socket->so_flags1 |= SOF1_QOSMARKING_ALLOWED; in tcp_ip_output()
3633 inp->inp_socket->so_flags1 &= ~SOF1_QOSMARKING_ALLOWED; in tcp_ip_output()
3716 struct sockbuf *__single sbrcv = &tp->t_inpcb->inp_socket->so_rcv; in tcp_recv_throttle()
H A Din_mcast.c1921 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in inp_getmoptions()
1922 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in inp_getmoptions()
1923 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in inp_getmoptions()
3012 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_DIVERT || in inp_setmoptions()
3013 (SOCK_TYPE(inp->inp_socket) != SOCK_RAW && in inp_setmoptions()
3014 SOCK_TYPE(inp->inp_socket) != SOCK_DGRAM)) { in inp_setmoptions()
/xnu-11215/tools/lldbmacros/
H A Dntstat.py227 inp_socket = inpcb.inp_socket
228 sock = Cast(inp_socket, 'struct socket *')
/xnu-11215/bsd/net/
H A Dcontent_filter.c1667 so = inp->inp_socket; in cfil_socket_safe_lock()
1700 inp->inp_socket != NULL && in cfil_socket_from_sock_id()
1705 so = inp->inp_socket; in cfil_socket_from_sock_id()
1722 inp->inp_socket != NULL && in cfil_socket_from_sock_id()
1726 so = inp->inp_socket; in cfil_socket_from_sock_id()
1741 inp->inp_socket != NULL && in cfil_socket_from_sock_id()
1745 so = inp->inp_socket; in cfil_socket_from_sock_id()
1774 inp->inp_socket != NULL && in cfil_socket_from_client_uuid()
1778 so = inp->inp_socket; in cfil_socket_from_client_uuid()
1793 inp->inp_socket != NULL && in cfil_socket_from_client_uuid()
[all …]
H A Dntstat.c770 if (inp->inp_socket != NULL && in nstat_inpcb_to_flags()
1557 if (SOCK_PROTO(inp->inp_socket) == IPPROTO_UDP) { in nstat_tucookie_alloc_ref_internal()
1610 struct socket *so = inp->inp_socket; in nstat_inp_domain_info()
1646 struct socket *so = inp->inp_socket; in nstat_inp_bluetooth_counts()
1833 socket_lock(inp->inp_socket, 0); in nstat_tcp_new_pcb()
1852 socket_unlock(inp->inp_socket, 0); in nstat_tcp_new_pcb()
2066 struct socket *so = inp->inp_socket; in nstat_tcp_copy_descriptor()
2178 struct socket *so = inp->inp_socket; in nstat_tcpudp_reporting_allowed()
2394 socket_lock(inp->inp_socket, 0); in nstat_udp_new_pcb()
2413 socket_unlock(inp->inp_socket, 0); in nstat_udp_new_pcb()
[all …]
/xnu-11215/bsd/kern/
H A Dsocket_flows.c1276 so = inp->inp_socket; in soflow_socket_safe_lock()
1302 if (inp->inp_state != INPCB_STATE_DEAD && inp->inp_socket == so) { in soflow_validate_dgram_socket()
1304 locked = inp->inp_socket; in soflow_validate_dgram_socket()
1318 if (inp->inp_state != INPCB_STATE_DEAD && inp->inp_socket == so) { in soflow_validate_dgram_socket()
1320 locked = inp->inp_socket; in soflow_validate_dgram_socket()

12