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)
Sat, Oct 4, 8:16 AM
Unknown Object (File)
Aug 31 2025, 5:01 AM
Unknown Object (File)
Aug 9 2025, 8:39 PM
Unknown Object (File)
Aug 1 2025, 7:12 AM
Unknown Object (File)
Jul 8 2025, 8:28 AM
Unknown Object (File)
May 10 2025, 6:43 PM
Unknown Object (File)
May 5 2025, 5:54 AM
Unknown Object (File)
Apr 23 2025, 3:32 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.