Page MenuHomeFreeBSD

ure(4): Fix computation of L4 payload offset for IPv4 and IPv6.
Needs ReviewPublic

Authored by hselasky on Sep 16 2022, 2:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 22 2023, 11:46 PM
Unknown Object (File)
Sep 11 2023, 2:25 AM
Unknown Object (File)
Aug 23 2023, 7:21 PM
Unknown Object (File)
Jun 18 2023, 1:47 PM
Unknown Object (File)
May 9 2023, 9:30 PM
Unknown Object (File)
May 2 2023, 6:45 AM
Unknown Object (File)
Apr 3 2023, 12:54 AM
Unknown Object (File)
Mar 1 2023, 4:15 PM
Subscribers

Details

Reviewers
kevlo
mav

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Check next protocol field for IPv6.

sys/dev/usb/net/if_ure.c
2217

I see that tcp_default_output() and other transmission places are setting csum_data to the offset of the checksum field in respective protocol. In that sense the old code makes sense, checking how far into the packet the checksum field resides.