mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
tunnels: Add 'X' to history when reaching Tunnel::max_depth
This commit is contained in:
parent
ad9446d799
commit
7325bc945f
10 changed files with 51 additions and 0 deletions
|
@ -20,6 +20,7 @@ bool AYIYAAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packe
|
|||
return false;
|
||||
|
||||
if ( packet->encap && packet->encap->Depth() >= BifConst::Tunnel::max_depth ) {
|
||||
packet->session->CheckHistory(zeek::session::detail::HIST_UNKNOWN_PKT, 'X');
|
||||
Weird("exceeded_tunnel_max_depth", packet);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ bool GeneveAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* pack
|
|||
return false;
|
||||
|
||||
if ( packet->encap && packet->encap->Depth() >= BifConst::Tunnel::max_depth ) {
|
||||
packet->session->CheckHistory(zeek::session::detail::HIST_UNKNOWN_PKT, 'X');
|
||||
Weird("exceeded_tunnel_max_depth", packet);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ bool IPTunnelAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* pa
|
|||
}
|
||||
|
||||
if ( packet->encap && packet->encap->Depth() >= BifConst::Tunnel::max_depth ) {
|
||||
packet->session->CheckHistory(zeek::session::detail::HIST_UNKNOWN_PKT, 'X');
|
||||
Weird("exceeded_tunnel_max_depth", packet);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -148,6 +148,7 @@ bool TeredoAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* pack
|
|||
return false;
|
||||
|
||||
if ( packet->encap && packet->encap->Depth() >= BifConst::Tunnel::max_depth ) {
|
||||
packet->session->CheckHistory(zeek::session::detail::HIST_UNKNOWN_PKT, 'X');
|
||||
Analyzer::Weird("exceeded_tunnel_max_depth", packet);
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ bool VXLAN_Analyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* pack
|
|||
return false;
|
||||
|
||||
if ( packet->encap && packet->encap->Depth() >= BifConst::Tunnel::max_depth ) {
|
||||
packet->session->CheckHistory(zeek::session::detail::HIST_UNKNOWN_PKT, 'X');
|
||||
Weird("exceeded_tunnel_max_depth", packet);
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue