Class for handling a pcap file.
More...
#include <pcap_reader.hpp>
Class for handling a pcap file.
Definition at line 69 of file pcap_reader.hpp.
◆ PcapDevice()
◆ ~PcapDevice()
pcapReader::PcapDevice::~PcapDevice |
( |
| ) |
|
◆ connect()
bool pcapReader::PcapDevice::connect |
( |
const char * |
device | ) |
|
Try to open a pcap file.
- Parameters
-
[in] | device | Path to pcap file |
- Returns
- True if success, false otherwise
Definition at line 60 of file pcap_reader.cpp.
◆ disconnect()
void pcapReader::PcapDevice::disconnect |
( |
| ) |
|
◆ isConnected()
bool pcapReader::PcapDevice::isConnected |
( |
| ) |
const |
Check if file is open and healthy.
- Returns
- True if file is open, false otherwise
Definition at line 88 of file pcap_reader.cpp.
◆ read()
Attempt to read a packet and store data to buffer.
- Returns
- Result of read operation
Definition at line 90 of file pcap_reader.cpp.
◆ BUFFSIZE
const size_t pcapReader::PcapDevice::BUFFSIZE = 100 |
|
static |
◆ m_dataBuff
buffer_t& pcapReader::PcapDevice::m_dataBuff |
|
private |
◆ m_device
pcap_t* pcapReader::PcapDevice::m_device {nullptr} |
|
private |
◆ m_deviceName
char* pcapReader::PcapDevice::m_deviceName |
|
private |
◆ m_errBuff
char pcapReader::PcapDevice::m_errBuff[BUFFSIZE] {} |
|
private |
◆ m_lastPkt
buffer_t pcapReader::PcapDevice::m_lastPkt |
|
private |
◆ m_pktFilter
bpf_program pcapReader::PcapDevice::m_pktFilter {} |
|
private |
◆ node_
The documentation for this class was generated from the following files: