Remove now-unused Packet::l2_valid field

This commit is contained in:
Tim Wojtulewicz 2020-11-06 09:29:42 -07:00
parent b3eb63c48a
commit 04dbc8e8be
3 changed files with 8 additions and 27 deletions

View file

@ -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()