mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Packets with TSO: address review feedback.
This addresses review feedback of GH-1831 and additionally fixes one case in which PayloadLen was used in a way that would have given problematic results when TSO is enabled.
This commit is contained in:
parent
e14b695497
commit
a011b4cb70
2 changed files with 10 additions and 1 deletions
3
src/IP.h
3
src/IP.h
|
@ -411,6 +411,9 @@ public:
|
|||
/**
|
||||
* Returns the length of the IP packet's payload (length of packet minus
|
||||
* header length or, for IPv6, also minus length of all extension headers).
|
||||
*
|
||||
* Also returns 0 if the IPv4 length field is set to zero - which is, e.g.,
|
||||
* the case when TCP segment offloading is enabled.
|
||||
*/
|
||||
uint16_t PayloadLen() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue