Lines Matching defs:udbinfo
156 struct inpcbinfo udbinfo;
185 &udbinfo.ipi_count, 0, "Number of active PCBs");
218 udbinfo.listhead = &udb;
219 udbinfo.hashbase = hashinit(UDBHASHSIZE, M_PCB, &udbinfo.hashmask);
220 udbinfo.porthashbase = hashinit(UDBHASHSIZE, M_PCB,
221 &udbinfo.porthashmask);
224 udbinfo.ipi_zone = (void *) zinit(str_size, 80000*str_size, 8192, "udpcb");
226 pcbinfo = &udbinfo;
239 in_pcb_nat_init(&udbinfo, AF_INET, IPPROTO_UDP, SOCK_DGRAM);
241 udbinfo.ipi_zone = zinit("udpcb", sizeof(struct inpcb), maxsockets,
247 stat = in_pcb_new_share_client(&udbinfo, &fake_owner);
254 in_pcb_grab_port(&udbinfo, 0, laddr, &lport, faddr, 1600, 0, fake_owner);
257 stat = in_pcb_rem_share_client(&udbinfo, fake_owner);
260 stat = in_pcb_new_share_client(&udbinfo, &fake_owner);
267 stat = in_pcb_grab_port(&udbinfo, 0, laddr, &lport, faddr, 1600, 0, fake_owner);
284 struct inpcbinfo *pcbinfo = &udbinfo;
431 if (inp->inp_socket == &udbinfo.nat_dummy_socket)
583 inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport,
806 inp = in_pcblookup_hash(&udbinfo, faddr, uh->uh_dport,
818 in_pcbnotifyall(&udbinfo, faddr, inetctlerrmap[cmd], notify);
889 lck_rw_lock_exclusive(udbinfo.mtx);
891 n = udbinfo.ipi_count;
894 lck_rw_done(udbinfo.mtx);
899 lck_rw_done(udbinfo.mtx);
906 gencnt = udbinfo.ipi_gencnt;
907 n = udbinfo.ipi_count;
916 lck_rw_done(udbinfo.mtx);
923 lck_rw_done(udbinfo.mtx);
929 lck_rw_done(udbinfo.mtx);
933 for (inp = LIST_FIRST(udbinfo.listhead), i = 0; inp && i < n;
965 xig.xig_gen = udbinfo.ipi_gencnt;
967 xig.xig_count = udbinfo.ipi_count;
971 lck_rw_done(udbinfo.mtx);
1241 error = in_pcballoc(so, &udbinfo, p);
1390 struct inpcbinfo *pcbinfo = &udbinfo;
1435 struct inpcbinfo *pcbinfo = &udbinfo;
1451 if (inp->inp_socket == &udbinfo.nat_dummy_socket)