Skip to content

TCP Header Option Calculation Issue #43

Description

@hunianhang

Problem Description:

In the "rx_engine.cpp" file, the "parse_optional_header_fields" function has an issue with the calculation of the TCP option (option) length. The TCP option length is calculated in bytes using the Data Offset, which represents the TCP header length in 4-byte units. However, in the "rx_engine.cpp" file (line 477 to line 554), the dataOffsetIn passed to the "parse_optional_header_fields" function does not multiply 4 in the calculations.

Bug Fix:

When parsing TCP options in the parse_optional_header_fields function, the Data Offset should first be multiplied by 4.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions