Skip to content

Decode problem with IP fragments #173

@felipeaf

Description

@felipeaf

I've observed that ip fragments are decoded with wrong values in transport layer are only in the first fragment. Although, for UDP, the first fragment show correct values for ports and length, but the data buffer is still wrong, because the length of header is used for decode, but that is bigger than the size of that part of payload.

I think the correct approach to handle with fragments is preserve the full IP payload as raw data (Buffer), so the user would be able to reassembly the original unfragmented packet, what is not possible with the actual result.

For the first fragment, i think is usefull both, decode the next header and to have the buffer for reassembly algorithms.

I'm working now in solve this question and write a reassembly algorithm.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions