Update src/packet_analysis/protocol/ip/IP.cc

Co-authored-by: Tim Wojtulewicz <timwoj@gmail.com>
This commit is contained in:
voidbar 2022-11-10 18:43:47 +02:00 committed by GitHub
parent 2e3425000f
commit 9a74be1558
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,7 @@ bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
return false; return false;
} }
packet->ip_hdr = std::make_shared<IP_Hdr>((const struct ip6_hdr*)data, false, ip_hdr = std::make_shared<IP_Hdr>((const struct ip6_hdr*)data, false,
static_cast<int>(len)); static_cast<int>(len));
packet->l3_proto = L3_IPV6; packet->l3_proto = L3_IPV6;
} }