| /xnu-12377.41.6/bsd/netinet/ |
| H A D | in_pcb.h | 112 LIST_HEAD(inpcbhead, inpcb); 160 struct inpcb { struct 162 LIST_ENTRY(inpcb) inp_hash; /* hash list */ 163 LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */ 167 LIST_ENTRY(inpcb) inp_portlist; /* list for this PCB's local port */ argument 168 RB_ENTRY(inpcb) infc_link; /* link for flowhash RB tree */ 404 struct inpcb { 406 _INPCB_LIST_ENTRY(inpcb) inp_hash; /* hash list */ 411 _INPCB_LIST_ENTRY(inpcb) inp_list; /* list for all peer PCBs */ 417 _INPCB_LIST_ENTRY(inpcb) inp_portlist; /* this PCB's local port list */ [all …]
|
| H A D | in_pcb.c | 166 static void inp_update_cellular_policy(struct inpcb *, boolean_t); 168 static void inp_update_necp_want_app_policy(struct inpcb *, boolean_t); 310 static int infc_cmp(const struct inpcb *, const struct inpcb *); 315 static struct inpcb *inp_fc_getinp(u_int32_t, u_int32_t); 317 static void inp_fc_feedback(struct inpcb *); 318 extern void tcp_remove_from_time_wait(struct inpcb *inp); 322 RB_HEAD(inp_fc_tree, inpcb) inp_fc_tree; 323 RB_PROTOTYPE(inp_fc_tree, inpcb, infc_link, infc_cmp); 324 RB_GENERATE(inp_fc_tree, inpcb, infc_link, infc_cmp); 330 struct inpcb key_inp; [all …]
|
| H A D | udp_log.h | 65 extern void udp_log_bind(struct inpcb *inp, int error); 66 extern void udp_log_connect(struct inpcb *inp, int error); 67 extern void udp_log_connection_summary(struct inpcb *inp); 68 extern void udp_log_message(const char *func_name, int line_no, struct inpcb *inp, const char *form… 69 extern void udp_log_drop_pcb(void *hdr, struct udphdr *uh, struct inpcb *inp, bool outgoing, const … 72 udp_is_log_enabled(struct inpcb *inp, uint32_t req_flags) in udp_is_log_enabled()
|
| H A D | raw_ip.c | 134 static KALLOC_TYPE_DEFINE(ripzone, struct inpcb, NET_KT_DEFAULT); 188 rip_inp_input(struct inpcb *inp, struct mbuf *m, int iphlen) in rip_inp_input() 261 struct inpcb *inp; in rip_input_inner() 262 struct inpcb *last = NULL; in rip_input_inner() 390 struct inpcb *inp = sotoinpcb(so); in rip_output() 750 struct inpcb *inp = sotoinpcb(so); in rip_ctloutput() 969 struct inpcb *inp; in rip_attach() 991 inp = (struct inpcb *)so->so_pcb; in rip_attach() 1002 struct inpcb *inp; in rip_detach() 1032 struct inpcb *inp = sotoinpcb(so); in rip_bind() [all …]
|
| H A D | tcp_usrreq.c | 158 struct inpcb *inp = sotoinpcb(so); in tcp_usr_attach() 194 struct inpcb *inp = sotoinpcb(so); in tcp_usr_detach() 255 struct inpcb *inp = sotoinpcb(so); in tcp_usr_bind() 306 struct inpcb *inp = sotoinpcb(so); in tcp6_usr_bind() 385 struct inpcb *inp = sotoinpcb(so); in tcp_usr_listen() 411 struct inpcb *inp = sotoinpcb(so); in tcp6_usr_listen() 441 struct inpcb *inp = sotoinpcb(so); in tcp_connect_complete() 500 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connect_common() 638 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connect() 691 struct inpcb *inp = sotoinpcb(so); in tcp_usr_connectx_common() [all …]
|
| H A D | udp_log.c | 186 udp_log_port_allowed(struct inpcb *inp) in udp_log_port_allowed() 207 udp_log_common(struct inpcb *inp, const char *event, int error) in udp_log_common() 259 udp_log_bind(struct inpcb *inp, int error) in udp_log_bind() 282 udp_log_connect(struct inpcb *inp, int error) in udp_log_connect() 300 udp_log_connection_summary(struct inpcb *inp) in udp_log_connection_summary() 399 udp_log_message(const char *func_name, int line_no, struct inpcb *inp, const char *format, ...) in udp_log_message() 521 udp_log_drop_pcb(void *hdr, struct udphdr *uh, struct inpcb *inp, bool outgoing, const char *reason) in udp_log_drop_pcb()
|
| H A D | tcp_log.c | 180 tcp_log_inp_addresses(struct inpcb *inp, char *__sized_by(lbuflen) lbuf, socklen_t lbuflen, in tcp_log_inp_addresses() 222 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_info() 256 struct inpcb *inp = tp->t_inpcb; in tcp_log_rt_rtt() 300 struct inpcb *inp = tp->t_inpcb; in tcp_log_rtt_change() 337 struct inpcb *inp = tp->t_inpcb; in tcp_log_keepalive() 379 struct inpcb *inp; in tcp_log_connection() 463 struct inpcb *inp = tp->t_inpcb; in tcp_log_listen() 568 struct inpcb *inp; in tcp_log_connection_summary() 759 struct inpcb *inp; in tcp_log_drop_pcb() 883 struct inpcb *inp = tp->t_inpcb; in tcp_log_th_flags() [all …]
|
| H A D | udp_usrreq.c | 160 static KALLOC_TYPE_DEFINE(inpcbzone, struct inpcb, NET_KT_DEFAULT); 212 static void udp_append(struct inpcb *, struct ip *, struct mbuf *, int, 215 static int udp_output(struct inpcb *, struct mbuf *, struct sockaddr *, 334 struct inpcb *inp; in udp_input() 907 udp_append(struct inpcb *last, struct ip *ip, struct mbuf *n, int off, in udp_append() 975 udp_notify(struct inpcb *inp, int errno) in udp_notify() 988 void (*notify)(struct inpcb *, int) = udp_notify; in udp_ctlinput() 990 struct inpcb *inp = NULL; in udp_ctlinput() 1085 struct inpcb *inp; in udp_ctloutput() 1246 struct inpcb *inp, **inp_list; [all …]
|
| H A D | in_pcblist.c | 106 static void inpcb_to_xinpcb_n(struct inpcb *, struct xinpcb_n *); 206 inpcb_to_xinpcb_n(struct inpcb *inp, struct xinpcb_n *xinp) in inpcb_to_xinpcb_n() 297 struct inpcb *inp, **inp_list = NULL; in get_pcblist_n() 379 inp_list = kalloc_type(struct inpcb *, sz, Z_WAITOK); in get_pcblist_n() 479 kfree_type(struct inpcb *, sz, inp_list); in get_pcblist_n() 490 struct inpcb *inp; in inpcb_get_if_ports_used() 774 struct inpcb *inp; in inpcb_count_opportunistic() 822 struct inpcb *inp; in inpcb_find_anypcb_byaddr() 881 struct inpcb *inp; in shutdown_sockets_on_interface_proc_callout() 894 inp = (struct inpcb *)so->so_pcb; in shutdown_sockets_on_interface_proc_callout() [all …]
|
| H A D | in_var.h | 534 struct inpcb; 558 extern int imo_clone(struct inpcb *, struct inpcb *); 587 extern int inp_join_group(struct inpcb *, struct sockopt *); 588 extern int inp_leave_group(struct inpcb *, struct sockopt *);
|
| H A D | ip_var.h | 313 struct inpcb; 361 extern int inp_getmoptions(struct inpcb *, struct sockopt *); 362 extern int inp_setmoptions(struct inpcb *, struct sockopt *); 381 extern int ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
|
| H A D | tcp_subr.c | 254 static void tcp_notify(struct inpcb *, int); 293 struct inpcb inp; 406 tcp_tfo_gen_cookie(struct inpcb *inp, u_char *out __sized_by(blk_size), size_t blk_size) in tcp_tfo_gen_cookie() 764 struct inpcb *inp = tp->t_inpcb; in tcp_fillheaders() 1189 struct inpcb *inp = tp->t_inpcb; in tcp_respond() 1260 struct inpcb *inp = tp->t_inpcb; in tcp_respond() 1294 tcp_newtcpcb(struct inpcb *inp) in tcp_newtcpcb() 1431 struct inpcb *inp = tp->t_inpcb; in tcp_drop() 1435 DTRACE_TCP4(state__change, void, NULL, struct inpcb *, inp, in tcp_drop() 1516 struct inpcb *inp; in tcp_create_ifnet_stats_per_flow() [all …]
|
| H A D | inp_log.h | 38 void inp_log_addresses(struct inpcb *inp, char *__sized_by(lbuflen) lbuf,
|
| H A D | tcp_log.h | 108 extern void tcp_log_bind(struct inpcb *inp, const char *event, int error); 120 struct inpcb *inp; in tcp_is_log_enabled() 180 struct inpcb *inp; in tcp_log_summary_needed()
|
| H A D | tcp_ccdbg.c | 87 struct inpcb *__single inp = tp->t_inpcb; in tcp_ccdbg_trace() 145 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp, in tcp_ccdbg_trace()
|
| /xnu-12377.41.6/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 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 *, 109 extern struct inpcb *in6_pcblookup_hash_try(struct inpcbinfo *pcbinfo, 116 const struct sockaddr *, u_int, int, void *, void (*)(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 | 154 static struct inpcb * 158 struct inpcb *__single inp; in in6_pcblookup_local_and_cleanup() 188 in6_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct sockaddr *remote, struct proc *p) in in6_pcbbind() 368 struct inpcb *__single t; in in6_pcbbind() 624 in6_pcbladdr(struct inpcb *inp, struct sockaddr *nam, in in6_pcbladdr() 725 in6_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct proc *p) in in6_pcbconnect() 729 struct inpcb *__single pcb; in in6_pcbconnect() 828 in6_pcbdisconnect(struct inpcb *inp) in in6_pcbdisconnect() 864 in6_pcbdetach(struct inpcb *inp) in in6_pcbdetach() 1010 struct inpcb *__single inp; in in6_getsockaddr() [all …]
|
| H A D | ip6_var.h | 517 struct inpcb; 562 extern struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *, 564 extern int ip6_savecontrol(struct inpcb *, struct mbuf *, struct mbuf **); 566 extern void ip6_notify_pmtu(struct inpcb *, struct sockaddr_in6 *, u_int32_t *); 580 extern int ip6_optlen(struct inpcb *); 608 struct ip6_pktopts *, struct inpcb *, struct route_in6 *,
|
| H A D | ipsec.h | 378 struct inpcb; 383 extern int ipsec4_set_policy(struct inpcb *inp, int optname, 385 extern int ipsec4_delete_pcbpolicy(struct inpcb *); 387 extern int ipsec4_in_reject(struct mbuf *, struct inpcb *); 394 extern size_t ipsec4_hdrsiz(struct mbuf *, u_int8_t, struct inpcb *);
|
| H A D | udp6_usrreq.c | 178 static void udp6_append(struct inpcb *, struct ip6_hdr *, 206 udp6_append(struct inpcb *last, struct ip6_hdr *ip6, in udp6_append() 247 struct inpcb *__single in6p; in udp6_input() 700 void (*notify)(struct inpcb *, int) = udp_notify; in udp6_ctlinput() 701 struct inpcb *__single in6p; in udp6_ctlinput() 805 struct inpcb *__single inp; in udp6_abort() 821 struct inpcb *__single inp; in udp6_attach() 841 inp = (struct inpcb *)so->so_pcb; in udp6_attach() 864 struct inpcb *__single inp; in udp6_bind() 916 struct inpcb *__single inp; in udp6_connect() [all …]
|
| H A D | raw_ip6.c | 160 struct inpcb *__single in6p; in rip6_input() 161 struct inpcb *__single last = 0; in rip6_input() 321 void (*notify)(struct inpcb *, int) = in6_rtchange; in rip6_ctlinput() 373 struct inpcb *__single in6p; in rip6_output() 1004 struct inpcb *__single inp; in rip6_attach() 1023 inp = (struct inpcb *)so->so_pcb; in rip6_attach() 1037 struct inpcb *__single inp; in rip6_detach() 1062 struct inpcb *__single inp = sotoinpcb(so); in rip6_disconnect() 1076 struct inpcb *__single inp = sotoinpcb(so); in rip6_bind() 1140 struct inpcb *__single inp = sotoinpcb(so); in rip6_connect() [all …]
|
| H A D | tcp6_var.h | 111 struct rtentry *tcp_rtlookup6(struct inpcb *, unsigned int);
|
| /xnu-12377.41.6/bsd/net/ |
| H A D | necp.h | 1459 extern int necp_set_socket_resolver_signature(struct inpcb *inp, struct sockopt *sopt); 1460 extern int necp_get_socket_resolver_signature(struct inpcb *inp, struct sockopt *sopt); 1461 extern bool necp_socket_has_resolver_signature(struct inpcb *inp); 1462 extern bool necp_socket_resolver_signature_matches_address(struct inpcb *inp, union necp_sockaddr_u… 1463 extern void necp_inpcb_remove_cb(struct inpcb *inp); 1464 extern void necp_inpcb_dispose(struct inpcb *inp); 1469 extern bool necp_socket_should_use_flow_divert(struct inpcb *inp); 1470 extern u_int32_t necp_socket_get_flow_divert_control_unit(struct inpcb *inp, uint32_t *aggregate_un… 1472 extern bool necp_socket_should_rescope(struct inpcb *inp); 1473 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);
|