Home
last modified time | relevance | path

Searched refs:uhdr (Results 1 – 4 of 4) sorted by relevance

/freebsd/contrib/libpcap/
H A Dpcap-util.c247 pcap_usb_header_mmapped *uhdr = (pcap_usb_header_mmapped *)buf; in swap_linux_usb_header() local
263 uhdr->id = SWAPLL(uhdr->id); in swap_linux_usb_header()
270 uhdr->bus_id = SWAPSHORT(uhdr->bus_id); in swap_linux_usb_header()
277 uhdr->ts_sec = SWAPLL(uhdr->ts_sec); in swap_linux_usb_header()
282 uhdr->ts_usec = SWAPLONG(uhdr->ts_usec); in swap_linux_usb_header()
287 uhdr->status = SWAPLONG(uhdr->status); in swap_linux_usb_header()
292 uhdr->urb_len = SWAPLONG(uhdr->urb_len); in swap_linux_usb_header()
297 uhdr->data_len = SWAPLONG(uhdr->data_len); in swap_linux_usb_header()
299 if (uhdr->transfer_type == URB_ISOCHRONOUS) { in swap_linux_usb_header()
303 uhdr->s.iso.error_count = SWAPLONG(uhdr->s.iso.error_count); in swap_linux_usb_header()
[all …]
/freebsd/sys/net/
H A Dif_ovpn.c2227 struct udphdr *uhdr; in ovpn_udp_input() local
2257 if (m_length(m, NULL) < (off + sizeof(*uhdr) + ohdrlen)) { in ovpn_udp_input()
2263 m_copydata(m, off + sizeof(*uhdr), ohdrlen, (caddr_t)&tmphdr); in ovpn_udp_input()
2272 m = m_pullup(m, off + sizeof(*uhdr) + ohdrlen); in ovpn_udp_input()
2285 uhdr = mtodo(m, 0); in ovpn_udp_input()
2286 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2300 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
2310 m = m_pullup(m, sizeof(*uhdr) + ohdrlen); in ovpn_udp_input()
2316 uhdr = mtodo(m, 0); in ovpn_udp_input()
2317 ohdr = mtodo(m, sizeof(*uhdr)); in ovpn_udp_input()
[all …]
/freebsd/sys/dev/iwm/
H A Dif_iwm.c541 const struct iwm_tlv_ucode_header *uhdr; in iwm_read_firmware() local
580 uhdr = (const void *)fw->fw_fp->data; in iwm_read_firmware()
582 || le32toh(uhdr->magic) != IWM_TLV_UCODE_MAGIC) { in iwm_read_firmware()
590 IWM_UCODE_MAJOR(le32toh(uhdr->ver)), in iwm_read_firmware()
591 IWM_UCODE_MINOR(le32toh(uhdr->ver)), in iwm_read_firmware()
592 IWM_UCODE_API(le32toh(uhdr->ver))); in iwm_read_firmware()
593 data = uhdr->data; in iwm_read_firmware()
594 len = fw->fw_fp->datasize - sizeof(*uhdr); in iwm_read_firmware()
/freebsd/sys/netinet/
H A Dsctputil.c7140 struct udphdr *uhdr; in sctp_recv_udp_tunneled_packet() local
7149 uhdr = (struct udphdr *)((caddr_t)iph + off); in sctp_recv_udp_tunneled_packet()
7150 port = uhdr->uh_sport; in sctp_recv_udp_tunneled_packet()