Home
last modified time | relevance | path

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

/xnu-12377.41.6/bsd/netinet/
H A Din_pcb.c636 if (inp->inp_flags2 & INP2_MANAGEMENT_CHECKED) { in in_pcb_check_management_entitled()
641 inp->inp_flags2 |= INP2_MANAGEMENT_ALLOWED; in in_pcb_check_management_entitled()
642 inp->inp_flags2 |= INP2_MANAGEMENT_CHECKED; in in_pcb_check_management_entitled()
644 inp->inp_flags2 |= INP2_MANAGEMENT_CHECKED; in in_pcb_check_management_entitled()
655 inp->inp_flags2 |= INP2_MANAGEMENT_ALLOWED; in in_pcb_check_management_entitled()
673 if (inp->inp_flags2 & INP2_ULTRA_CONSTRAINED_CHECKED) { in in_pcb_check_ultra_constrained_entitled()
678 inp->inp_flags2 |= INP2_ULTRA_CONSTRAINED_CHECKED; in in_pcb_check_ultra_constrained_entitled()
680 inp->inp_flags2 |= INP2_ULTRA_CONSTRAINED_ALLOWED; in in_pcb_check_ultra_constrained_entitled()
736 inp->inp_flags2 |= INP2_INTCOPROC_ALLOWED; in in_pcballoc()
844 ASSERT((inp->inp_flags2 & INP2_BIND_IN_PROGRESS) != 0); in in_pcbbind()
[all …]
H A Dudp_log.c217 inp->inp_flags2 &= ~INP2_LOGGED_SUMMARY; in udp_log_common()
218 inp->inp_flags2 |= INP2_LOGGING_ENABLED; in udp_log_common()
316 if ((inp->inp_flags2 & INP2_LOGGING_ENABLED) == 0) { in udp_log_connection_summary()
320 if (inp->inp_flags2 & INP2_LOGGED_SUMMARY) { in udp_log_connection_summary()
323 inp->inp_flags2 |= INP2_LOGGED_SUMMARY; in udp_log_connection_summary()
324 inp->inp_flags2 &= ~INP2_LOGGING_ENABLED; in udp_log_connection_summary()
540 if ((inp->inp_flags2 & INP2_LOGGED_SUMMARY) && ((so->so_state & SS_NOFDREF) || in udp_log_drop_pcb()
H A Din_pcb.h177 uint32_t inp_flags2; /* generic IP/datagram flags #2 */ member
568 u_int32_t inp_flags2; member
609 #define in6p_flags2 inp_flags2
766 (((_inp)->inp_flags2 & INP2_NO_IFF_EXPENSIVE) ? true : false)
768 (((_inp)->inp_flags2 & INP2_NO_IFF_CONSTRAINED) ? true : false)
770 (((_inp)->inp_flags2 & INP2_AWDL_UNRESTRICTED) ? true : false)
772 (((_inp)->inp_flags2 & INP2_INTCOPROC_ALLOWED) ? true : false)
775 (((_inp)->inp_flags2 & (INP2_MANAGEMENT_ALLOWED | INP2_INTCOPROC_ALLOWED)) ? true : false)
777 (((_inp)->inp_flags2 & INP2_ULTRA_CONSTRAINED_ALLOWED) ? true : false)
H A Dtcp_log.c398 inp->inp_flags2 |= INP2_LOGGING_ENABLED; in tcp_log_connection()
482 inp->inp_flags2 |= INP2_LOGGING_ENABLED; in tcp_log_listen()
593 if (inp->inp_flags2 & INP2_LOGGED_SUMMARY) { in tcp_log_connection_summary()
596 inp->inp_flags2 |= INP2_LOGGED_SUMMARY; in tcp_log_connection_summary()
597 inp->inp_flags2 &= ~INP2_LOGGING_ENABLED; in tcp_log_connection_summary()
781 if ((inp->inp_flags2 & INP2_LOGGED_SUMMARY) && ((so->so_state & SS_NOFDREF) || in tcp_log_drop_pcb()
H A Dudp_log.h114 #define UDP_LOG_CONNECTION_SUMMARY(inp) if ((inp) != NULL && ((inp)->inp_flags2 & INP2_LOGGING_ENAB…
H A Din_pcblist.c228 xinp->inp_flags2 = inp->inp_flags2; in inpcb_to_xinpcb_n()
548 (inp->inp_flags2 & INP2_CLAT46_FLOW) != 0) { in inpcb_get_if_ports_used()
559 (inp->inp_flags2 & INP2_CLAT46_FLOW) == 0) { in inpcb_get_if_ports_used()
H A Dudp_usrreq.c1172 inp->inp_flags2 &= ~INP2_KEEPALIVE_OFFLOAD; in udp_ctloutput()
1204 inp->inp_flags2 |= INP2_KEEPALIVE_OFFLOAD; in udp_ctloutput()
1934 if (inp->inp_flags2 & INP2_DONTFRAG) { in udp_output()
1960 if ((inp->inp_flags2 & INP2_CLAT46_FLOW) || in udp_output()
2164 inp->inp_flags2 |= INP2_LAST_ROUTE_LOCAL; in udp_output()
2166 inp->inp_flags2 &= ~INP2_LAST_ROUTE_LOCAL; in udp_output()
2368 (inp->inp_flags2 & INP2_CONNECT_IN_PROGRESS) && in udp_bind()
2462 ASSERT(!(inp->inp_flags2 & INP2_CONNECT_IN_PROGRESS)); in udp_connectx_common()
2463 inp->inp_flags2 |= INP2_CONNECT_IN_PROGRESS; in udp_connectx_common()
2533 inp->inp_flags2 &= ~INP2_CONNECT_IN_PROGRESS; in udp_connectx_common()
[all …]
H A Dtcp_usrreq.c286 if ((inp->inp_flags2 & INP2_CONNECT_IN_PROGRESS) && in tcp_usr_bind()
701 ASSERT(!(inp->inp_flags2 & INP2_CONNECT_IN_PROGRESS)); in tcp_usr_connectx_common()
702 inp->inp_flags2 |= INP2_CONNECT_IN_PROGRESS; in tcp_usr_connectx_common()
779 inp->inp_flags2 &= ~INP2_CONNECT_IN_PROGRESS; in tcp_usr_connectx_common()
2200 if ((inp->inp_flags2 & INP2_KEEPALIVE_OFFLOAD) == 0) { in tcp_clear_keep_alive_offload()
2218 inp->inp_flags2 &= ~INP2_KEEPALIVE_OFFLOAD; in tcp_clear_keep_alive_offload()
2234 if ((inp->inp_flags2 & INP2_KEEPALIVE_OFFLOAD) != 0) { in tcp_set_keep_alive_offload()
2258 inp->inp_flags2 |= INP2_KEEPALIVE_OFFLOAD; in tcp_set_keep_alive_offload()
2857 optval = !!(inp->inp_flags2 & INP2_KEEPALIVE_OFFLOAD); in tcp_ctloutput()
H A Dtcp_log.h187 return (inp->inp_flags2 & INP2_LOGGING_ENABLED) ? true: false; in tcp_log_summary_needed()
H A Dtcp_timer.c553 if (!(inp->inp_flags2 & INP2_TIMEWAIT)) { in add_to_time_wait_locked()
555 inp->inp_flags2 |= INP2_TIMEWAIT; in add_to_time_wait_locked()
620 if (inp->inp_flags2 & INP2_TIMEWAIT) { in tcp_remove_from_time_wait()
2456 if (tp->t_inpcb->inp_flags2 & INP2_TIMEWAIT) { in tcp_check_timer_state()
H A Dip_output.c2442 inp->inp_flags2 |= bit; \ in ip_ctloutput()
2444 inp->inp_flags2 &= ~bit; \ in ip_ctloutput()
2708 #define OPTBIT2(bit) (inp->inp_flags2 & bit ? 1 : 0) in ip_ctloutput()
H A Dtcp_input.c2269 head_external_port = (oinp->inp_flags2 & INP2_EXTERNAL_PORT); in tcp_create_server_socket()
2426 inp->inp_flags2 |= INP2_EXTERNAL_PORT; in tcp_create_server_socket()
2516 tp->t_inpcb->inp_flags2 |= in tcp_create_server_socket()
2517 otp->t_inpcb->inp_flags2 & INP2_KEEPALIVE_OFFLOAD; in tcp_create_server_socket()
2566 inp->inp_flags2 &= ~INP2_LOGGING_ENABLED; in tcp_setup_server_socket()
2568 if (__improbable(inp->inp_flags2 & INP2_BIND_IN_PROGRESS)) { in tcp_setup_server_socket()
2741 if (inp->inp_flags2 & INP2_CONNECTION_IDLE) { in tcp_input_process_wake_packet()
H A Draw_ip.c540 if (inp->inp_flags2 & INP2_DONTFRAG) { in rip_output()
H A Dtcp_subr.c1980 !(inp->inp_flags2 & INP2_TIMEWAIT)) { in tcp_close()
5022 if (!(inp->inp_flags2 & INP2_KEEPALIVE_OFFLOAD)) { in tcp_fill_keepalive_offload_frames()
5222 if (!(inp->inp_flags2 & INP2_KEEPALIVE_OFFLOAD)) { in tcp_notify_kao_timeout()
H A Dip_input.c3548 if (inp->inp_flags2 & INP2_RECV_LINK_ADDR_TYPE) { in ip_savecontrol()
/xnu-12377.41.6/bsd/netinet6/
H A Din6_pcb.c202 ASSERT((inp->inp_flags2 & INP2_BIND_IN_PROGRESS) != 0); in in6_pcbbind()
316 if (inp->inp_flags2 & INP2_EXTERNAL_PORT) { in in6_pcbbind()
374 !(inp->inp_flags2 & INP2_EXTERNAL_PORT)) { in in6_pcbbind()
409 (!(t->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
410 !(inp->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
431 (!(t->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
432 !(inp->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
445 !(inp->inp_flags2 & INP2_EXTERNAL_PORT)) { in in6_pcbbind()
464 (!(t->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
465 !(inp->inp_flags2 & INP2_EXTERNAL_PORT) || in in6_pcbbind()
[all …]
H A Din6_src.c1670 VERIFY(inp->inp_flags2 & INP2_INHASHLIST); in in6_pcbsetport()
1785 !(inp->inp_flags2 & INP2_EXTERNAL_PORT)) { in in6_pcbsetport()
H A Dip6_output.c2535 in6p->inp_flags2 |= (bit); \ in ip6_ctloutput()
2537 in6p->inp_flags2 &= ~(bit); \ in ip6_ctloutput()
2550 #define OPTBIT2(bit) (in6p->inp_flags2 & (bit) ? 1 : 0) in ip6_ctloutput()
H A Dip6_input.c1945 if (inp->inp_flags2 & INP2_RECV_LINK_ADDR_TYPE) { in ip6_savecontrol_v4()
/xnu-12377.41.6/tools/lldbmacros/
H A Dnet.py1500 if (pcb.inp_flags2 & INP2_TIMEWAIT):
1502 if (pcb.inp_flags2 & INP2_IN_FCTREE):
1504 if (pcb.inp_flags2 & INP2_WANT_APP_POLICY):
/xnu-12377.41.6/bsd/kern/
H A Duipc_socket.c5426 inp->inp_flags2 |= INP2_EXTERNAL_PORT; in sosetoptlock()
5729 sotoinpcb(so)->inp_flags2 |= INP2_CONNECTION_IDLE; in sosetoptlock()
5731 sotoinpcb(so)->inp_flags2 &= ~INP2_CONNECTION_IDLE; in sosetoptlock()
6144 if (sotoinpcb(so)->inp_flags2 & INP2_EXTERNAL_PORT) { in sogetoptlock()
6268 optval = sotoinpcb(so)->inp_flags2 & INP2_CONNECTION_IDLE ? in sogetoptlock()
/xnu-12377.41.6/bsd/net/
H A Dif_ports_used.c946 if (inp->inp_flags2 & INP2_CONNECTION_IDLE) { in if_ports_used_add_inpcb()
H A Dnecp.c9826 …if (inp->inp_flags2 & INP2_WANT_APP_POLICY && necp_kernel_socket_policies_condition_mask & NECP_KE… in necp_socket_fillout_info_locked()
10088 inp->inp_flags2 & INP2_EXTERNAL_PORT) { in necp_socket_fillout_info_locked()
10551 …ult.results.result == NECP_KERNEL_POLICY_RESULT_SOCKET_SCOPED && (inp->inp_flags2 & INP2_SCOPED_BY… in necp_unscope()
10639 … (!(inp->inp_flags2 & INP2_WANT_APP_POLICY) && necp_kernel_socket_policies_non_app_count == 0))) { in necp_socket_find_policy_match()
12925 … (!(inp->inp_flags2 & INP2_WANT_APP_POLICY) && necp_kernel_socket_policies_non_app_count == 0))) { in necp_socket_is_allowed_to_send_recv_internal()
H A Dntstat.c1016 if (inp != NULL && (inp->inp_flags2 & INP2_LAST_ROUTE_LOCAL)) { in nstat_update_local_flag_from_inpcb_route()
H A Dnecp_client.c4180 !(inp->inp_flags2 & INP2_EXTERNAL_PORT) || in necp_socket_is_allowed_to_recv_on_interface()