Searched refs:pcap (Results 1 – 4 of 4) sorted by relevance
89 explicit ScopedPcap(pcap_t* pcap) : pcap_ptr(pcap) {} in ScopedPcap() argument123 ScopedPcap pcap(pcap_open_dead(DLT_EN10MB, 65535)); in com_android_server_ApfTest_compileToBpf() local124 if (pcap.get() == NULL) { in com_android_server_ApfTest_compileToBpf()131 if (pcap_compile(pcap.get(), &bpf, filter.c_str(), 0, PCAP_NETMASK_UNKNOWN)) { in com_android_server_ApfTest_compileToBpf()
41 pcap::WriteHeader(*output_, linktype); in SetOutputStream()52 pcap::WriteRecordHeader(*output_, 4 + 1 + packet.size()); in AppendRecord()
41 pcap::WriteHeader(output_, linktype); in BaseBandSniffer()48 pcap::WriteRecordHeader(output_, bytes.size()); in AppendRecord()
24 namespace rootcanal::pcap {