Searched refs:inpcb (Results 1 - 25 of 56) sorted by relevance

123

/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_pcb.h98 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 *, in
[all...]
H A Dipsec6.h59 struct inpcb;
62 extern int ipsec6_delete_pcbpolicy(struct inpcb *);
63 extern int ipsec6_set_policy(struct inpcb *inp, int optname,
65 extern int ipsec6_get_policy(struct inpcb *inp, caddr_t request, size_t len,
67 extern int ipsec6_in_reject(struct mbuf *, struct inpcb *);
71 extern size_t ipsec6_hdrsiz(struct mbuf *, u_int, struct inpcb *);
H A Dtcp6_var.h111 struct rtentry *tcp_rtlookup6(struct inpcb *, unsigned int);
H A Dudp6_var.h76 int udp6_output(struct inpcb *inp, struct mbuf *m,
H A Dipsec.h318 struct inpcb;
323 extern int ipsec4_set_policy(struct inpcb *inp, int optname,
325 extern int ipsec4_get_policy(struct inpcb *inpcb, caddr_t request,
327 extern int ipsec4_delete_pcbpolicy(struct inpcb *);
329 extern int ipsec4_in_reject(struct mbuf *, struct inpcb *);
336 extern size_t ipsec4_hdrsiz(struct mbuf *, u_int, struct inpcb *);
H A Din6_pcb.c150 static struct inpcb*
157 struct inpcb *inp;
183 in6_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct proc *p)
274 struct inpcb *t;
398 in6_pcbladdr(struct inpcb *inp, struct sockaddr *nam,
489 struct inpcb *inp,
495 struct inpcb *pcb;
562 struct inpcb *inp)
582 struct inpcb *inp)
691 struct inpcb *in
[all...]
H A Dudp6_usrreq.c144 static void udp6_append(struct inpcb *, struct ip6_hdr *,
165 udp6_append(struct inpcb *last, __unused struct ip6_hdr *ip6,
210 register struct inpcb *in6p;
584 void (*notify)(struct inpcb *, int) = udp_notify;
642 struct inpcb *inp;
687 struct inpcb *inp;
700 struct inpcb *inp;
716 inp = (struct inpcb *)so->so_pcb;
737 struct inpcb *inp;
771 struct inpcb *in
[all...]
H A Dip6_var.h450 struct inpcb;
482 struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *,
484 int ip6_savecontrol(struct inpcb *, struct mbuf *, struct mbuf **);
486 void ip6_notify_pmtu __P((struct inpcb *, struct sockaddr_in6 *,
499 int ip6_optlen(struct inpcb *);
515 struct ip6_pktopts *, struct inpcb *, struct route_in6 *,
H A Draw_ip6.c156 register struct inpcb *in6p;
157 struct inpcb *last = 0;
295 void (*notify)(struct inpcb *, int) = in6_rtchange;
342 struct inpcb *in6p;
742 struct inpcb *inp;
757 inp = (struct inpcb *)so->so_pcb;
773 struct inpcb *inp;
801 struct inpcb *inp = sotoinpcb(so);
812 struct inpcb *inp = sotoinpcb(so);
851 struct inpcb *in
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Din_pcb.h87 #define in6pcb inpcb /* for KAME src sync over BSD*'s */
99 LIST_HEAD(inpcbhead, inpcb);
132 struct inpcb *infc_inp;
144 struct inpcb { struct
145 LIST_ENTRY(inpcb) inp_hash; /* hash list */
150 LIST_ENTRY(inpcb) inp_list; /* list for all PCBs of this proto */
155 LIST_ENTRY(inpcb) inp_portlist; /* list for this PCB's local port */
211 decl_lck_mtx_data( ,inpcb_mtx); /* inpcb per-socket mutex */
239 * This is a copy of the inpcb as it shipped in Panther. This structure
240 * is filled out in a copy function. This allows the inpcb t
[all...]
H A Dip_divert.c162 divcbinfo.ipi_zone = (void *) zinit(sizeof(struct inpcb),(maxsockets * sizeof(struct inpcb)),
209 struct inpcb *inp;
315 struct inpcb *const inp = sotoinpcb(so);
442 struct inpcb *inp;
458 inp = (struct inpcb *)so->so_pcb;
468 so, so->so_pcb, &(((struct inpcb *)so->so_pcb)->inpcb_mtx), so->so_usecount);
476 struct inpcb *inp;
480 so, so->so_pcb, &(((struct inpcb *)so->so_pcb)->inpcb_mtx), so->so_usecount);
508 struct inpcb *in
739 struct inpcb *inpcb = (struct inpcb *)so->so_pcb; local
[all...]
H A Din_pcb.c264 struct inpcb *inp;
279 inp = (struct inpcb *) zalloc(pcbinfo->ipi_zone);
288 inp = (struct inpcb *)(void *)so->so_saved_pcb;
357 struct inpcb*
364 struct inpcb *inp;
425 in_pcbbind(struct inpcb *inp, struct sockaddr *nam, struct proc *p)
491 struct inpcb *t;
693 in_pcbladdr(struct inpcb *inp, struct sockaddr *nam,
896 in_pcbconnect(struct inpcb *inp, struct sockaddr *nam, struct proc *p,
901 struct inpcb *pc
[all...]
H A Dtcp_usrreq.c181 struct inpcb *inp = sotoinpcb(so);
214 struct inpcb *inp = sotoinpcb(so);
221 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, LCK_MTX_ASSERT_OWNED);
267 struct inpcb *inp = sotoinpcb(so);
300 struct inpcb *inp = sotoinpcb(so);
360 struct inpcb *inp = sotoinpcb(so);
376 struct inpcb *inp = sotoinpcb(so);
403 struct inpcb *inp = sotoinpcb(so);
449 struct inpcb *inp = sotoinpcb(so);
510 struct inpcb *in
[all...]
H A Dudp_usrreq.c203 static void udp_append(struct inpcb *last, struct ip *ip,
207 static void udp_append(struct inpcb *last, struct ip *ip,
212 static int udp_output(struct inpcb *, struct mbuf *, struct sockaddr *,
229 str_size = (vm_size_t) sizeof(struct inpcb);
245 udbinfo.ipi_zone = zinit("udpcb", sizeof(struct inpcb), maxsockets,
257 register struct inpcb *inp;
785 udp_append(struct inpcb *last, struct ip *ip, struct mbuf *n, int off,
789 udp_append(struct inpcb *last, struct ip *ip, struct mbuf *n, int off,
865 register struct inpcb *inp;
880 void (*notify)(struct inpcb *, in
[all...]
H A Dip_var.h117 * Structure stored in mbuf in inpcb.ip_options
132 * Structure attached to inpcb.ip_moptions and
260 struct inpcb;
297 extern int inp_getmoptions(struct inpcb *, struct sockopt *);
298 extern int inp_setmoptions(struct inpcb *, struct sockopt *);
312 int ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
H A Din_var.h463 struct inpcb;
476 extern int imo_clone(struct inpcb *, struct inpcb *);
504 __private_extern__ int inp_join_group(struct inpcb *, struct sockopt *);
505 __private_extern__ int inp_leave_group(struct inpcb *, struct sockopt *);
H A Draw_ip.c167 ripcbinfo.ipi_zone = (void *) zinit(sizeof(struct inpcb),
168 (4096 * sizeof(struct inpcb)),
201 register struct inpcb *inp;
202 struct inpcb *last = 0;
354 register struct inpcb *inp = sotoinpcb(so);
518 struct inpcb *inp = sotoinpcb(so);
793 struct inpcb *inp;
808 inp = (struct inpcb *)so->so_pcb;
818 struct inpcb *inp;
852 struct inpcb *in
[all...]
H A Dtcp_subr.c254 static void tcp_notify(struct inpcb *, int);
300 struct inpcb inp;
321 return sizeof(struct inpcb);
484 struct inpcb *inp = tp->t_inpcb;
828 struct inpcb *inp;
907 struct inpcb *inp = tp->t_inpcb;
911 DTRACE_TCP4(state__change, void, NULL, struct inpcb *, inp,
967 struct inpcb *inp = tp->t_inpcb;
1041 DTRACE_TCP4(state__change, void, NULL, struct inpcb *, inp,
1206 struct inpcb *inp
[all...]
H A Dudp_var.h156 void udp_notify(struct inpcb *inp, int errno);
H A Dtcp_input.c1088 register struct inpcb *inp;
1223 DTRACE_TCP5(receive, sruct mbuf *, m, struct inpcb *, NULL,
1316 DTRACE_TCP5(receive, struct mbuf *, m, struct inpcb *, NULL,
1678 struct inpcb *oinp = sotoinpcb(so);
1844 inp = (struct inpcb *)so2->so_pcb;
1955 DTRACE_TCP4(state__change, void, NULL, struct inpcb *, inp,
1973 lck_mtx_assert(&((struct inpcb *)so->so_pcb)->inpcb_mtx, LCK_MTX_ASSERT_OWNED);
2283 DTRACE_TCP5(cc, void, NULL, struct inpcb *, tp->t_inpcb,
2314 DTRACE_TCP5(cc, void, NULL, struct inpcb *, inp,
2468 lck_mtx_assert(&((struct inpcb *)s
[all...]
H A Dtcp_var.h196 struct inpcb *t_inpcb; /* back pointer to internet pcb */
527 _TCPCB_PTR(struct inpcb *) t_inpcb; /* back pointer to internet pcb */
764 struct inpcb xt_inp;
1019 tcp_gettaocache(struct inpcb *);
1024 void tcp_drop_syn_sent(struct inpcb *, int);
1025 void tcp_mtudisc(struct inpcb *, int);
1027 tcp_newtcpcb(struct inpcb *);
1032 struct rtentry *tcp_rtlookup(struct inpcb *, unsigned int);
H A Din_pcblist.c100 void inpcb_to_xinpcb_n(struct inpcb *, struct xinpcb_n *);
170 inpcb_to_xinpcb_n(struct inpcb *inp, struct xinpcb_n *xinp)
260 struct inpcb *inp, **inp_list = NULL;
392 struct inpcb *inp;
413 struct inpcb *inp;
/darwin-on-arm/xnu/security/
H A Dmac_inet.c101 mac_inpcb_label_init(struct inpcb *inp, int flag)
148 mac_inpcb_label_destroy(struct inpcb *inp)
156 mac_inpcb_label_recycle(struct inpcb *inp)
179 mac_inpcb_label_associate(struct socket *so, struct inpcb *inp)
219 mac_mbuf_label_associate_inpcb(struct inpcb *inp, struct mbuf *m)
274 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m, int family, int type)
291 * Propagate a change in the socket label to the inpcb label.
296 struct inpcb *inp;
/darwin-on-arm/xnu/bsd/net/
H A Dntstat.h331 struct inpcb;
332 void nstat_tcp_new_pcb(struct inpcb *inp);
333 void nstat_udp_new_pcb(struct inpcb *inp);
335 void nstat_pcb_detach(struct inpcb *inp);
H A Dntstat.c757 struct inpcb *inp = NULL;
806 // At this point we have a ref to the inpcb
824 struct inpcb *inp = (struct inpcb*)cookie;
835 struct inpcb *inp = (struct inpcb*)cookie;
871 struct inpcb *inp = (struct inpcb*)cookie;
884 struct inpcb *inp;
911 struct inpcb *in
[all...]

Completed in 74 milliseconds

123