Searched refs:pcbinfo (Results 1 - 10 of 10) sorted by relevance

/freebsd-10.3-release/sys/netinet/
H A Din_pcbgroup.c107 in_pcbgroup_init(struct inpcbinfo *pcbinfo, u_int hashfields, argument
135 pcbinfo->ipi_hashfields = hashfields;
136 pcbinfo->ipi_pcbgroups = malloc(numpcbgroups *
137 sizeof(*pcbinfo->ipi_pcbgroups), M_PCB, M_WAITOK | M_ZERO);
138 pcbinfo->ipi_npcbgroups = numpcbgroups;
139 pcbinfo->ipi_wildbase = hashinit(hash_nelements, M_PCB,
140 &pcbinfo->ipi_wildmask);
141 for (pgn = 0; pgn < pcbinfo->ipi_npcbgroups; pgn++) {
142 pcbgroup = &pcbinfo->ipi_pcbgroups[pgn];
157 in_pcbgroup_destroy(struct inpcbinfo *pcbinfo) argument
185 in_pcbgroup_getbucket(struct inpcbinfo *pcbinfo, uint32_t hash) argument
196 in_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t hash) argument
203 in_pcbgroup_bymbuf(struct inpcbinfo *pcbinfo, struct mbuf *m) argument
211 in_pcbgroup_bytuple(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport, struct in_addr faddr, u_short fport) argument
243 struct inpcbinfo *pcbinfo; local
265 struct inpcbinfo *pcbinfo; local
312 in_pcbgroup_update_internal(struct inpcbinfo *pcbinfo, struct inpcbgroup *newpcbgroup, struct inpcb *inp) argument
363 struct inpcbinfo *pcbinfo; local
389 struct inpcbinfo *pcbinfo; local
453 in_pcbgroup_enabled(struct inpcbinfo *pcbinfo) argument
[all...]
H A Din_pcb.c133 static struct inpcb *in_pcblookup_hash_locked(struct inpcbinfo *pcbinfo,
201 * the pcbinfo lock held, and often, the inpcb lock held, as these utility
210 in_pcbinfo_init(struct inpcbinfo *pcbinfo, const char *name, argument
216 INP_INFO_LOCK_INIT(pcbinfo, name);
217 INP_HASH_LOCK_INIT(pcbinfo, "pcbinfohash"); /* XXXRW: argument? */
219 pcbinfo->ipi_vnet = curvnet;
221 pcbinfo->ipi_listhead = listhead;
222 LIST_INIT(pcbinfo->ipi_listhead);
223 pcbinfo->ipi_count = 0;
224 pcbinfo
243 in_pcbinfo_destroy(struct inpcbinfo *pcbinfo) argument
265 in_pcballoc(struct socket *so, struct inpcbinfo *pcbinfo) argument
354 struct inpcbinfo *pcbinfo; local
502 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
1116 struct inpcbinfo *pcbinfo; local
1145 struct inpcbinfo *pcbinfo; local
1193 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
1331 in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr faddr, int errno, struct inpcb *(*notify)(struct inpcb *, int)) argument
1357 in_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp) argument
1402 in_pcblookup_local(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport, int lookupflags, struct ucred *cred) argument
1524 in_pcblookup_group(struct inpcbinfo *pcbinfo, struct inpcbgroup *pcbgroup, struct in_addr faddr, u_int fport_arg, struct in_addr laddr, u_int lport_arg, int lookupflags, struct ifnet *ifp) argument
1667 in_pcblookup_hash_locked(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport_arg, struct in_addr laddr, u_int lport_arg, int lookupflags, struct ifnet *ifp) argument
1795 in_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument
1829 in_pcblookup(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument
1854 in_pcblookup_mbuf(struct inpcbinfo *pcbinfo, struct in_addr faddr, u_int fport, struct in_addr laddr, u_int lport, int lookupflags, struct ifnet *ifp, struct mbuf *m) argument
1893 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
1980 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
2024 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
[all...]
H A Dudp_usrreq.c378 struct inpcbinfo *pcbinfo; local
500 pcbinfo = get_inpcbinfo(pr);
507 INP_INFO_RLOCK(pcbinfo);
600 INP_INFO_RUNLOCK(pcbinfo);
606 INP_INFO_RUNLOCK(pcbinfo);
627 inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport,
635 inp = in_pcblookup(pcbinfo, ip->ip_src,
645 inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport,
727 struct inpcbinfo *pcbinfo)
756 inp = in_pcblookup(pcbinfo, fadd
726 udp_common_ctlinput(int cmd, struct sockaddr *sa, void *vip, struct inpcbinfo *pcbinfo) argument
1087 struct inpcbinfo *pcbinfo; local
1573 struct inpcbinfo *pcbinfo; local
1593 struct inpcbinfo *pcbinfo; local
1654 struct inpcbinfo *pcbinfo; local
1672 struct inpcbinfo *pcbinfo; local
1692 struct inpcbinfo *pcbinfo; local
1723 struct inpcbinfo *pcbinfo; local
1746 struct inpcbinfo *pcbinfo; local
[all...]
H A Draw_ip.c151 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
155 INP_INFO_WLOCK_ASSERT(pcbinfo);
162 inp->inp_faddr.s_addr, pcbinfo->ipi_hashmask);
165 pcbhash = &pcbinfo->ipi_hashbase[hash];
852 struct inpcbinfo *pcbinfo; local
854 pcbinfo = inp->inp_pcbinfo;
855 INP_INFO_WLOCK(pcbinfo);
864 INP_INFO_WUNLOCK(pcbinfo);
H A Din_pcb.h135 * few fields also require the global pcbinfo lock for the inpcb to be held,
147 * (p) - Protected by the pcbinfo lock for the inpcb
278 * Each pcbinfo is protected by two locks: ipi_lock and ipi_hash_lock,
568 * Constants for pcbinfo.ipi_hashfields.
651 void in_pcbnotifyall(struct inpcbinfo *pcbinfo, struct in_addr,
/freebsd-10.3-release/sys/netinet6/
H A Din6_pcbgroup.c50 in6_pcbgroup_getbucket(struct inpcbinfo *pcbinfo, uint32_t hash) argument
53 return (hash % pcbinfo->ipi_npcbgroups);
61 in6_pcbgroup_byhash(struct inpcbinfo *pcbinfo, u_int hashtype, uint32_t hash) argument
68 in6_pcbgroup_bymbuf(struct inpcbinfo *pcbinfo, struct mbuf *m) argument
71 return (in6_pcbgroup_byhash(pcbinfo, M_HASHTYPE_GET(m),
76 in6_pcbgroup_bytuple(struct inpcbinfo *pcbinfo, const struct in6_addr *laddrp, argument
81 switch (pcbinfo->ipi_hashfields) {
93 return (&pcbinfo->ipi_pcbgroups[in6_pcbgroup_getbucket(pcbinfo,
H A Din6_pcb.c115 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
121 INP_HASH_WLOCK_ASSERT(pcbinfo);
199 t = in6_pcblookup_local(pcbinfo,
218 t = in_pcblookup_local(pcbinfo,
233 t = in6_pcblookup_local(pcbinfo, &sin6->sin6_addr,
255 t = in_pcblookup_local(pcbinfo, sin.sin_addr,
380 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
386 INP_HASH_WLOCK_ASSERT(pcbinfo);
395 if (in6_pcblookup_hash_locked(pcbinfo, &sin6->sin6_addr,
573 in6_pcbnotify(struct inpcbinfo *pcbinfo, struc argument
672 in6_pcblookup_local(struct inpcbinfo *pcbinfo, struct in6_addr *laddr, u_short lport, int lookupflags, struct ucred *cred) argument
765 in6_pcbpurgeif0(struct inpcbinfo *pcbinfo, struct ifnet *ifp) argument
839 in6_pcblookup_group(struct inpcbinfo *pcbinfo, struct inpcbgroup *pcbgroup, struct in6_addr *faddr, u_int fport_arg, struct in6_addr *laddr, u_int lport_arg, int lookupflags, struct ifnet *ifp) argument
973 in6_pcblookup_hash_locked(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport_arg, struct in6_addr *laddr, u_int lport_arg, int lookupflags, struct ifnet *ifp) argument
1095 in6_pcblookup_hash(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument
1129 in6_pcblookup(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp) argument
1154 in6_pcblookup_mbuf(struct inpcbinfo *pcbinfo, struct in6_addr *faddr, u_int fport, struct in6_addr *laddr, u_int lport, int lookupflags, struct ifnet *ifp, struct mbuf *m) argument
[all...]
H A Dudp6_usrreq.c196 struct inpcbinfo *pcbinfo; local
285 pcbinfo = get_inpcbinfo(nxt);
291 INP_INFO_RLOCK(pcbinfo);
403 INP_INFO_RUNLOCK(pcbinfo);
426 inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_src,
435 inp = in6_pcblookup(pcbinfo, &ip6->ip6_src,
445 inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_src,
489 INP_INFO_RUNLOCK(pcbinfo);
498 struct inpcbinfo *pcbinfo)
554 (void)in6_pcbnotify(pcbinfo, s
497 udp6_common_ctlinput(int cmd, struct sockaddr *sa, void *d, struct inpcbinfo *pcbinfo) argument
869 struct inpcbinfo *pcbinfo; local
900 struct inpcbinfo *pcbinfo; local
948 struct inpcbinfo *pcbinfo; local
993 struct inpcbinfo *pcbinfo; local
1023 struct inpcbinfo *pcbinfo; local
1086 struct inpcbinfo *pcbinfo; local
1107 struct inpcbinfo *pcbinfo; local
1148 struct inpcbinfo *pcbinfo; local
[all...]
H A Din6_src.c921 struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; local
925 INP_HASH_WLOCK_ASSERT(pcbinfo);
/freebsd-10.3-release/usr.bin/netstat/
H A Dinet.c185 struct inpcbinfo pcbinfo; local
198 kread(off, &pcbinfo, sizeof(pcbinfo));
201 (pcbinfo.ipi_count + pcbinfo.ipi_count / 8) *
205 (pcbinfo.ipi_count + pcbinfo.ipi_count / 8) *
230 xig.xig_count = pcbinfo.ipi_count;
231 xig.xig_gen = pcbinfo.ipi_gencnt;
242 KREAD(pcbinfo
[all...]

Completed in 258 milliseconds