Lines Matching defs:hdr

103 	pcap_usb_header *hdr;
125 #define MON_BIN_SETUP 0x1 /* setup hdr is present*/
678 info.hdr = (pcap_usb_header*) handle->buffer;
702 * info.hdr->data_len is the number of bytes of isochronous
707 * If info.hdr->data_flag is non-zero, there's no URB data;
708 * info.hdr->urb_len is the size of the buffer into which
710 * of data transferred. If info.hdr->data_flag is zero,
711 * there is URB data, and info.hdr->urb_len is the number
719 if (info.hdr->data_len < clen)
720 clen = info.hdr->data_len;
721 info.hdr->data_len = clen;
723 if (info.hdr->data_flag) {
726 * info.hdr->data_len (so that it's >= the captured
729 pkth.len = sizeof(pcap_usb_header) + info.hdr->data_len;
733 * info.hdr->urb_len, so that it includes data
737 pkth.len = sizeof(pcap_usb_header) + info.hdr->urb_len;
739 pkth.ts.tv_sec = (time_t)info.hdr->ts_sec;
740 pkth.ts.tv_usec = info.hdr->ts_usec;
766 pcap_usb_header_mmapped* hdr;
853 hdr = (pcap_usb_header_mmapped*) bp;
856 if (hdr->event_type == '@')
860 * hdr->data_len is the number of bytes of
864 * If hdr->data_flag is non-zero, there's no
865 * URB data; hdr->urb_len is the size of the
868 * If hdr->data_flag is zero, there is URB data,
869 * and hdr->urb_len is the number of bytes
880 if (hdr->data_len < clen)
881 clen = hdr->data_len;
883 if (hdr->data_flag) {
886 * on hdr->data_len (so that it's >= the
890 hdr->data_len;
894 * on hdr->urb_len, so that it includes
899 (hdr->ndesc * sizeof (usb_isodesc)) + hdr->urb_len;
908 pkth.ts.tv_sec = (time_t)hdr->ts_sec;
909 pkth.ts.tv_usec = hdr->ts_usec;
912 pcap_filter(handle->fcode.bf_insns, (u_char*) hdr,
915 callback(user, &pkth, (u_char*) hdr);