RTC Toolkit  2.0.0
Public Member Functions | List of all members
PacketDumper Class Reference

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...
 

Detailed Description

PacketDumper class to capture packets via libpcap.

Constructor & Destructor Documentation

◆ PacketDumper()

PacketDumper::PacketDumper ( const std::string &  interface,
const std::string &  output_directory,
std::chrono::seconds  time 
)

Create PacketDumper from interface name and output_directory.

Parameters
interfacethe interface to listen on
output_directorywhere the packet captures should be stored

◆ ~PacketDumper()

PacketDumper::~PacketDumper ( )

Member Function Documentation

◆ Run()

void PacketDumper::Run ( )

Start packet capture.

◆ SetFilter()

void PacketDumper::SetFilter ( const std::string &  filter)

Set a capture filter on the interface.

This is the tcpdump/bpf syntax


The documentation for this class was generated from the following file: