Searched refs:pkth (Results 1 - 7 of 7) sorted by relevance

/external/libpcap/
H A Dpcap-bt-monitor-linux.c73 struct pcap_pkthdr pkth; local
84 memset(&pkth.ts, 0, sizeof(pkth.ts));
106 pkth.caplen = ret - MGMT_HDR_SIZE + sizeof(pcap_bluetooth_linux_monitor_header);
107 pkth.len = pkth.caplen;
113 memcpy(&pkth.ts, CMSG_DATA(cmsg), sizeof(pkth.ts));
122 pkth.len, pkth
[all...]
H A Dpcap-can-linux.c223 struct pcap_pkthdr pkth; local
238 pkth.caplen = recvmsg(handle->fd, &msg, 0);
244 } while ((pkth.caplen == -1) && (errno == EINTR));
246 if (pkth.caplen == -1)
255 pkth.caplen -= 8 - cf->can_dlc;
256 pkth.len = pkth.caplen;
260 if( -1 == gettimeofday(&pkth.ts, NULL) )
267 callback(user, &pkth, &handle->buffer[8]);
H A Dpcap-canusb-linux.c397 struct pcap_pkthdr pkth; local
406 pkth.caplen = pkth.len = n;
407 pkth.caplen -= 4;
408 pkth.caplen -= 8 - msg.length;
413 pkth.ts.tv_usec = firstpacket.tv_usec + (msg.timestamp % 100) * 10000;
414 pkth.ts.tv_sec = firstpacket.tv_usec + (msg.timestamp / 100);
415 if (pkth.ts.tv_usec > 1000000)
417 pkth.ts.tv_usec -= 1000000;
418 pkth
[all...]
H A Dpcap-bt-linux.c306 struct pcap_pkthdr pkth; local
335 pkth.caplen = ret;
346 memcpy(&pkth.ts, CMSG_DATA(cmsg),
347 sizeof pkth.ts);
357 pkth.caplen+=sizeof(pcap_bluetooth_h4_header);
358 pkth.len = pkth.caplen;
361 pkth.len, pkth.caplen)) {
362 callback(user, &pkth,
[all...]
H A Dpcap-usb-linux.c480 struct pcap_pkthdr pkth; local
524 if (gettimeofday(&pkth.ts, NULL) < 0)
531 uhdr->ts_sec = pkth.ts.tv_sec;
532 uhdr->ts_usec = pkth.ts.tv_usec;
562 pkth.caplen = sizeof(pcap_usb_header);
610 pkth.len = urb_len+pkth.caplen;
639 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot))
646 pkth.caplen++;
652 if (pkth
787 struct pcap_pkthdr pkth; local
846 struct pcap_pkthdr pkth; local
[all...]
H A Dpcap-dbus.c58 struct pcap_pkthdr pkth; local
89 pkth.caplen = pkth.len = raw_msg_len;
90 /* pkth.caplen = min (payload_len, handle->snapshot); */
92 gettimeofday(&pkth.ts, NULL);
94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) {
96 callback(user, &pkth, (u_char *)raw_msg);
H A Dpcap-netfilter-linux.c128 struct pcap_pkthdr pkth; local
174 pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr);
179 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr));
183 /* pkth.caplen = min (payload_len, handle->snapshot); */
185 gettimeofday(&pkth.ts, NULL);
187 bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen))
190 callback(user, &pkth, payloa
[all...]

Completed in 1244 milliseconds