Searched refs:pkth (Results 1 – 5 of 5) sorted by relevance
/external/libpcap/ |
D | pcap-usb-linux.c | 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() [all …]
|
D | pcap-bt-monitor-linux.c | 83 struct pcap_pkthdr pkth; in bt_monitor_read() local 96 memset(&pkth.ts, 0, sizeof(pkth.ts)); in bt_monitor_read() 118 pkth.caplen = ret - sizeof(hdr) + sizeof(pcap_bluetooth_linux_monitor_header); in bt_monitor_read() 119 pkth.len = pkth.caplen; in bt_monitor_read() 125 memcpy(&pkth.ts, CMSG_DATA(cmsg), sizeof(pkth.ts)); in bt_monitor_read() 133 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read() 134 callback(user, &pkth, pktd); in bt_monitor_read()
|
D | pcap-bt-linux.c | 305 struct pcap_pkthdr pkth; in bt_read_linux() local 337 pkth.caplen = ret; in bt_read_linux() 347 memcpy(&pkth.ts, CMSG_DATA(cmsg), in bt_read_linux() 348 sizeof pkth.ts); in bt_read_linux() 358 pkth.caplen+=sizeof(pcap_bluetooth_h4_header); in bt_read_linux() 359 pkth.len = pkth.caplen; in bt_read_linux() 361 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_read_linux() 362 callback(user, &pkth, pktd); in bt_read_linux()
|
D | pcap-dbus.c | 58 struct pcap_pkthdr pkth; in dbus_read() local 89 pkth.caplen = pkth.len = raw_msg_len; in dbus_read() 92 gettimeofday(&pkth.ts, NULL); in dbus_read() 94 bpf_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read() 96 callback(user, &pkth, (u_char *)raw_msg); in dbus_read()
|
D | pcap-netfilter-linux.c | 131 struct pcap_pkthdr pkth; in netfilter_read_linux() local 177 pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr); in netfilter_read_linux() 182 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); in netfilter_read_linux() 188 gettimeofday(&pkth.ts, NULL); in netfilter_read_linux() 190 bpf_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen)) in netfilter_read_linux() 193 callback(user, &pkth, payload); in netfilter_read_linux()
|