mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Reorder Packet member variables slightly for better packing
This commit is contained in:
parent
665d0d9814
commit
c4a7a4eaea
1 changed files with 7 additions and 5 deletions
|
@ -155,11 +155,6 @@ public:
|
||||||
uint32_t cap_len; /// Captured packet length
|
uint32_t cap_len; /// Captured packet length
|
||||||
uint32_t link_type; /// pcap link_type (DLT_EN10MB, DLT_RAW, etc)
|
uint32_t link_type; /// pcap link_type (DLT_EN10MB, DLT_RAW, etc)
|
||||||
|
|
||||||
// True if L2 processing succeeded. If data is set on initialization of
|
|
||||||
// the packet, L2 is assumed to be valid. The packet manager will then
|
|
||||||
// process the packet and set l2_valid to False if the analysis failed.
|
|
||||||
bool l2_valid;
|
|
||||||
|
|
||||||
// These are computed from Layer 2 data. These fields are only valid if
|
// These are computed from Layer 2 data. These fields are only valid if
|
||||||
// l2_valid returns true.
|
// l2_valid returns true.
|
||||||
|
|
||||||
|
@ -199,6 +194,13 @@ public:
|
||||||
*/
|
*/
|
||||||
uint32_t inner_vlan;
|
uint32_t inner_vlan;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* True if L2 processing succeeded. If data is set on initialization of
|
||||||
|
* the packet, L2 is assumed to be valid. The packet manager will then
|
||||||
|
* process the packet and set l2_valid to False if the analysis failed.
|
||||||
|
*/
|
||||||
|
bool l2_valid;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Indicates whether the layer 2 checksum was validated by the
|
* Indicates whether the layer 2 checksum was validated by the
|
||||||
* hardware/kernel before being received by zeek.
|
* hardware/kernel before being received by zeek.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue