Searched refs:pkth (Results 1 – 7 of 7) sorted by relevance
| /netbsd/src/external/bsd/libpcap/dist/ |
| D | pcap-bt-monitor-linux.c | 104 struct pcap_pkthdr pkth; in bt_monitor_read() local 117 memset(&pkth.ts, 0, sizeof(pkth.ts)); in bt_monitor_read() 143 pkth.caplen = (bpf_u_int32)(ret - sizeof(hdr) + sizeof(pcap_bluetooth_linux_monitor_header)); in bt_monitor_read() 144 pkth.len = pkth.caplen; in bt_monitor_read() 153 memcpy(&pkth.ts, CMSG_DATA(cmsg), sizeof(pkth.ts)); in bt_monitor_read() 161 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_monitor_read() 162 callback(user, &pkth, pktd); in bt_monitor_read()
|
| D | pcap-usb-linux.c | 674 struct pcap_pkthdr pkth; in usb_read_linux_bin() local 722 pkth.caplen = sizeof(pcap_usb_header) + clen; in usb_read_linux_bin() 729 pkth.len = sizeof(pcap_usb_header) + info.hdr->data_len; in usb_read_linux_bin() 737 pkth.len = sizeof(pcap_usb_header) + info.hdr->urb_len; in usb_read_linux_bin() 739 pkth.ts.tv_sec = (time_t)info.hdr->ts_sec; in usb_read_linux_bin() 740 pkth.ts.tv_usec = info.hdr->ts_usec; in usb_read_linux_bin() 744 pkth.len, pkth.caplen)) { in usb_read_linux_bin() 746 callback(user, &pkth, handle->buffer); in usb_read_linux_bin() 764 struct pcap_pkthdr pkth; in usb_read_linux_mmap() local 882 pkth.caplen = sizeof(pcap_usb_header_mmapped) + clen; in usb_read_linux_mmap() [all …]
|
| D | pcap-bt-linux.c | 328 struct pcap_pkthdr pkth; in bt_read_linux() local 364 pkth.caplen = (bpf_u_int32)ret; in bt_read_linux() 374 memcpy(&pkth.ts, CMSG_DATA(cmsg), in bt_read_linux() 375 sizeof pkth.ts); in bt_read_linux() 400 pkth.caplen+=sizeof(pcap_bluetooth_h4_header); in bt_read_linux() 401 pkth.len = pkth.caplen; in bt_read_linux() 403 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in bt_read_linux() 404 callback(user, &pkth, pktd); in bt_read_linux()
|
| D | pcap-rpcap-unix.c | 493 struct pcap_pkthdr pkth; in rpcap_read_unix() local 511 gettimeofday(&pkth.ts, NULL); in rpcap_read_unix() 512 pkth.caplen = pkth.len = pkt_len - 20 in rpcap_read_unix() 515 pkth.ts.tv_sec = get32(&buf[0]); in rpcap_read_unix() 516 pkth.ts.tv_usec = get32(&buf[4]); in rpcap_read_unix() 517 pkth.caplen = get32(&buf[8]); in rpcap_read_unix() 518 pkth.len = get32(&buf[12]); in rpcap_read_unix() 523 if (pkt_len - 20 < pkth.caplen) { in rpcap_read_unix() 525 …handle->errbuf, PCAP_ERRBUF_SIZE, "pkth.caplen check failed (%u < %u)", pkt_len - 20, pkth.caplen); in rpcap_read_unix() 530 bpf_filter(handle->fcode.bf_insns, pkt, pkth.len, pkth.caplen)) in rpcap_read_unix() [all …]
|
| D | pcap-dbus.c | 61 struct pcap_pkthdr pkth; in dbus_read() local 92 pkth.caplen = pkth.len = raw_msg_len; in dbus_read() 95 gettimeofday(&pkth.ts, NULL); in dbus_read() 97 … pcapint_filter(handle->fcode.bf_insns, (u_char *)raw_msg, pkth.len, pkth.caplen)) { in dbus_read() 99 callback(user, &pkth, (u_char *)raw_msg); in dbus_read()
|
| D | pcap-rdmasniff.c | 119 struct pcap_pkthdr pkth; in rdmasniff_read() local 166 pkth.len = wc.byte_len; in rdmasniff_read() 167 pkth.caplen = min(pkth.len, (u_int)handle->snapshot); in rdmasniff_read() 168 gettimeofday(&pkth.ts, NULL); in rdmasniff_read() 173 pcapint_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) { in rdmasniff_read() 174 callback(user, &pkth, pktd); in rdmasniff_read()
|
| D | pcap-netfilter-linux.c | 206 struct pcap_pkthdr pkth; in netfilter_read_linux() local 252 … pkth.len = pkth.caplen = NFA_PAYLOAD(payload_attr); in netfilter_read_linux() 257 … pkth.caplen = pkth.len = nlh->nlmsg_len-NLMSG_ALIGN(sizeof(struct nlmsghdr)); in netfilter_read_linux() 263 gettimeofday(&pkth.ts, NULL); in netfilter_read_linux() 265 … pcapint_filter(handle->fcode.bf_insns, payload, pkth.len, pkth.caplen)) in netfilter_read_linux() 268 callback(user, &pkth, payload); in netfilter_read_linux()
|