Home
last modified time | relevance | path

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

123456

/freebsd/sys/netinet/
H A Din_pcb.h66 CK_LIST_HEAD(inpcbhead, inpcb);
167 struct inpcb { struct
170 CK_LIST_ENTRY(inpcb) inp_hash_exact; /* hash table linkage */ argument
171 LIST_ENTRY(inpcb) inp_lbgroup_list; /* lb group list */
173 CK_LIST_ENTRY(inpcb) inp_hash_wild; /* hash table linkage */
177 #define inp_zero_size (sizeof(struct inpcb) - \ argument
178 offsetof(struct inpcb, inp_start_zero))
222 CK_LIST_ENTRY(inpcb) inp_portlist; /* (r:e/w:h) port list */ argument
230 CK_LIST_ENTRY(inpcb) inp_list; /* (r:e/w:p) all PCBs for proto */ argument
308 int (*ctloutput_set)(struct inpcb *, struct sockopt *));
[all …]
H A Din_pcb_var.h47 void inp_lock(struct inpcb *inp, const inp_lookup_t lock);
48 void inp_unlock(struct inpcb *inp, const inp_lookup_t lock);
49 int inp_trylock(struct inpcb *inp, const inp_lookup_t lock);
50 bool inp_smr_lock(struct inpcb *, const inp_lookup_t);
51 int in_pcb_lport(struct inpcb *, struct in_addr *, u_short *,
53 int in_pcb_lport_dest(const struct inpcb *inp, struct sockaddr *lsa,
56 struct inpcb *in_pcblookup_local(struct inpcbinfo *, struct in_addr, u_short,
58 int in_pcbinshash(struct inpcb *);
59 void in_pcbrehash(struct inpcb *);
60 void in_pcbremhash_locked(struct inpcb *);
[all …]
H A Din_pcb.c139 static struct inpcb *in_pcblookup_hash_locked(struct inpcbinfo *pcbinfo,
245 static void in_pcbremhash(struct inpcb *);
298 in_pcblbgroup_find(struct inpcb *inp) in in_pcblbgroup_find()
312 struct inpcb *inp1; in in_pcblbgroup_find()
328 in_pcblbgroup_insert(struct inpcblbgroup *grp, struct inpcb *inp) in in_pcblbgroup_insert()
377 LIST_SWAP(&old_grp->il_pending, &grp->il_pending, inpcb, in in_pcblbgroup_resize()
389 in_pcbinslbgrouphash(struct inpcb *inp, uint8_t numa_domain) in in_pcbinslbgrouphash()
464 in_pcbremlbgrouphash(struct inpcb *inp) in in_pcbremlbgrouphash()
469 struct inpcb *inp1; in in_pcbremlbgrouphash()
515 in_pcblbgroup_numa(struct inpcb *inp, int arg) in in_pcblbgroup_numa()
[all …]
H A Draw_ip.c154 rip_inshash(struct inpcb *inp) in rip_inshash()
175 rip_delhash(struct inpcb *inp) in rip_delhash()
185 INPCBSTORAGE_DEFINE(ripcbstor, inpcb, "rawinp", "ripcb", "rip", "riphash");
207 rip_append(struct inpcb *inp, struct ip *ip, struct mbuf *m, in rip_append()
254 rip_inp_match1(const struct inpcb *inp, void *v) in rip_inp_match1()
273 rip_inp_match2(const struct inpcb *inp, void *v) in rip_inp_match2()
308 struct inpcb *inp; in rip_input()
426 struct inpcb *inp; in rip_send()
649 struct inpcb *inp = sotoinpcb(so); in rip_ctloutput()
829 struct inpcb *inp; in rip_attach()
[all …]
H A Dudp_var.h99 typedef bool udp_tun_func_t(struct mbuf *, int, struct inpcb *,
111 struct inpcb u_inpcb;
180 struct inpcb *udp_notify(struct inpcb *inp, int errno);
H A Dip_var.h190 struct inpcb;
223 int inp_getmoptions(struct inpcb *, struct sockopt *);
224 int inp_setmoptions(struct inpcb *, struct sockopt *);
235 struct inpcb *);
238 void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
H A Din_systm.h57 struct inpcb;
60 int cr_canseeinpcb(struct ucred *cred, struct inpcb *inp);
H A Dudp_usrreq.c236 udp_append(struct inpcb *inp, struct ip *ip, struct mbuf *n, int off, in udp_append()
332 udp_multi_match(const struct inpcb *inp, void *v) in udp_multi_match()
365 struct inpcb *inp; in udp_multi_input()
465 struct inpcb *inp; in udp_input()
701 struct inpcb *
702 udp_notify(struct inpcb *inp, int errno) in udp_notify()
724 struct inpcb *inp; in udp_common_ctlinput()
775 struct inpcb *inp; in udp_pcblist()
844 struct inpcb *inp; in udp_getcred()
885 struct inpcb *inp; in udp_ctloutput()
[all …]
H A Dtoecore.c213 toe_listen_start(struct inpcb *inp, void *arg) in toe_listen_start()
241 struct inpcb *inp = tptoinpcb(tp); in toe_listen_start_event()
255 struct inpcb *inp = tptoinpcb(tp); in toe_listen_stop_event()
357 struct inpcb *inp, void *tod, void *todctx, uint8_t iptos) in toe_syncache_add()
387 struct inpcb *inp; in toe_4tuple_check()
512 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;
64 struct inpcb *, int *, int);
71 struct inpcb *, u_long);
74 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.h36 struct inpcb;
56 extern void (*ipsec_accel_spdadd_p)(struct secpolicy *sp, struct inpcb *inp);
96 ipsec_accel_spdadd(struct secpolicy *sp, struct inpcb *inp) in ipsec_accel_spdadd()
98 void (*p)(struct secpolicy *sp, struct inpcb *inp); in ipsec_accel_spdadd()
174 void ipsec_accel_spdadd_impl(struct secpolicy *sp, struct inpcb *inp);
180 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;
342 struct secpolicy *ipsec4_checkpolicy(const struct mbuf *, struct inpcb *,
356 void ipsec_setspidx_inpcb(struct inpcb *, struct secpolicyindex *, u_int);
364 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_local(struct inpcbinfo *, const struct in6_addr *,
79 struct inpcb *in6_pcblookup_hash_locked(struct inpcbinfo *pcbinfo,
83 struct inpcb *in6_pcblookup(struct inpcbinfo *, const struct in6_addr *, u_int,
85 struct inpcb *in6_pcblookup_mbuf(struct inpcbinfo *, const struct in6_addr *,
90 struct inpcb *(*)(struct inpcb *, int));
91 struct inpcb *
[all …]
H A Din6_pcb.c126 in6_pcbsetport(struct in6_addr *laddr, struct inpcb *inp, struct ucred *cred) in in6_pcbsetport()
167 in6_pcbbind_avail(struct inpcb *inp, const struct sockaddr_in6 *sin6, int fib, in in6_pcbbind_avail()
232 struct inpcb *t; in in6_pcbbind_avail()
303 in6_pcbbind(struct inpcb *inp, struct sockaddr_in6 *sin6, int flags, in in6_pcbbind()
382 in6_pcbladdr(struct inpcb *inp, struct sockaddr_in6 *sin6, in in6_pcbladdr()
460 in6_pcbconnect(struct inpcb *inp, struct sockaddr_in6 *sin6, struct ucred *cred, in in6_pcbconnect()
534 in6_pcbdisconnect(struct inpcb *inp) in in6_pcbdisconnect()
558 struct inpcb *inp; in in6_getsockaddr()
578 struct inpcb *inp; in in6_getpeeraddr()
600 struct inpcb *inp; in in6_mapped_sockaddr()
[all …]
H A Draw_ip6.c158 rip6_inp_match(const struct inpcb *inp, void *v) in rip6_inp_match()
189 struct inpcb *inp; in rip6_input()
352 struct inpcb *inp; in rip6_send()
579 struct inpcb *inp = sotoinpcb(so); in rip6_ctloutput()
652 struct inpcb *inp; in rip6_attach()
675 inp = (struct inpcb *)so->so_pcb; in rip6_attach()
687 struct inpcb *inp; in rip6_detach()
704 struct inpcb *inp __diagused; in rip6_abort()
715 struct inpcb *inp __diagused; in rip6_close()
726 struct inpcb *inp; in rip6_disconnect()
[all …]
H A Dip6_var.h367 struct inpcb;
386 struct mbuf **ip6_savecontrol_v4(struct inpcb *, struct mbuf *,
388 void ip6_savecontrol(struct inpcb *, struct mbuf *, struct mbuf **);
389 void ip6_notify_pmtu(struct inpcb *, struct sockaddr_in6 *, u_int32_t);
399 struct inpcb *);
407 int ip6_optlen(struct inpcb *);
428 struct inpcb *, struct ucred *, int, struct in6_addr *, int *);
H A Dudp6_usrreq.c139 udp6_append(struct inpcb *inp, struct mbuf *n, int off, in udp6_append()
224 udp6_multi_match(const struct inpcb *inp, void *v) in udp6_multi_match()
252 struct inpcb *inp; in udp6_multi_input()
354 struct inpcb *inp; in udp6_input()
557 struct inpcb *inp; in udp6_common_ctlinput()
617 struct inpcb *inp; in udp6_getcred()
668 struct inpcb *inp; in udp6_send()
971 struct inpcb *inp; in udp6_abort()
1000 struct inpcb *inp; in udp6_attach()
1016 inp = (struct inpcb *)so->so_pcb; in udp6_attach()
[all …]
/freebsd/usr.bin/systat/
H A Dnetstat.c79 static void enter_kvm(struct inpcb *, struct socket *, int, const char *);
175 struct inpcb *inpcb; in fetchnetstat_kvm() local
197 LIST_FOREACH(inpcb, &head, inp_list) { in fetchnetstat_kvm()
198 KREAD(inpcb, &tcpcb, istcp ? sizeof(tcpcb) : sizeof(inpcb)); in fetchnetstat_kvm()
199 inpcb = (struct inpcb *)&tcpcb; in fetchnetstat_kvm()
201 if (inpcb->inp_vflag & INP_IPV4) { in fetchnetstat_kvm()
202 if (inpcb->inp_laddr.s_addr == INADDR_ANY) in fetchnetstat_kvm()
206 else if (inpcb->inp_vflag & INP_IPV6) { in fetchnetstat_kvm()
207 if (memcmp(&inpcb->in6p_laddr, in fetchnetstat_kvm()
213 if (nhosts && !checkhost(&inpcb->inp_inc)) in fetchnetstat_kvm()
[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