mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Fix comment in IP analyzer
This commit is contained in:
parent
bca8c3053b
commit
5111b8e386
1 changed files with 2 additions and 1 deletions
|
@ -71,7 +71,8 @@ bool IPAnalyzer::AnalyzePacket(size_t len, const uint8_t* data, Packet* packet)
|
|||
|
||||
const struct ip* ip4 = packet->ip_hdr->IP4_Hdr();
|
||||
|
||||
// total_len is the length of the packet minus all of the headers so far, including IP
|
||||
// TotalLen() returns the full length of the IP portion of the packet, including
|
||||
// the IP header and payload.
|
||||
uint32_t total_len = packet->ip_hdr->TotalLen();
|
||||
if ( total_len == 0 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue