Fix comment in IP analyzer

This commit is contained in:
Tim Wojtulewicz 2021-03-02 14:04:30 -07:00
parent bca8c3053b
commit 5111b8e386

View file

@ -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(); 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(); uint32_t total_len = packet->ip_hdr->TotalLen();
if ( total_len == 0 ) if ( total_len == 0 )
{ {