Searched refs:bpf (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/services/tests/servicestests/jni/
H A Dapf_jni.cpp83 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)) {
/frameworks/base/services/tests/servicestests/src/android/net/apf/
H A DBpf2Apf.java306 * 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);

Completed in 196 milliseconds