mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 11:38:20 +00:00
Tunnel support performance optimization.
Looks better to allocate Encapsulation objects on-demand when tunnels are discovered rather than always have an automatic, empty one for every packet.
This commit is contained in:
parent
47c2fda88e
commit
9851591317
7 changed files with 110 additions and 65 deletions
|
@ -136,7 +136,10 @@ public:
|
|||
|
||||
void DoNextPacket(double t, const struct pcap_pkthdr* hdr,
|
||||
const IP_Hdr* ip_hdr, const u_char* const pkt,
|
||||
int hdr_size, Encapsulation& encapsulation);
|
||||
int hdr_size, const Encapsulation* encapsulation);
|
||||
|
||||
void DoNextInnerPacket(double t, const struct pcap_pkthdr* hdr, int caplen,
|
||||
const u_char* pkt, int proto, const Encapsulation* outer_encap);
|
||||
|
||||
unsigned int ConnectionMemoryUsage();
|
||||
unsigned int ConnectionMemoryUsageConnVals();
|
||||
|
@ -150,7 +153,7 @@ protected:
|
|||
|
||||
Connection* NewConn(HashKey* k, double t, const ConnID* id,
|
||||
const u_char* data, int proto, uint32 flow_lable,
|
||||
const Encapsulation& encapsulation);
|
||||
const Encapsulation* encapsulation);
|
||||
|
||||
// Check whether the tag of the current packet is consistent with
|
||||
// the given connection. Returns:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue