RTC Toolkit
2.0.0
|
PacketDumper class to capture packets via libpcap. More...
Public Member Functions | |
PacketDumper (const std::string &interface, const std::string &output_directory, std::chrono::seconds time) | |
Create PacketDumper from interface name and output_directory. More... | |
~PacketDumper () | |
void | SetFilter (const std::string &filter) |
Set a capture filter on the interface. More... | |
void | Run () |
Start packet capture. More... | |
PacketDumper class to capture packets via libpcap.
PacketDumper::PacketDumper | ( | const std::string & | interface, |
const std::string & | output_directory, | ||
std::chrono::seconds | time | ||
) |
Create PacketDumper from interface name and output_directory.
interface | the interface to listen on |
output_directory | where the packet captures should be stored |
PacketDumper::~PacketDumper | ( | ) |
void PacketDumper::Run | ( | ) |
Start packet capture.
void PacketDumper::SetFilter | ( | const std::string & | filter | ) |
Set a capture filter on the interface.
This is the tcpdump/bpf syntax