Searched refs:pkth (Results 1 – 6 of 6) sorted by relevance
/external/libpcap/ |
D | pcap-bt-monitor-linux.c | 100 struct pcap_pkthdr pkth; in bt_monitor_read() local 113 memset(&pkth.ts, 0, sizeof(pkth.ts)); in bt_monitor_read() 135 pkth.caplen = (bpf_u_int32)(ret - sizeof(hdr) + sizeof(pcap_bluetooth_linux_monitor_header)); in bt_monitor_read() 136 pkth.len = pkth.caplen; in bt_monitor_read() 142 memcpy(&pkth.ts, CMSG_DATA(cmsg), sizeof(pkth.ts)); in bt_monitor_read() 150 pcap_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read() 151 callback(user, &pkth, pktd); in bt_monitor_read()
|
D | pcap-usb-linux.c | 870 struct pcap_pkthdr pkth; in usb_read_linux() local 918 if (gettimeofday(&pkth.ts, NULL) < 0) in usb_read_linux() 924 uhdr->ts_sec = pkth.ts.tv_sec; in usb_read_linux() 925 uhdr->ts_usec = (int32_t)pkth.ts.tv_usec; in usb_read_linux() 955 pkth.caplen = sizeof(pcap_usb_header); in usb_read_linux() 1003 pkth.len = urb_len+pkth.caplen; in usb_read_linux() 1032 while ((string[0] != 0) && (string[1] != 0) && (pkth.caplen < (bpf_u_int32)handle->snapshot)) in usb_read_linux() 1039 pkth.caplen++; in usb_read_linux() 1045 if (pkth.caplen > (bpf_u_int32)handle->snapshot) in usb_read_linux() 1046 pkth.caplen = (bpf_u_int32)handle->snapshot; in usb_read_linux() [all …]
|
D | pcap-bt-linux.c | 317 struct pcap_pkthdr pkth; in bt_read_linux() local 349 pkth.caplen = (bpf_u_int32)ret; in bt_read_linux() 359 memcpy(&pkth.ts, CMSG_DATA(cmsg), in bt_read_linux() 360 sizeof pkth.ts); in bt_read_linux() 382 pkth.caplen+=sizeof(pcap_bluetooth_h4_header); in bt_read_linux() 383 pkth.len = pkth.caplen; in bt_read_linux() 385 pcap_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_read_linux() 386 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 pcap_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-rdmasniff.c | 120 struct pcap_pkthdr pkth; in rdmasniff_read() local 152 pkth.len = wc.byte_len; in rdmasniff_read() 153 pkth.caplen = min(pkth.len, (u_int)handle->snapshot); in rdmasniff_read() 154 gettimeofday(&pkth.ts, NULL); in rdmasniff_read() 159 pcap_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in rdmasniff_read() 160 callback(user, &pkth, pktd); in rdmasniff_read()
|
D | pcap-netfilter-linux.c | 195 struct pcap_pkthdr pkth; in netfilter_read_linux() local 241 pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr); in netfilter_read_linux() 246 pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); in netfilter_read_linux() 252 gettimeofday(&pkth.ts, NULL); in netfilter_read_linux() 254 pcap_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen)) in netfilter_read_linux() 257 callback(user, &pkth, payload); in netfilter_read_linux()
|