Searched refs:bpf (Results 1 – 2 of 2) sorted by relevance
/packages/modules/NetworkStack/tests/unit/jni/ |
D | apf_jni.cpp | 105 bpf_program bpf; in com_android_server_ApfTest_compileToBpf() local 106 if (pcap_compile(pcap.get(), &bpf, filter.c_str(), 0, PCAP_NETMASK_UNKNOWN)) { in com_android_server_ApfTest_compileToBpf() 112 const struct bpf_insn* insn = bpf.bf_insns; in com_android_server_ApfTest_compileToBpf() 113 for (uint32_t i = 0; i < bpf.bf_len; i++) { in com_android_server_ApfTest_compileToBpf() 145 bpf_program bpf; in com_android_server_ApfTest_compareBpfApf() local 146 if (pcap_compile(bpf_pcap.get(), &bpf, filter.c_str(), 0, PCAP_NETMASK_UNKNOWN)) { in com_android_server_ApfTest_compareBpfApf() 152 if (pcap_setfilter(bpf_pcap.get(), &bpf)) { in com_android_server_ApfTest_compareBpfApf()
|
/packages/modules/NetworkStack/tests/unit/src/android/net/apf/ |
D | Bpf2Apf.java | 309 public static byte[] convert(String bpf) throws IllegalInstructionException { in convert() argument 311 for (String line : bpf.split("\\n")) convertLine(line, gen); in convert()
|