Home
last modified time | relevance | path

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

123456

/freebsd/sys/netinet/
H A Din_pcb.h329 struct inpcb { struct
331 CK_LIST_ENTRY(inpcb) inp_hash_exact; argument
332 LIST_ENTRY(inpcb) inp_lbgroup_list;
334 CK_LIST_ENTRY(inpcb) inp_hash_wild;
335 CK_LIST_ENTRY(inpcb) inp_unconn_list;
338 #define inp_zero_size (sizeof(struct inpcb) - \ argument
339 offsetof(struct inpcb, inp_start_zero))
383 CK_LIST_ENTRY(inpcb) inp_portlist; /* (r:e/w:h) port list */ argument
435 CK_LIST_HEAD(, inpcb) head;
475 struct inpcb *inp = mem; \
[all …]
H A Din_pcb_var.h111 void inp_lock(struct inpcb *inp, const inp_lookup_t lock);
112 void inp_unlock(struct inpcb *inp, const inp_lookup_t lock);
113 int inp_trylock(struct inpcb *inp, const inp_lookup_t lock);
114 bool inp_smr_lock(struct inpcb *, const inp_lookup_t);
115 int in_pcb_lport(struct inpcbinfo_ctx *, struct inpcb *, struct in_addr *,
118 struct inpcb *inp, const struct sockaddr *lsa,
121 struct inpcb *in_pcblookup_local(struct inpcbinfo_ctx *, struct in_addr,
123 struct inpcb *in6_pcblookup_local(struct inpcbinfo_ctx *,
125 struct inpcb *in6_pcblookup_internal(struct inpcbinfo_ctx *ipictx,
129 int in_pcbinshash(struct inpcb *, struct inpcbinfo_ctx *);
[all …]
H A Din_pcb.c134 static struct inpcb *in_pcblookup_internal(struct inpcbinfo_ctx *ipictx,
137 static struct inpcb *in_pcblookup_exact(struct inpcbinfo *pcbinfo,
140 static struct inpcb *in_pcblookup_wild_locked(struct inpcbinfo *pcbinfo,
290 in_pcblbgroup_find(struct inpcb *inp, struct lbgroupbucket **bucket) in in_pcblbgroup_find()
301 struct inpcb *inp1; in in_pcblbgroup_find()
317 in_pcblbgroup_insert(struct inpcblbgroup *grp, struct inpcb *inp) in in_pcblbgroup_insert()
369 LIST_SWAP(&old_grp->il_pending, &grp->il_pending, inpcb, in in_pcblbgroup_resize()
381 in_pcbinslbgrouphash(struct inpcb *inp, uint8_t numa_domain) in in_pcbinslbgrouphash()
460 in_pcbremlbgrouphash(struct lbgroupbucket *bucket, struct inpcb *inp) in in_pcbremlbgrouphash()
463 struct inpcb *inp1; in in_pcbremlbgrouphash()
[all …]
H A Din_systm.h59 struct inpcb;
63 int cr_canseeinpcb(struct ucred *cred, struct inpcb *inp);
64 bool cr_canexport_ktlskeys(struct thread *td, struct inpcb *inp);
H A Draw_ip.c144 INPCBSTORAGE_DEFINE(ripcbstor, inpcb, "rawinp", "ripcb", "riphash");
166 rip_append(struct inpcb *inp, struct ip *ip, struct mbuf *m, in rip_append()
213 rip_inp_match(const struct inpcb *inp, void *v) in rip_inp_match()
248 struct inpcb *inp; in rip_input()
364 struct inpcb *inp; in rip_send()
583 struct inpcb *inp = sotoinpcb(so); in rip_ctloutput()
759 struct inpcb *inp; in rip_attach()
776 inp = (struct inpcb *)so->so_pcb; in rip_attach()
786 struct inpcb *inp; in rip_detach()
807 rip_dodisconnect(struct inpcb *inp, bool disconnect_socket) in rip_dodisconnect()
[all …]
H A Dudp_var.h99 typedef bool udp_tun_func_t(struct mbuf *, int, struct inpcb *,
111 struct inpcb u_inpcb;
181 struct inpcb *udp_notify(struct inpcb *inp, int errno);
H A Dip_var.h172 struct inpcb;
202 int inp_getmoptions(struct inpcb *, struct sockopt *);
203 int inp_setmoptions(struct inpcb *, struct sockopt *);
211 struct inpcb *);
214 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
H A Dudp_usrreq.c237 udp_append(struct inpcb *inp, struct ip *ip, struct mbuf *n, int off, in udp_append()
339 udp_multi_match(const struct inpcb *inp, void *v) in udp_multi_match()
372 struct inpcb *inp; in udp_multi_input()
472 struct inpcb *inp; in udp_input()
718 struct inpcb *
719 udp_notify(struct inpcb *inp, int errno) in udp_notify()
741 struct inpcb *inp; in udp_common_ctlinput()
793 struct inpcb *inp; in udp_pcblist()
867 struct inpcb *inp; in udp_getcred()
908 struct inpcb *inp; in udp_ctloutput()
[all …]
H A Din_prot.c53 cr_canseeinpcb(struct ucred *cred, struct inpcb *inp) in cr_canseeinpcb()
73 cr_canexport_ktlskeys(struct thread *td, struct inpcb *inp) in cr_canexport_ktlskeys()
H A Dtoecore.c212 toe_listen_start(struct inpcb *inp, void *arg) in toe_listen_start()
239 struct inpcb *inp = tptoinpcb(tp); in toe_listen_start_event()
253 struct inpcb *inp = tptoinpcb(tp); in toe_listen_stop_event()
355 struct inpcb *inp, void *tod, void *todctx, uint8_t iptos) in toe_syncache_add()
385 struct inpcb *inp; in toe_4tuple_check()
510 toe_connect_failed(struct toedev *tod, struct inpcb *inp, int err) in toe_connect_failed()
/freebsd/sys/netipsec/
H A Dipsec_support.h35 struct inpcb;
49 size_t ipsec_hdrsiz_inpcb(struct inpcb *);
50 int ipsec_init_pcbpolicy(struct inpcb *);
51 int ipsec_delete_pcbpolicy(struct inpcb *);
52 int ipsec_copy_pcbpolicy(struct inpcb *, struct inpcb *);
56 int udp_ipsec_pcbctl(struct inpcb *, struct sockopt *);
59 int ipsec4_in_reject(const struct mbuf *, struct inpcb *);
60 int ipsec4_in_reject1(const struct mbuf *m, struct ip *ip1, struct inpcb *inp);
63 int ipsec4_pcbctl(struct inpcb *, struct sockopt *);
64 int ipsec4_output(struct ifnet *, struct mbuf *, struct inpcb *, u_long);
[all …]
H A Dipsec6.h62 struct inpcb;
66 struct inpcb *, int *, int);
74 struct inpcb *, u_long);
77 int ip6_ipsec_pcbctl(struct inpcb *, struct sockopt *);
H A Dipsec_pcb.c54 MALLOC_DEFINE(M_IPSEC_INPCB, "inpcbpolicy", "inpcb-resident ipsec policy");
57 ipsec_setsockaddrs_inpcb(struct inpcb *inp, union sockaddr_union *src, in ipsec_setsockaddrs_inpcb()
128 ipsec_setspidx_inpcb(struct inpcb *inp, struct secpolicyindex *spidx, in ipsec_setspidx_inpcb()
153 ipsec_init_pcbpolicy(struct inpcb *inp) in ipsec_init_pcbpolicy()
168 ipsec_delete_pcbpolicy(struct inpcb *inp) in ipsec_delete_pcbpolicy()
236 ipsec_copy_pcbpolicy(struct inpcb *old, struct inpcb *new) in ipsec_copy_pcbpolicy()
285 ipsec_set_pcbpolicy(struct inpcb *inp, struct ucred *cred, in ipsec_set_pcbpolicy()
376 ipsec_get_pcbpolicy(struct inpcb *inp, void *request, size_t *len) in ipsec_get_pcbpolicy()
434 ipsec_control_pcbpolicy(struct inpcb *in in ipsec_control_pcbpolicy()
[all...]
H A Dipsec_offload.h37 struct inpcb;
58 extern void (*ipsec_accel_spdadd_p)(struct secpolicy *sp, struct inpcb *inp);
100 ipsec_accel_spdadd(struct secpolicy *sp, struct inpcb *inp) in ipsec_accel_spdadd()
102 void (*p)(struct secpolicy *sp, struct inpcb *inp); in ipsec_accel_spdadd()
189 void ipsec_accel_spdadd_impl(struct secpolicy *sp, struct inpcb *inp);
195 struct inpcb *inp, struct secpolicy *sp, struct secasvar *sav, int af,
H A Dipsec.h117 struct inpcb *ipsec_accel_add_sp_inp;
330 struct inpcb;
344 struct secpolicy *ipsec4_checkpolicy(const struct mbuf *, struct inpcb *,
358 void ipsec_setspidx_inpcb(struct inpcb *, struct secpolicyindex *, u_int);
367 struct secpolicy *, struct inpcb *, u_long);
H A Dsubr_ipsec.c287 pcbctl, METHOD_DECL(struct tcpmd5_support * const sc, struct inpcb *inp, in IPSEC_KMOD_METHOD()
337 udp_pcbctl, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp, in IPSEC_KMOD_METHOD()
348 struct inpcb *inp), METHOD_ARGS(m, inp) in IPSEC_KMOD_METHOD()
363 struct mbuf *m, struct inpcb *inp, u_long mtu), in IPSEC_KMOD_METHOD()
368 pcbctl, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp, in IPSEC_KMOD_METHOD()
373 hdrsize, METHOD_DECL(struct ipsec_support * const sc, struct inpcb *inp), in IPSEC_KMOD_METHOD()
/freebsd/sys/netinet6/
H A Din6_pcb.h72 void in6_losing(struct inpcb *);
73 int in6_pcbbind(struct inpcb *, struct sockaddr_in6 *, int, struct ucred *);
74 int in6_pcbconnect(struct inpcb *, struct sockaddr_in6 *, struct ucred *,
76 void in6_pcbdisconnect(struct inpcb *);
77 struct inpcb *in6_pcblookup(struct inpcbinfo *, const struct in6_addr *, u_int,
79 struct inpcb *in6_pcblookup_mbuf(struct inpcbinfo *, const struct in6_addr *,
84 struct inpcb *(*)(struct inpcb *, int));
85 struct inpcb *
86 in6_rtchange(struct inpcb *, int);
91 int in6_selecthlim(struct inpcb *, struct ifnet *);
[all …]
H A Din6_pcb.c115 static struct inpcb *in6_pcblookup_exact(struct inpcbinfo *pcbinfo,
118 static struct inpcb *in6_pcblookup_wild_locked(struct inpcbinfo *pcbinfo,
124 struct inpcb *inp, struct ucred *cred) in in6_pcbsetport_locked()
159 in6_pcbsetport(struct in6_addr *laddr, struct inpcb *inp, struct ucred *cred) in in6_pcbsetport()
176 in6_pcbbind_avail(struct inpcbinfo_ctx *ipictx, struct inpcb *inp, in in6_pcbbind_avail()
240 struct inpcb *t; in in6_pcbbind_avail()
311 in6_pcbbind(struct inpcb *inp, struct sockaddr_in6 *sin6, int flags, in in6_pcbbind()
391 in6_pcbladdr(struct inpcb *inp, struct sockaddr_in6 *sin6, in in6_pcbladdr()
457 in6_pcbconnect(struct inpcb *inp, struct sockaddr_in6 *sin6, struct ucred *cred, in in6_pcbconnect()
510 struct inpcb *i __diagused; in in6_pcbconnect()
[all …]
H A Dip6_var.h379 struct inpcb;
400 struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *,
402 void ip6_savecontrol(struct inpcb *, struct mbuf *, struct mbuf **);
403 void ip6_notify_pmtu(struct inpcb *, struct sockaddr_in6 *, u_int32_t);
413 struct inpcb *);
421 int ip6_optlen(struct inpcb *);
442 struct inpcb *, struct ucred *, int, struct in6_addr *, int *);
H A Draw_ip6.c156 rip6_inp_match(const struct inpcb *inp, void *v) in rip6_inp_match()
187 struct inpcb *inp; in rip6_input()
354 struct inpcb *inp; in rip6_send()
578 struct inpcb *inp = sotoinpcb(so); in rip6_ctloutput()
657 struct inpcb *inp; in rip6_attach()
680 inp = (struct inpcb *)so->so_pcb; in rip6_attach()
692 struct inpcb *inp; in rip6_detach()
709 struct inpcb *inp __diagused; in rip6_abort()
720 struct inpcb *inp __diagused; in rip6_close()
731 struct inpcb *inp; in rip6_disconnect()
[all …]
H A Dudp6_usrreq.c137 udp6_append(struct inpcb *inp, struct mbuf *n, int off, in udp6_append()
227 udp6_multi_match(const struct inpcb *inp, void *v) in udp6_multi_match()
255 struct inpcb *inp; in udp6_multi_input()
357 struct inpcb *inp; in udp6_input()
566 struct inpcb *inp; in udp6_common_ctlinput()
626 struct inpcb *inp; in udp6_getcred()
677 struct inpcb *inp; in udp6_send()
985 struct inpcb *inp; in udp6_abort()
1011 struct inpcb *inp; in udp6_attach()
1027 inp = (struct inpcb *)so->so_pcb; in udp6_attach()
[all …]
/freebsd/sys/net/
H A Dpfil.h92 struct inpcb;
102 void *, struct inpcb *);
178 struct inpcb *inp);
180 struct inpcb *inp);
182 struct inpcb *);
/freebsd/sys/security/mac/
H A Dmac_inet.c97 mac_inpcb_init(struct inpcb *inp, int flag) in mac_inpcb_init()
164 mac_inpcb_destroy(struct inpcb *inp) in mac_inpcb_destroy()
192 mac_inpcb_create(struct socket *so, struct inpcb *inp) in mac_inpcb_create()
242 mac_inpcb_create_mbuf(struct inpcb *inp, struct mbuf *m) in mac_inpcb_create_mbuf()
366 mac_inpcb_check_deliver(struct inpcb *inp, struct mbuf *m) in mac_inpcb_check_deliver()
389 mac_inpcb_check_visible(struct ucred *cred, struct inpcb *inp) in mac_inpcb_check_visible()
403 mac_inpcb_sosetlabel(struct socket *so, struct inpcb *inp) in mac_inpcb_sosetlabel()
497 mac_syncache_create(struct label *label, struct inpcb *inp) in mac_syncache_create()
/freebsd/sys/dev/cxgbe/tom/
H A Dt4_listen.c80 static struct listen_ctx *alloc_lctx(struct adapter *, struct inpcb *,
85 static struct listen_ctx *listen_hash_find(struct adapter *, struct inpcb *);
86 static struct listen_ctx *listen_hash_del(struct adapter *, struct inpcb *);
87 static struct inpcb *release_lctx(struct adapter *, struct listen_ctx *);
328 alloc_lctx(struct adapter *sc, struct inpcb *inp, struct vi_info *vi) in alloc_lctx()
369 struct inpcb *inp = lctx->inp; in free_lctx()
420 listen_hash_find(struct adapter *sc, struct inpcb *inp) in listen_hash_find()
440 listen_hash_del(struct adapter *sc, struct inpcb *inp) in listen_hash_del()
464 static struct inpcb *
467 struct inpcb *inp = lctx->inp; in release_lctx()
[all …]
/freebsd/sys/dev/mlx5/mlx5_core/
H A Dfs_tcp.h29 struct inpcb;
37 struct inpcb *, uint32_t tirn, uint32_t flow_tag, uint16_t vlan_id);

123456