RTC Toolkit
3.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 capture_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 | capture_time | ||
) |
Create PacketDumper from interface name and output_directory.
[in] | interface | The interface to listen on. |
[in] | output_directory | Indicates where the packet captures should be stored. |
[in] | capture_time | The number of seconds for which to capture packets. |
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.