mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Remove now-unused Packet::l2_valid field
This commit is contained in:
parent
b3eb63c48a
commit
04dbc8e8be
3 changed files with 8 additions and 27 deletions
|
@ -55,7 +55,6 @@ void Packet::Init(int arg_link_type, pkt_timeval *arg_ts, uint32_t arg_caplen,
|
|||
|
||||
l2_src = nullptr;
|
||||
l2_dst = nullptr;
|
||||
l2_valid = false;
|
||||
l2_checksummed = false;
|
||||
|
||||
l3_proto = L3_UNKNOWN;
|
||||
|
@ -68,13 +67,6 @@ void Packet::Init(int arg_link_type, pkt_timeval *arg_ts, uint32_t arg_caplen,
|
|||
tunnel_type = BifEnum::Tunnel::IP;
|
||||
gre_version = -1;
|
||||
gre_link_type = DLT_RAW;
|
||||
|
||||
if ( data )
|
||||
{
|
||||
// From here we assume that layer 2 is valid. If the packet analysis fails,
|
||||
// the packet manager will invalidate the packet.
|
||||
l2_valid = true;
|
||||
}
|
||||
}
|
||||
|
||||
Packet::~Packet()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue