Pcap Parser. More...
#include <parser.h>
Public Member Functions | |
| PcapParser (const std::string_view &config_file, const std::string_view &parser_path=std::string_view_literals::operator""sv("parser", 6), const int32_t verbose=0) | |
| Open the config file. More... | |
| bool | succeed () const |
| Return whether the parser config is successfully parsed. More... | |
| ~PcapParser () | |
| Release the resources. More... | |
| int32_t | dumpPcapPacketsInBinary () const |
| Dump the pcap/snoop packets in binary. More... | |
| int32_t | dumpPcapPacketInPcap () const |
| Dump the pcap/snoop packets in txt. More... | |
Pcap Parser.
| key_len | length of flowkey |
| OmniSketch::Util::PcapParser< key_len >::PcapParser | ( | const std::string_view & | config_file, |
| const std::string_view & | parser_path = std::string_view_literals::operator""sv("parser", 6), |
||
| const int32_t | verbose = 0 |
||
| ) |
Open the config file.
| config_file | path to the config file |
| parser_path | path into the file (concatenated with '.') |
| verbose | verbose level |
| OmniSketch::Util::PcapParser< key_len >::~PcapParser |
Release the resources.
| int32_t OmniSketch::Util::PcapParser< key_len >::dumpPcapPacketInPcap |
Dump the pcap/snoop packets in txt.
| int32_t OmniSketch::Util::PcapParser< key_len >::dumpPcapPacketsInBinary |
Dump the pcap/snoop packets in binary.
|
inline |
Return whether the parser config is successfully parsed.