Home
last modified time | relevance | path

Searched refs:pkt_data (Results 1 – 9 of 9) sorted by relevance

/external/linux-kselftest/tools/testing/selftests/bpf/progs/
Dkfree_skb.c68 unsigned short pkt_data; in BPF_PROG() local
92 bpf_probe_read_kernel(&pkt_data, sizeof(pkt_data), data + 12); in BPF_PROG()
99 meta.ifindex, data, pkt_data); in BPF_PROG()
102 if (users != 1 || pkt_data != bpf_htons(0x86dd) || meta.ifindex != 1) in BPF_PROG()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_winpcap.c103 const u_char *pkt_data) in l2_packet_receive_cb() argument
108 if (pkt_data == NULL || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb()
111 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb()
Dl2_packet_pcap.c148 const u_char *pkt_data) in l2_packet_receive_cb() argument
155 if (!l2->rx_callback || !pkt_data || hdr->caplen < sizeof(*ethhdr)) in l2_packet_receive_cb()
158 ethhdr = (struct l2_ethhdr *) pkt_data; in l2_packet_receive_cb()
/external/scapy/scapy/arch/
Dpcapdnet.py140 self.pkt_data = POINTER(c_ubyte)()
143 c = pcap_next_ex(self.pcap, byref(self.header), byref(self.pkt_data))
147 pkt = b"".join(chb(i) for i in self.pkt_data[:self.header.contents.len])
/external/libpcap/
Dpcap-rpcap.c388 static int pcap_read_nocb_remote(pcap_t *p, struct pcap_pkthdr *pkt_header, u_char **pkt_data) in pcap_read_nocb_remote() argument
594 *pkt_data = net_pkt_data; in pcap_read_nocb_remote()
631 u_char *pkt_data; in pcap_read_rpcap() local
686 ret = pcap_read_nocb_remote(p, &pkt_header, &pkt_data); in pcap_read_rpcap()
697 &pkt_header, pkt_data); in pcap_read_rpcap()
698 (*callback)(user, &pkt_header, pkt_data); in pcap_read_rpcap()
Dpcap.c594 const u_char **pkt_data) in pcap_next_ex() argument
599 s.pkt = pkt_data; in pcap_next_ex()
3835 …ndqueue_queue(pcap_send_queue *queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data) argument
3846 memcpy(queue->buffer + queue->len, pkt_data, pkt_header->caplen);
/external/libpcap/pcap/
Dpcap.h812 …dqueue_queue(pcap_send_queue* queue, const struct pcap_pkthdr *pkt_header, const u_char *pkt_data);
/external/libpcap/rpcapd/
Ddaemon.c2611 u_char *pkt_data; // pointer to the buffer that contains the current packet in daemon_thrdatamain() local
2698 …retval = pcap_next_ex(session->fp, &pkt_header, (const u_char **) &pkt_data); // cast to avoid a c… in daemon_thrdatamain()
2751 if (sock_bufferize((char *) pkt_data, pkt_header->caplen, in daemon_thrdatamain()
/external/scapy/test/
Dpptp.uts56 pkt_data = raw(pkt)
59 assert (pkt_data == pkt_data_ref)