HomeSort by relevance Sort by last modified time
    Searched refs:pkth (Results 1 - 7 of 7) sorted by null

  /external/libpcap/
pcap-bt-monitor-linux.c 73 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.caplen))
    [all...]
pcap-can-linux.c 223 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]);
pcap-canusb-linux.c 397 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.ts.tv_sec++
    [all...]
pcap-bt-linux.c 306 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, &handle->buffer[handle->offset])
    [all...]
pcap-usb-linux.c 480 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.caplen > handle->snapshot
787 struct pcap_pkthdr pkth; local
846 struct pcap_pkthdr pkth; local
    [all...]
pcap-dbus.c 58 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);
pcap-netfilter-linux.c 128 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, payload)
    [all...]

Completed in 590 milliseconds