mirror of
https://github.com/zeek/zeek.git
synced 2025-10-07 09:08:20 +00:00
Minor fix in UDP to avoid duplicating tunnels
This commit is contained in:
parent
1dede6dd70
commit
5f58ce8a5d
1 changed files with 5 additions and 2 deletions
|
@ -211,8 +211,11 @@ void UDPAnalyzer::DeliverPacket(Connection* c, double t, bool is_orig, int remai
|
||||||
adapter->Event(udp_reply);
|
adapter->Event(udp_reply);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the packet back into the packet analysis framework.
|
// Send the packet back into the packet analysis framework. We only check the response
|
||||||
ForwardPacket(len, data, pkt);
|
// port here because the orig/resp should have already swapped around based on
|
||||||
|
// likely_server_ports. This also prevents us from processing things twice if protocol
|
||||||
|
// detection has to be used.
|
||||||
|
ForwardPacket(len, data, pkt, ntohs(c->RespPort()));
|
||||||
|
|
||||||
// Also try sending it into session analysis.
|
// Also try sending it into session analysis.
|
||||||
if ( remaining >= len )
|
if ( remaining >= len )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue