Searched defs:bpf (Results 1 - 2 of 2) sorted by relevance
/frameworks/base/services/tests/servicestests/src/android/net/apf/ |
H A D | Bpf2Apf.java | 306 * Convert the output of "tcpdump -d" (human readable BPF program dump) {@code bpf} into an APF 309 public static byte[] convert(String bpf) throws IllegalInstructionException { argument 311 for (String line : bpf.split("\\n")) convertLine(line, gen);
|
/frameworks/base/services/tests/servicestests/jni/ |
H A D | apf_jni.cpp | 83 bpf_program bpf; local 84 if (pcap_compile(pcap.get(), &bpf, filter.c_str(), 0, PCAP_NETMASK_UNKNOWN)) { 90 const struct bpf_insn* insn = bpf.bf_insns; 91 for (uint32_t i = 0; i < bpf.bf_len; i++) { 124 bpf_program bpf; local 125 if (pcap_compile(bpf_pcap.get(), &bpf, filter.c_str(), 0, PCAP_NETMASK_UNKNOWN)) { 131 if (pcap_setfilter(bpf_pcap.get(), &bpf)) {
|
Completed in 40 milliseconds