/freebsd-11-stable/sys/kern/ |
H A D | subr_unit.c | 223 check_unrhdr(struct unrhdr *uh, int line) argument 230 y = uh->first; 232 TAILQ_FOREACH(up, &uh->head, list) { 234 if (up->ptr != uh && up->ptr != NULL) { 246 KASSERT (y == uh->busy, 248 uh->busy, y, line)); 249 KASSERT (z == uh->alloc, 251 uh->alloc, z, line)); 257 check_unrhdr(struct unrhdr *uh __unused, int line __unused) 271 new_unr(struct unrhdr *uh, voi argument 289 delete_unr(struct unrhdr *uh, void *ptr) argument 299 clean_unrhdrl(struct unrhdr *uh) argument 314 clean_unrhdr(struct unrhdr *uh) argument 323 init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex) argument 350 struct unrhdr *uh; local 358 delete_unrhdr(struct unrhdr *uh) argument 370 is_bitmap(struct unrhdr *uh, struct unr *up) argument 385 optimize_unr(struct unrhdr *uh) argument 498 collapse_unr(struct unrhdr *uh, struct unr *up) argument 570 alloc_unrl(struct unrhdr *uh) argument 618 alloc_unr(struct unrhdr *uh) argument 630 alloc_unr_specificl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument 732 alloc_unr_specific(struct unrhdr *uh, u_int item) argument 760 free_unrl(struct unrhdr *uh, u_int item, void **p1, void **p2) argument 868 free_unr(struct unrhdr *uh, u_int item) argument 896 print_unr(struct unrhdr *uh, struct unr *up) argument 920 print_unrhdr(struct unrhdr *uh) argument 940 test_alloc_unr(struct unrhdr *uh, u_int i, char a[]) argument 960 test_alloc_unr_specific(struct unrhdr *uh, u_int i, char a[]) argument 984 struct unrhdr *uh; local [all...] |
H A D | kern_umtx.c | 579 struct umtxq_queue *uh; local 584 LIST_FOREACH(uh, &uc->uc_queue[q], link) { 585 if (umtx_key_match(&uh->key, key)) 586 return (uh); 595 struct umtxq_queue *uh; local 601 uh = umtxq_queue_lookup(&uq->uq_key, q); 602 if (uh != NULL) { 605 uh = uq->uq_spare_queue; 606 uh->key = uq->uq_key; 607 LIST_INSERT_HEAD(&uc->uc_queue[q], uh, lin 630 struct umtxq_queue *uh; local 663 struct umtxq_queue *uh; local 681 struct umtxq_queue *uh; local 728 struct umtxq_queue *uh; local [all...] |
/freebsd-11-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 | 226 struct udphdr *uh; local 227 uh = (struct udphdr *)t - 1; 228 d->destport = uh->uh_sport; 248 struct udphdr *uh; local 264 uh = (struct udphdr *)t - 1; 265 d->destport = uh->uh_sport;
|
/freebsd-11-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-11-stable/sys/arm/arm/ |
H A D | undefined.c | 111 struct undefined_handler *uh; local 117 uh = malloc(sizeof(*uh), M_TEMP, M_WAITOK); 118 uh->uh_handler = handler; 119 install_coproc_handler_static(coproc, uh); 120 return uh; 124 install_coproc_handler_static(int coproc, struct undefined_handler *uh) argument 127 LIST_INSERT_HEAD(&undefined_handlers[coproc], uh, uh_link); 133 struct undefined_handler *uh = cookie; local 135 LIST_REMOVE(uh, uh_lin 191 struct undefined_handler *uh; local [all...] |
/freebsd-11-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-11-stable/sys/dev/ixgbe/ |
H A D | if_fdir.c | 86 struct udphdr *uh; local 119 uh = (struct udphdr *)((caddr_t)ip + ip_hlen); 121 common.port.dst ^= uh->uh_sport; 122 common.port.src ^= uh->uh_dport;
|
/freebsd-11-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-11-stable/sys/netinet6/ |
H A D | udp6_usrreq.c | 196 struct udphdr *uh; local 213 uh = (struct udphdr *)((caddr_t)ip6 + off); 215 IP6_EXTHDR_GET(uh, struct udphdr *, m, off, sizeof(*uh)); 216 if (!uh) 226 if (uh->uh_dport == 0) 230 ulen = ntohs((u_short)uh->uh_ulen); 244 if (uh->uh_sum == 0) { 253 if (uh->uh_sum == 0) { 279 fromsa.sin6_port = uh 497 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-11-stable/sys/netinet/libalias/ |
H A D | alias_nbt.c | 343 struct udphdr *uh; local 355 uh = (struct udphdr *)ip_next(pip); 356 pmax = (char *)uh + ntohs(uh->uh_ulen); 358 ndh = (NbtDataHeader *)udp_next(uh); 389 if (uh->uh_sum != 0) { 401 ADJUST_CHECKSUM(acc, uh->uh_sum); 788 struct udphdr *uh; local 804 uh = (struct udphdr *)ip_next(pip); 805 nbtarg.uh_sum = &(uh [all...] |
/freebsd-11-stable/contrib/netbsd-tests/lib/libc/stdio/ |
H A D | t_printf.c | 152 uint32_t ul, uh; local 173 uh = rand(); 174 u.bits = (uint64_t)uh << 32 | ul;
|
/freebsd-11-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-11-stable/sys/sys/ |
H A D | systm.h | 458 void init_unrhdr(struct unrhdr *uh, int low, int high, struct mtx *mutex); 459 void delete_unrhdr(struct unrhdr *uh); 460 void clean_unrhdr(struct unrhdr *uh); 461 void clean_unrhdrl(struct unrhdr *uh); 462 int alloc_unr(struct unrhdr *uh); 463 int alloc_unr_specific(struct unrhdr *uh, u_int item); 464 int alloc_unrl(struct unrhdr *uh); 465 void free_unr(struct unrhdr *uh, u_int item);
|
/freebsd-11-stable/sys/netinet/ |
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,
|
H A D | udp_usrreq.c | 381 struct udphdr *uh; local 419 uh = (struct udphdr *)((caddr_t)ip + iphlen); 425 if (uh->uh_dport == 0) 435 udp_in.sin_port = uh->uh_sport; 442 len = ntohs((u_short)uh->uh_ulen); 471 if (uh->uh_sum) { 489 uh->uh_ulen : htons(ip_len); 520 if (inp->inp_lport != uh->uh_dport) 533 inp->inp_fport != uh->uh_sport) 580 last, uh); 750 struct udphdr *uh; local [all...] |
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel.c | 217 struct udphdr *uh; local 242 uh = (struct udphdr *)(ip6 + 1); 243 *((uint16_t *) &tuple[37]) = uh->uh_dport; 244 *((uint16_t *) &tuple[39]) = uh->uh_sport; 270 uh = (struct udphdr *)(ip + 1); 271 *((uint16_t *) &tuple[13]) = uh->uh_dport; 272 *((uint16_t *) &tuple[15]) = uh->uh_sport;
|
H A D | dn_sched_fq_pie.c | 791 struct udphdr *uh; local 816 uh = (struct udphdr *)(ip6 + 1); 817 *((uint16_t *) &tuple[37]) = uh->uh_dport; 818 *((uint16_t *) &tuple[39]) = uh->uh_sport; 843 uh = (struct udphdr *)(ip + 1); 844 *((uint16_t *) &tuple[13]) = uh->uh_dport; 845 *((uint16_t *) &tuple[15]) = uh->uh_sport;
|
/freebsd-11-stable/sys/fs/tmpfs/ |
H A D | tmpfs_subr.c | 97 RB_PROTOTYPE_STATIC(tmpfs_dir, tmpfs_dirent, uh.td_entries, tmpfs_dirtree_cmp); 796 dc->tdc_current = LIST_NEXT(dc->tdc_current, uh.td_dup.entries); 841 uh.td_dup.index_entries) { 904 LIST_FOREACH(de, duphead, uh.td_dup.entries) { 939 LIST_INSERT_HEAD(dupindex, nde, uh.td_dup.index_entries); 940 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); 951 de = LIST_NEXT(de, uh.td_dup.index_entries); 958 LIST_INSERT_AFTER(pde, nde, uh.td_dup.index_entries); 959 LIST_INSERT_HEAD(duphead, nde, uh.td_dup.entries); 970 uh [all...] |
/freebsd-11-stable/sys/netipsec/ |
H A D | ipsec.c | 509 struct udphdr uh; local 528 m_copydata(m, off, sizeof (uh), (caddr_t) &uh); 529 spidx->src.sin.sin_port = uh.uh_sport; 530 spidx->dst.sin.sin_port = uh.uh_dport; 670 struct udphdr uh; local 704 m_copydata(m, off, sizeof(uh), (caddr_t)&uh); 705 spidx->src.sin6.sin6_port = uh.uh_sport; 706 spidx->dst.sin6.sin6_port = uh [all...] |
/freebsd-11-stable/tools/tools/net80211/wesside/wesside/ |
H A D | wesside.c | 780 struct udphdr* uh; local 803 uh = (struct udphdr*) ((char*)ih + 20); 804 uh->uh_sport = htons(floodport); 805 uh->uh_dport = htons(floodsport); 806 uh->uh_ulen = htons(8+PRGA_LEN); 807 uh->uh_sum = 0; 808 uh->uh_sum = udp_checksum((unsigned char*)uh, 8+PRGA_LEN, 1852 struct udphdr* uh; local 1911 uh [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf.c | 4517 struct udphdr *uh = pd->hdr.udp; local 4525 key.port[0] = uh->uh_sport; 4526 key.port[1] = uh->uh_dport; 4530 key.port[1] = uh->uh_sport; 4531 key.port[0] = uh->uh_dport; 4562 nk->port[pd->sidx] != uh->uh_sport) 4563 pf_change_ap(m, pd->src, &uh->uh_sport, pd->ip_sum, 4564 &uh->uh_sum, &nk->addr[pd->sidx], 4568 nk->port[pd->didx] != uh->uh_dport) 4569 pf_change_ap(m, pd->dst, &uh 4956 struct udphdr uh; local 6055 struct udphdr uh; local 6494 struct udphdr uh; local [all...] |