Store some additional information in the packet during processing

- Session related to the packet
- is_orig information if a UDP header was found
This commit is contained in:
Tim Wojtulewicz 2021-08-26 10:16:48 -07:00
parent 5f58ce8a5d
commit f93c5a6942
5 changed files with 30 additions and 5 deletions

View file

@ -120,6 +120,10 @@ void TCPAnalyzer::DeliverPacket(Connection* c, double t, bool is_orig, int remai
adapter->Process(is_orig, tp, len, ip, data, remaining);
// Store the session in the packet in case we get an encapsulation here. We need it for
// handling those properly.
pkt->session = c;
// Send the packet back into the packet analysis framework.
ForwardPacket(len, data, pkt);