/external/libpcap/ |
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 < 0) 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 | 395 struct pcap_pkthdr pkth; local 404 pkth.caplen = pkth.len = n; 405 pkth.caplen -= 4; 406 pkth.caplen -= 8 - msg.length; 411 pkth.ts.tv_usec = firstpacket.tv_usec + (msg.timestamp % 100) * 10000; 412 pkth.ts.tv_sec = firstpacket.tv_usec + (msg.timestamp / 100); 413 if (pkth.ts.tv_usec > 1000000) 415 pkth.ts.tv_usec -= 1000000; 416 pkth.ts.tv_sec++ [all...] |
pcap-bt-linux.c | 310 struct pcap_pkthdr pkth; local 339 pkth.caplen = ret; 350 memcpy(&pkth.ts, CMSG_DATA(cmsg), 351 sizeof pkth.ts); 361 pkth.caplen+=sizeof(pcap_bluetooth_h4_header); 362 pkth.len = pkth.caplen; 365 pkth.len, pkth.caplen)) { 366 callback(user, &pkth, &handle->buffer[handle->offset]) [all...] |
pcap-usb-linux.c | 477 struct pcap_pkthdr pkth; local 521 if (gettimeofday(&pkth.ts, NULL) < 0) 528 uhdr->ts_sec = pkth.ts.tv_sec; 529 uhdr->ts_usec = pkth.ts.tv_usec; 559 pkth.caplen = sizeof(pcap_usb_header); 607 pkth.len = urb_len+pkth.caplen; 636 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < handle->snapshot)) 643 pkth.caplen++; 649 if (pkth.caplen > handle->snapshot 784 struct pcap_pkthdr pkth; local 843 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 | 129 struct pcap_pkthdr pkth; local 175 pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr); 180 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); 184 /* pkth.caplen = min (payload_len, handle->snapshot); */ 186 gettimeofday(&pkth.ts, NULL); 188 bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen)) 191 callback(user, &pkth, payload) [all...] |