Add basic LLC, SNAP, and Novell 802.3 packet analyzers

This commit is contained in:
Tim Wojtulewicz 2023-04-19 10:05:36 -07:00 committed by Tim Wojtulewicz
parent 31afe082ac
commit 7e88a2b3fb
30 changed files with 527 additions and 171 deletions

View file

@ -20,6 +20,9 @@
@load base/packet-protocols/udp
@load base/packet-protocols/tcp
@load base/packet-protocols/icmp
@load base/packet-protocols/llc
@load base/packet-protocols/novell_802_3
@load base/packet-protocols/snap
@load base/packet-protocols/gre
@load base/packet-protocols/iptunnel

View file

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

View file

@ -0,0 +1 @@
module PacketAnalyzer::LLC;

View file

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

View file

@ -0,0 +1,6 @@
module PacketAnalyzer::NOVELL_802_3;
export {
# The Novell 802.3 protocol should expect an IPX analyzer here. Since
# one doesn't exist yet, the default analyzer is left undefined.
}

View file

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

View file

@ -0,0 +1,9 @@
module PacketAnalyzer::SNAP;
event zeek_init() &priority=20
{
PacketAnalyzer::register_packet_analyzer(PacketAnalyzer::ANALYZER_SNAP, 0x0800, PacketAnalyzer::ANALYZER_IP);
PacketAnalyzer::register_packet_analyzer(PacketAnalyzer::ANALYZER_SNAP, 0x86DD, PacketAnalyzer::ANALYZER_IP);
PacketAnalyzer::register_packet_analyzer(PacketAnalyzer::ANALYZER_SNAP, 0x0806, PacketAnalyzer::ANALYZER_ARP);
PacketAnalyzer::register_packet_analyzer(PacketAnalyzer::ANALYZER_SNAP, 0x8035, PacketAnalyzer::ANALYZER_ARP);
}