-
Notifications
You must be signed in to change notification settings - Fork 258
Description
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.