/freebsd-12-stable/sys/kern/ |
H A D | subr_unit.c | 238 check_unrhdr(struct unrhdr *uh, int line) argument 245 y = uh->first; 247 TAILQ_FOREACH(up, &uh->head, list) { 249 if (up->ptr != uh && up->ptr != NULL) { 261 KASSERT (y == uh->busy, 263 uh->busy, y, line)); 264 KASSERT (z == uh->alloc, 266 uh->alloc, z, line)); 272 check_unrhdr(struct unrhdr *uh __unused, int line __unused) 286 new_unr(struct unrhdr *uh, voi argument 304 delete_unr(struct unrhdr *uh, void *ptr) argument 314 clean_unrhdrl(struct unrhdr *uh) argument 329 clean_unrhdr(struct unrhdr *uh) argument 338 init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) argument 365 struct unrhdr *uh; local 373 delete_unrhdr(struct unrhdr *uh) argument 385 clear_unrhdr(struct unrhdr *uh) argument 405 is_bitmap(struct unrhdr *uh, struct unr *up) argument 420 optimize_unr(struct unrhdr *uh) argument 533 collapse_unr(struct unrhdr *uh, struct unr *up) argument 605 alloc_unrl(struct unrhdr *uh) argument 653 alloc_unr(struct unrhdr *uh) argument 665 alloc_unr_specificl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument 767 alloc_unr_specific(struct unrhdr *uh, u_int item) argument 795 free_unrl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument 903 free_unr(struct unrhdr *uh, u_int item) argument 931 print_unr(struct unrhdr *uh, struct unr *up) argument 955 print_unrhdr(struct unrhdr *uh) argument 975 test_alloc_unr(struct unrhdr *uh, u_int i, char a[]) argument 995 test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) argument 1019 struct unrhdr *uh; local [all...] |
H A D | kern_umtx.c | 581 struct umtxq_queue *uh; local 586 LIST_FOREACH(uh, &uc->uc_queue[q], link) { 587 if (umtx_key_match(&uh->key, key)) 588 return (uh); 597 struct umtxq_queue *uh; local 603 uh = umtxq_queue_lookup(&uq->uq_key, q); 604 if (uh != NULL) { 607 uh = uq->uq_spare_queue; 608 uh->key = uq->uq_key; 609 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, lin 632 struct umtxq_queue *uh; local 664 struct umtxq_queue *uh; local 680 struct umtxq_queue *uh; local 699 struct umtxq_queue *uh; local [all...] |
/freebsd-12-stable/stand/libsa/ |
H A D | udp.c | 65 struct udphdr *uh; local 82 uh = (struct udphdr *)pkt - 1; 83 len += sizeof(*uh); 85 uh->uh_sport = d->myport; 86 uh->uh_dport = d->destport; 87 uh->uh_ulen = htons(len); 90 ui->ui_len = uh->uh_ulen; 95 uh->uh_sum = in_cksum(ui, len + sizeof (struct ip)); 98 cc = sendip(d, uh, len, IPPROTO_UDP); 103 return (cc - sizeof(*uh)); 113 struct udphdr *uh; local [all...] |
H A D | ip.c | 188 struct udphdr *uh; local 202 if (n == -1 || n < sizeof(*ip) + sizeof(*uh)) { 276 uh = (struct udphdr *)((uintptr_t)ip + sizeof (*ip)); 279 bcopy(((u_char *)ip) + hlen, uh, uh->uh_ulen - hlen);
|
H A D | tftp.c | 228 struct udphdr *uh; local 229 uh = (struct udphdr *)t - 1; 230 d->destport = uh->uh_sport; 250 struct udphdr *uh; local 266 uh = (struct udphdr *)t - 1; 267 d->destport = uh->uh_sport;
|
/freebsd-12-stable/sys/arm64/arm64/ |
H A D | undefined.c | 99 struct undef_handler *uh; local 101 uh = malloc(sizeof(*uh), M_UNDEF, M_WAITOK); 102 uh->uh_handler = func; 103 LIST_INSERT_HEAD(&undef_handlers[user ? 0 : 1], uh, uh_link); 105 return (uh); 111 struct undef_handler *uh; local 113 uh = handle; 114 LIST_REMOVE(uh, uh_link); 121 struct undef_handler *uh; local [all...] |
/freebsd-12-stable/contrib/tcpdump/ |
H A D | print-usb.c | 84 usb_header_print(netdissect_options *ndo, const pcap_usb_header *uh) argument 88 switch(uh->transfer_type) 106 switch(uh->event_type) 121 direction = get_direction(uh->transfer_type, uh->event_type); 126 ND_PRINT((ndo, " %d:%d:%d", uh->bus_id, uh->device_address, uh->endpoint_number & 0x7f));
|
H A D | print-sctp.c | 257 struct sctpChunkDesc uh; member in struct:sctpUnifiedInit 288 struct sctpChunkDesc uh; member in struct:sctpUnifiedSack 324 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbort 329 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortLight 334 struct sctpChunkDesc uh; member in struct:sctpUnifiedAbortHeavy 347 struct sctpChunkDesc uh; member in struct:sctpUnifiedShutdown 361 struct sctpChunkDesc uh; member in struct:sctpUnifiedOpError 367 struct sctpChunkDesc uh; member in struct:sctpUnifiedStreamError 375 struct sctpChunkDesc uh; member in struct:staleCookieMsg 386 struct sctpChunkDesc uh; member in struct:sctpUnifiedSingleMsg 397 struct sctpChunkDesc uh; member in struct:sctpUnifiedDatagram 402 struct sctpChunkDesc uh; member in struct:sctpECN_echo 408 struct sctpChunkDesc uh; member in struct:sctpCWR [all...] |
/freebsd-12-stable/sys/arm/arm/ |
H A D | undefined.c | 113 struct undefined_handler *uh; local 119 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK); 120 uh->uh_handler = handler; 121 install_coproc_handler_static(coproc, uh); 122 return uh; 126 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument 129 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link); 135 struct undefined_handler *uh = cookie; local 137 LIST_REMOVE(uh, uh_lin 215 struct undefined_handler *uh; local [all...] |
/freebsd-12-stable/tools/tools/net80211/wesside/dics/ |
H A D | dics.c | 165 struct udphdr* uh; 171 uh = (struct udphdr*) ((char*)iph + 20); 173 if ( htons(uh->uh_dport) != DPORT) 181 *port = ntohs(uh->uh_sport); 232 struct udphdr* uh; local 258 uh = (struct udphdr*) ((char*)iph + 20); 259 uh->uh_sport = htons(DPORT); 260 uh->uh_dport = htons(port); 261 uh->uh_ulen = htons(8+dlen); 262 uh [all...] |
/freebsd-12-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 87 struct udphdr *uh; local 120 uh = (struct udphdr *)((caddr_t)ip + ip_hlen); 122 common.port.dst ^= uh->uh_sport; 123 common.port.src ^= uh->uh_dport;
|
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | ip.c | 305 const struct udphdr *uh; local 355 uh = (const struct udphdr *)payload; 356 sport = ntohs(uh->uh_sport); 357 dport = ntohs(uh->uh_dport); 498 ip_LogDNS(const struct udphdr *uh, const char *direction) argument 506 ptr = (const char *)uh + sizeof *uh; 507 len = ntohs(uh->uh_ulen) - sizeof *uh; 569 const struct udphdr *uh; local [all...] |
/freebsd-12-stable/sys/netinet6/ |
H A D | udp6_usrreq.c | 210 struct udphdr *uh; local 234 uh = (struct udphdr *)((caddr_t)ip6 + off); 241 if (uh->uh_dport == 0) 245 ulen = ntohs((u_short)uh->uh_ulen); 259 if (uh->uh_sum == 0) { 268 if (uh->uh_sum == 0) { 294 fromsa[0].sin6_port = uh->uh_sport; 296 fromsa[1].sin6_port = uh->uh_dport; 325 if (inp->inp_lport != uh->uh_dport) 328 inp->inp_fport != uh 545 struct udphdr uh; local [all...] |
H A D | in6_rss.c | 177 const struct udphdr *uh; local 321 uh = (const struct udphdr *)((c_caddr_t)ip6 + off); 323 uh->uh_sport, 324 uh->uh_dport,
|
/freebsd-12-stable/sys/netinet/libalias/ |
H A D | alias_nbt.c | 334 struct udphdr *uh; local 346 uh = (struct udphdr *)ip_next(pip); 347 pmax = (char *)uh + ntohs(uh->uh_ulen); 349 ndh = (NbtDataHeader *)udp_next(uh); 380 if (uh->uh_sum != 0) { 392 ADJUST_CHECKSUM(acc, uh->uh_sum); 762 struct udphdr *uh; local 778 uh = (struct udphdr *)ip_next(pip); 779 nbtarg.uh_sum = &(uh [all...] |
/freebsd-12-stable/sys/netinet/ |
H A D | udp_usrreq.c | 393 struct udphdr *uh; local 431 uh = (struct udphdr *)((caddr_t)ip + iphlen); 437 if (uh->uh_dport == 0) 447 udp_in[0].sin_port = uh->uh_sport; 451 udp_in[1].sin_port = uh->uh_dport; 458 len = ntohs((u_short)uh->uh_ulen); 487 if (uh->uh_sum) { 505 uh->uh_ulen : htons(ip_len); 535 if (inp->inp_lport != uh->uh_dport) 548 inp->inp_fport != uh 783 struct udphdr *uh; local [all...] |
H A D | in_rss.c | 175 const struct udphdr *uh; local 296 uh = (const struct udphdr *)((c_caddr_t)ip + iphlen); 302 uh->uh_sport, 303 uh->uh_dport,
|
/freebsd-12-stable/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_printf.c | 142 uint32_t ul, uh; local 163 uh = rand(); 164 u.bits = (uint64_t)uh << 32 | ul;
|
/freebsd-12-stable/sys/netgraph/ |
H A D | ng_checksum.c | 377 struct udphdr *uh; local 380 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); 382 uh->uh_sum = in_pseudo(ip4->ip_src.s_addr, 386 uh->uh_sum = in_cksum_skip(m, 389 if (uh->uh_sum == 0) 390 uh->uh_sum = 0xffff; 502 struct udphdr *uh; local 505 uh = (struct udphdr *) mtodo(m, l3_offset + hlen); 507 uh->uh_sum = in6_cksum_pseudo(ip6, plen - hlen, nxt, 0); 510 uh [all...] |
/freebsd-12-stable/sys/sys/ |
H A D | systm.h | 527 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex); 528 void delete_unrhdr(struct unrhdr *uh); 529 void clear_unrhdr(struct unrhdr *uh); 530 void clean_unrhdr(struct unrhdr *uh); 531 void clean_unrhdrl(struct unrhdr *uh); 532 int alloc_unr(struct unrhdr *uh); 533 int alloc_unr_specific(struct unrhdr *uh, u_int item); 534 int alloc_unrl(struct unrhdr *uh); 535 void free_unr(struct unrhdr *uh, u_int item);
|
/freebsd-12-stable/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel.c | 216 struct udphdr *uh; local 241 uh = (struct udphdr *)(ip6 + 1); 242 *((uint16_t *) &tuple[37]) = uh->uh_dport; 243 *((uint16_t *) &tuple[39]) = uh->uh_sport; 269 uh = (struct udphdr *)(ip + 1); 270 *((uint16_t *) &tuple[13]) = uh->uh_dport; 271 *((uint16_t *) &tuple[15]) = uh->uh_sport;
|
H A D | dn_sched_fq_pie.c | 794 struct udphdr *uh; local 819 uh = (struct udphdr *)(ip6 + 1); 820 *((uint16_t *) &tuple[37]) = uh->uh_dport; 821 *((uint16_t *) &tuple[39]) = uh->uh_sport; 846 uh = (struct udphdr *)(ip + 1); 847 *((uint16_t *) &tuple[13]) = uh->uh_dport; 848 *((uint16_t *) &tuple[15]) = uh->uh_sport;
|
/freebsd-12-stable/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 169 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp); 868 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries); 913 uh.td_dup.index_entries) { 976 LIST_FOREACH(de, duphead, uh.td_dup.entries) { 1011 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); 1012 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); 1023 de = LIST_NEXT(de, uh.td_dup.index_entries); 1030 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); 1031 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); 1042 uh [all...] |
/freebsd-12-stable/sys/netipsec/ |
H A D | ipsec.c | 523 struct udphdr uh; local 542 m_copydata(m, off, sizeof (uh), (caddr_t) &uh); 543 spidx->src.sin.sin_port = uh.uh_sport; 544 spidx->dst.sin.sin_port = uh.uh_dport; 684 struct udphdr uh; local 718 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); 719 spidx->src.sin6.sin6_port = uh.uh_sport; 720 spidx->dst.sin6.sin6_port = uh [all...] |
/freebsd-12-stable/sys/net/ |
H A D | if_gre.c | 696 struct udphdr *uh; 767 uh = (struct udphdr *)mtodo(m, len); 768 uh->uh_sport |= htons(V_ipport_hifirstauto) | 770 uh->uh_sport = htons(ntohs(uh->uh_sport) % 772 uh->uh_ulen = htons(m->m_pkthdr.len - len); 773 uh->uh_sum = gre_cksum_add(uh->uh_sum,
|