mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
UDP: Forward any remaining data (also empty) to session-analysis
The protocol analyzers are prepared to receive truncated data and this way we give analyzers a chance to look at data. We previously allowed empty data being passed: When len ended up 0 and remaining was 0 too.
This commit is contained in:
parent
5654f81dee
commit
2b9de839b0
1 changed files with 2 additions and 3 deletions
|
@ -225,9 +225,8 @@ void UDPAnalyzer::DeliverPacket(Connection* c, double t, bool is_orig, int remai
|
|||
// detection has to be used.
|
||||
ForwardPacket(std::min(len, remaining), data, pkt, ntohs(c->RespPort()));
|
||||
|
||||
// Also try sending it into session analysis.
|
||||
if ( remaining >= len )
|
||||
adapter->ForwardPacket(len, data, is_orig, -1, ip.get(), remaining);
|
||||
// Forward any data through session-analysis, too.
|
||||
adapter->ForwardPacket(remaining, data, is_orig, -1, ip.get(), pkt->cap_len);
|
||||
}
|
||||
|
||||
bool UDPAnalyzer::ValidateChecksum(const IP_Hdr* ip, const udphdr* up, int len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue