| /xnu-8796.141.3/bsd/netinet/ |
| H A D | in_pcb.h | 110 LIST_HEAD(inpcbhead, inpcb); 155 struct inpcb { struct 157 LIST_ENTRY(inpcb) inp_hash; /* hash list */ 158 LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */ 162 LIST_ENTRY(inpcb) inp_portlist; /* list for this PCB's local port */ argument 163 RB_ENTRY(inpcb) infc_link; /* link for flowhash RB tree */ 315 struct inpcb { 317 _INPCB_LIST_ENTRY(inpcb) inp_hash; /* hash list */ 322 _INPCB_LIST_ENTRY(inpcb) inp_list; /* list for all peer PCBs */ 328 _INPCB_LIST_ENTRY(inpcb) inp_portlist; /* this PCB's local port list */ [all …]
|
| H A D | in_pcb.c | 158 static void inp_update_cellular_policy(struct inpcb *, boolean_t); 160 static void inp_update_necp_want_app_policy(struct inpcb *, boolean_t); 302 static int infc_cmp(const struct inpcb *, const struct inpcb *); 307 static struct inpcb *inp_fc_getinp(u_int32_t, u_int32_t); 309 static void inp_fc_feedback(struct inpcb *); 310 extern void tcp_remove_from_time_wait(struct inpcb *inp); 314 RB_HEAD(inp_fc_tree, inpcb) inp_fc_tree; 315 RB_PROTOTYPE(inp_fc_tree, inpcb, infc_link, infc_cmp); 316 RB_GENERATE(inp_fc_tree, inpcb, infc_link, infc_cmp); 322 struct inpcb key_inp; [all …]
|
| H A D | raw_ip.c | 132 static KALLOC_TYPE_DEFINE(ripzone, struct inpcb, NET_KT_DEFAULT); 200 struct inpcb *inp; in rip_input() 201 struct inpcb *last = 0; in rip_input() 364 struct inpcb *inp = sotoinpcb(so); in rip_output() 724 struct inpcb *inp = sotoinpcb(so); in rip_ctloutput() 940 struct inpcb *inp; in rip_attach() 962 inp = (struct inpcb *)so->so_pcb; in rip_attach() 973 struct inpcb *inp; in rip_detach() 1003 struct inpcb *inp = sotoinpcb(so); in rip_bind() 1053 struct inpcb *inp = sotoinpcb(so); in rip_connect() [all …]
|
| H A D | tcp_usrreq.c | 173 struct inpcb *inp = sotoinpcb(so); in tcp_usr_attach() 208 struct inpcb *inp = sotoinpcb(so); in tcp_usr_detach() 275 struct inpcb *inp = sotoinpcb(so); in tcp_usr_bind() 319 struct inpcb *inp = sotoinpcb(so); in tcp6_usr_bind() 391 struct inpcb *inp = sotoinpcb(so); in tcp_usr_listen() 410 struct inpcb *inp = sotoinpcb(so); in tcp6_usr_listen() 433 struct inpcb *inp = sotoinpcb(so); in tcp_connect_complete() 496 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connect_common() 600 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connect() 653 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connectx_common() [all …]
|
| H A D | udp_usrreq.c | 154 static KALLOC_TYPE_DEFINE(inpcbzone, struct inpcb, NET_KT_DEFAULT); 206 static void udp_append(struct inpcb *, struct ip *, struct mbuf *, int, 209 int udp_output(struct inpcb *, struct mbuf *, struct sockaddr *, 280 struct inpcb *inp; in udp_input() 806 udp_append(struct inpcb *last, struct ip *ip, struct mbuf *n, int off, in udp_append() 876 udp_notify(struct inpcb *inp, int errno) in udp_notify() 889 void (*notify)(struct inpcb *, int) = udp_notify; in udp_ctlinput() 891 struct inpcb *inp = NULL; in udp_ctlinput() 986 struct inpcb *inp; in udp_ctloutput() 1133 struct inpcb *inp, **inp_list; [all …]
|
| H A D | tcp_log.c | 192 tcp_log_inp_addresses(struct inpcb *inp, char *lbuf, socklen_t lbuflen, char *fbuf, socklen_t fbufl… in tcp_log_inp_addresses() 233 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_info() 267 struct inpcb *inp = tp->t_inpcb; in tcp_log_rt_rtt() 311 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_change() 348 struct inpcb *inp = tp->t_inpcb; in tcp_log_keepalive() 389 struct inpcb *inp; in tcp_log_connection() 469 struct inpcb *inp = tp->t_inpcb; in tcp_log_listen() 521 struct inpcb *inp; in tcp_log_connection_summary() 691 struct inpcb *inp = tp->t_inpcb; in tcp_log_drop_pcb() 809 struct inpcb *inp = tp->t_inpcb; in tcp_log_th_flags() [all …]
|
| H A D | in_pcblist.c | 104 static void inpcb_to_xinpcb_n(struct inpcb *, struct xinpcb_n *); 204 inpcb_to_xinpcb_n(struct inpcb *inp, struct xinpcb_n *xinp) in inpcb_to_xinpcb_n() 294 struct inpcb *inp, **inp_list = NULL; in get_pcblist_n() 374 inp_list = kalloc_type(struct inpcb *, n, Z_WAITOK); in get_pcblist_n() 474 kfree_type(struct inpcb *, sz, inp_list); in get_pcblist_n() 485 struct inpcb *inp; in inpcb_get_if_ports_used() 705 struct inpcb *inp; in inpcb_count_opportunistic() 753 struct inpcb *inp; in inpcb_find_anypcb_byaddr() 812 struct inpcb *inp; in shutdown_sockets_on_interface_proc_callout() 825 inp = (struct inpcb *)so->so_pcb; in shutdown_sockets_on_interface_proc_callout() [all …]
|
| H A D | tcp_subr.c | 253 static void tcp_notify(struct inpcb *, int); 293 struct inpcb inp; 316 tcp_tfo_gen_cookie(struct inpcb *inp, u_char *out, size_t blk_size) in tcp_tfo_gen_cookie() 398 return sizeof(struct inpcb); in get_inpcb_str_size() 645 struct inpcb *inp = tp->t_inpcb; in tcp_fillheaders() 980 struct inpcb *inp = tp->t_inpcb; in tcp_respond() 1051 struct inpcb *inp = tp->t_inpcb; in tcp_respond() 1085 tcp_newtcpcb(struct inpcb *inp) in tcp_newtcpcb() 1206 struct inpcb *inp = tp->t_inpcb; in tcp_drop() 1210 DTRACE_TCP4(state__change, void, NULL, struct inpcb *, inp, in tcp_drop() [all …]
|
| H A D | in_var.h | 470 struct inpcb; 497 extern int imo_clone(struct inpcb *, struct inpcb *); 528 extern int inp_join_group(struct inpcb *, struct sockopt *); 529 extern int inp_leave_group(struct inpcb *, struct sockopt *);
|
| H A D | ip_var.h | 308 struct inpcb; 355 extern int inp_getmoptions(struct inpcb *, struct sockopt *); 356 extern int inp_setmoptions(struct inpcb *, struct sockopt *); 374 extern int ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
|
| H A D | tcp_ccdbg.c | 87 struct inpcb *inp = tp->t_inpcb; in tcp_ccdbg_trace() 145 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp, in tcp_ccdbg_trace()
|
| H A D | in_mcast.c | 137 inp_findmoptions(struct inpcb *); 138 static int inp_get_source_filters(struct inpcb *, struct sockopt *); 140 inp_lookup_mcast_ifp(const struct inpcb *, 142 static int inp_block_unblock_source(struct inpcb *, struct sockopt *); 143 static int inp_set_multicast_if(struct inpcb *, struct sockopt *); 144 static int inp_set_source_filters(struct inpcb *, struct sockopt *); 466 imo_clone(struct inpcb *from_inp, struct inpcb *to_inp) in imo_clone() 1466 inp_block_unblock_source(struct inpcb *inp, struct sockopt *sopt) in inp_block_unblock_source() 1682 inp_findmoptions(struct inpcb *inp) in inp_findmoptions() 1728 inp_get_source_filters(struct inpcb *inp, struct sockopt *sopt) in inp_get_source_filters() [all …]
|
| /xnu-8796.141.3/bsd/netinet6/ |
| H A D | in6_pcb.h | 98 extern void in6_losing(struct inpcb *); 99 extern int in6_pcbbind(struct inpcb *, struct sockaddr *, struct proc *); 100 extern int in6_pcbconnect(struct inpcb *, struct sockaddr *, struct proc *); 101 extern void in6_pcbdetach(struct inpcb *); 102 extern void in6_pcbdisconnect(struct inpcb *); 103 extern int in6_pcbladdr(struct inpcb *, struct sockaddr *, 105 extern struct inpcb *in6_pcblookup_local(struct inpcbinfo *, struct in6_addr *, 107 extern struct inpcb *in6_pcblookup_hash(struct inpcbinfo *, struct in6_addr *, 112 const struct sockaddr *, u_int, int, void *, void (*)(struct inpcb *, int)); 113 extern void in6_rtchange(struct inpcb *, int); [all …]
|
| H A D | ipsec6.h | 63 struct inpcb; 66 extern int ipsec6_delete_pcbpolicy(struct inpcb *); 67 extern int ipsec6_set_policy(struct inpcb *inp, int optname, 69 extern int ipsec6_in_reject(struct mbuf *, struct inpcb *); 73 extern size_t ipsec6_hdrsiz(struct mbuf *, u_int8_t, struct inpcb *);
|
| H A D | in6_pcb.c | 152 static struct inpcb * 156 struct inpcb *inp; in in6_pcblookup_local_and_cleanup() 186 in6_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct proc *p) in in6_pcbbind() 352 struct inpcb *t; in in6_pcbbind() 594 in6_pcbladdr(struct inpcb *inp, struct sockaddr *nam, in in6_pcbladdr() 694 in6_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct proc *p) in in6_pcbconnect() 698 struct inpcb *pcb; in in6_pcbconnect() 797 in6_pcbdisconnect(struct inpcb *inp) in in6_pcbdisconnect() 833 in6_pcbdetach(struct inpcb *inp) in in6_pcbdetach() 971 struct inpcb *inp; in in6_getsockaddr() [all …]
|
| H A D | ipsec.h | 380 struct inpcb; 385 extern int ipsec4_set_policy(struct inpcb *inp, int optname, 387 extern int ipsec4_delete_pcbpolicy(struct inpcb *); 389 extern int ipsec4_in_reject(struct mbuf *, struct inpcb *); 396 extern size_t ipsec4_hdrsiz(struct mbuf *, u_int8_t, struct inpcb *);
|
| H A D | udp6_usrreq.c | 173 static void udp6_append(struct inpcb *, struct ip6_hdr *, 202 udp6_append(struct inpcb *last, struct ip6_hdr *ip6, in udp6_append() 245 struct inpcb *in6p; in udp6_input() 675 void (*notify)(struct inpcb *, int) = udp_notify; in udp6_ctlinput() 676 struct inpcb *in6p; in udp6_ctlinput() 780 struct inpcb *inp; in udp6_abort() 796 struct inpcb *inp; in udp6_attach() 816 inp = (struct inpcb *)so->so_pcb; in udp6_attach() 839 struct inpcb *inp; in udp6_bind() 885 struct inpcb *inp; in udp6_connect() [all …]
|
| H A D | ip6_var.h | 511 struct inpcb; 554 extern struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *, 556 extern int ip6_savecontrol(struct inpcb *, struct mbuf *, struct mbuf **); 558 extern void ip6_notify_pmtu(struct inpcb *, struct sockaddr_in6 *, u_int32_t *); 572 extern int ip6_optlen(struct inpcb *); 600 struct ip6_pktopts *, struct inpcb *, struct route_in6 *,
|
| H A D | raw_ip6.c | 157 struct inpcb *in6p; in rip6_input() 158 struct inpcb *last = 0; in rip6_input() 317 void (*notify)(struct inpcb *, int) = in6_rtchange; in rip6_ctlinput() 369 struct inpcb *in6p; in rip6_output() 984 struct inpcb *inp; in rip6_attach() 1003 inp = (struct inpcb *)so->so_pcb; in rip6_attach() 1017 struct inpcb *inp; in rip6_detach() 1042 struct inpcb *inp = sotoinpcb(so); in rip6_disconnect() 1056 struct inpcb *inp = sotoinpcb(so); in rip6_bind() 1120 struct inpcb *inp = sotoinpcb(so); in rip6_connect() [all …]
|
| H A D | tcp6_var.h | 111 struct rtentry *tcp_rtlookup6(struct inpcb *, unsigned int);
|
| H A D | udp6_var.h | 103 extern int udp6_output(struct inpcb *, struct mbuf *, struct sockaddr *,
|
| H A D | in6_mcast.c | 127 in6p_findmoptions(struct inpcb *); 128 static int in6p_get_source_filters(struct inpcb *, struct sockopt *); 130 static int in6p_join_group(struct inpcb *, struct sockopt *); 131 static int in6p_leave_group(struct inpcb *, struct sockopt *); 133 in6p_lookup_mcast_ifp(const struct inpcb *, 135 static int in6p_block_unblock_source(struct inpcb *, struct sockopt *); 136 static int in6p_set_multicast_if(struct inpcb *, struct sockopt *); 137 static int in6p_set_source_filters(struct inpcb *, struct sockopt *); 1392 in6p_block_unblock_source(struct inpcb *inp, struct sockopt *sopt) in in6p_block_unblock_source() 1575 in6p_findmoptions(struct inpcb *inp) in in6p_findmoptions() [all …]
|
| /xnu-8796.141.3/bsd/net/ |
| H A D | necp.h | 1325 extern int necp_set_socket_resolver_signature(struct inpcb *inp, struct sockopt *sopt); 1326 extern int necp_get_socket_resolver_signature(struct inpcb *inp, struct sockopt *sopt); 1327 extern bool necp_socket_has_resolver_signature(struct inpcb *inp); 1328 extern bool necp_socket_resolver_signature_matches_address(struct inpcb *inp, union necp_sockaddr_u… 1329 extern void necp_inpcb_remove_cb(struct inpcb *inp); 1330 extern void necp_inpcb_dispose(struct inpcb *inp); 1334 extern bool necp_socket_should_use_flow_divert(struct inpcb *inp); 1335 extern u_int32_t necp_socket_get_flow_divert_control_unit(struct inpcb *inp, uint32_t *aggregate_un… 1337 extern bool necp_socket_should_rescope(struct inpcb *inp); 1338 extern u_int necp_socket_get_rescope_if_index(struct inpcb *inp); [all …]
|
| H A D | kext_net.h | 50 struct inpcb; 53 extern int sflt_permission_check(struct inpcb *inp);
|
| H A D | if_ports_used.h | 221 struct inpcb; 222 bool if_ports_used_add_inpcb(const uint32_t ifindex, const struct inpcb *inp);
|