Add SkipAnalyzer.

This is WIP: The test case would require a new pcap or the possibility
to overwrite analyzer mappings. The CustomEncapsulationSkip method and
the corresponding options need to be removed.
This commit is contained in:
Jan Grashoefer 2020-08-25 17:03:20 +02:00 committed by Tim Wojtulewicz
parent 6f6e5b4df0
commit fc814bd7e2
11 changed files with 113 additions and 1 deletions

View file

@ -1,4 +1,5 @@
@load base/packet-protocols/default
@load base/packet-protocols/skip
@load base/packet-protocols/ethernet
@load base/packet-protocols/fddi
@load base/packet-protocols/ieee802_11

View file

@ -1,4 +1,4 @@
module PacketAnalyzer::DEFAULT;
module PacketAnalyzer::Default;
redef PacketAnalyzer::config_map += {
PacketAnalyzer::ConfigEntry($analyzer=PacketAnalyzer::ANALYZER_DEFAULTANALYZER),

View file

@ -0,0 +1 @@
@load ./main

View file

@ -0,0 +1,10 @@
module PacketAnalyzer::SkipAnalyzer;
export {
## Bytes to skip.
const skip_bytes: count = 0 &redef;
}
redef PacketAnalyzer::config_map += {
PacketAnalyzer::ConfigEntry($parent=PacketAnalyzer::ANALYZER_SKIP, $analyzer=PacketAnalyzer::ANALYZER_DEFAULTANALYZER)
};