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, Aug 15, 4:15 AM
Unknown Object (File)
Thu, Aug 13, 8:50 PM
Unknown Object (File)
Thu, Aug 13, 4:09 PM
Unknown Object (File)
Tue, Aug 11, 6:08 PM
Unknown Object (File)
Tue, Aug 11, 12:14 AM
Unknown Object (File)
Mon, Aug 10, 3:16 PM
Unknown Object (File)
Mon, Aug 10, 6:30 AM
Unknown Object (File)
Sun, Aug 9, 12:51 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.