Lines Matching refs:pkth
520 struct pcap_pkthdr pkth; in usb_read_linux() local
564 if (gettimeofday(&pkth.ts, NULL) < 0) in usb_read_linux()
571 uhdr->ts_sec = pkth.ts.tv_sec; in usb_read_linux()
572 uhdr->ts_usec = pkth.ts.tv_usec; in usb_read_linux()
602 pkth.caplen = sizeof(pcap_usb_header); in usb_read_linux()
650 pkth.len = urb_len+pkth.caplen; in usb_read_linux()
679 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < (bpf_u_int32)handle->snapshot)) in usb_read_linux()
686 pkth.caplen++; in usb_read_linux()
692 if (pkth.caplen > (bpf_u_int32)handle->snapshot) in usb_read_linux()
693 pkth.caplen = (bpf_u_int32)handle->snapshot; in usb_read_linux()
697 pkth.len, pkth.caplen)) { in usb_read_linux()
699 callback(user, &pkth, handle->buffer); in usb_read_linux()
827 struct pcap_pkthdr pkth; in usb_read_linux_bin() local
859 pkth.caplen = clen + sizeof(pcap_usb_header); in usb_read_linux_bin()
860 pkth.len = info.hdr->data_len + sizeof(pcap_usb_header); in usb_read_linux_bin()
861 pkth.ts.tv_sec = info.hdr->ts_sec; in usb_read_linux_bin()
862 pkth.ts.tv_usec = info.hdr->ts_usec; in usb_read_linux_bin()
866 pkth.len, pkth.caplen)) { in usb_read_linux_bin()
868 callback(user, &pkth, handle->buffer); in usb_read_linux_bin()
886 struct pcap_pkthdr pkth; in usb_read_linux_mmap() local
940 pkth.caplen = clen + sizeof(pcap_usb_header_mmapped); in usb_read_linux_mmap()
941 pkth.len = hdr->data_len + sizeof(pcap_usb_header_mmapped); in usb_read_linux_mmap()
942 pkth.ts.tv_sec = hdr->ts_sec; in usb_read_linux_mmap()
943 pkth.ts.tv_usec = hdr->ts_usec; in usb_read_linux_mmap()
947 pkth.len, pkth.caplen)) { in usb_read_linux_mmap()
949 callback(user, &pkth, (u_char*) hdr); in usb_read_linux_mmap()