-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From https://www.iana.org/assignments/tcp-parameters/tcp-parameters.xhtml : > Options 0 and 1 are exactly one octet which is their kind field. All > other options have their one octet kind field, followed by a one octet > length field, followed by length-2 octets of option data. Options affected by the libtins bug are those where length is listed as: * 2, except for SACK permitted, for which tins has an explicit workaround, or * N, for packets where the options payload happens to be empty (N==2) Without this fix, any affected packet can still be parsed, but trying to serialize the resulting PDU object again will fail in Tins::PDU::serialize -> Tins::TCP::write_serialization -> Tins::Memory::OutputMemoryStream::fill.
- Loading branch information
Showing
3 changed files
with
13 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters