Home
last modified time | relevance | path

Searched refs:mMonitorPcap (Results 1 – 2 of 2) sorted by relevance

/device/generic/goldfish/network/netmgr/
Dwifi_forwarder.cpp113 mMonitorPcap(nullptr), in WifiForwarder()
122 if (mMonitorPcap || mPipeFd != -1) { in init()
138 mMonitorPcap = pcap_create(mInterfaceName.c_str(), errorMsg); in init()
139 if (mMonitorPcap == nullptr) { in init()
143 int result = pcap_set_snaplen(mMonitorPcap, kPcapSnapLength); in init()
149 result = pcap_set_promisc(mMonitorPcap, 1); in init()
155 result = pcap_set_immediate_mode(mMonitorPcap, 1); in init()
161 result = pcap_activate(mMonitorPcap); in init()
172 int datalinkType = pcap_datalink(mMonitorPcap); in init()
187 int pcapFd = pcap_get_selectable_fd(mMonitorPcap); in getPollData()
[all …]
Dwifi_forwarder.h51 pcap_t* mMonitorPcap; variable