Page MenuHomeFreeBSD

icmp6: Remove csum_flags on mbuf reused for ICMP message
ClosedPublic

Authored by timo.voelker_fh-muenster.de on Feb 19 2026, 12:15 PM.
Tags
None
Referenced Files
F152452288: D55367.id172219.diff
Wed, Apr 15, 1:38 AM
Unknown Object (File)
Mon, Apr 13, 11:20 PM
Unknown Object (File)
Sat, Apr 11, 3:06 PM
Unknown Object (File)
Wed, Apr 8, 3:39 AM
Unknown Object (File)
Wed, Apr 8, 3:29 AM
Unknown Object (File)
Sun, Apr 5, 4:32 PM
Unknown Object (File)
Mar 14 2026, 12:40 AM
Unknown Object (File)
Mar 11 2026, 11:25 AM
Subscribers

Details

Summary

When icmp6 sends an ICMPv6 message, it reuses the mbuf of the packet that triggered the ICMPv6 message and prepends an IP and ICMPv6 header. For a locally generated packet with checksum offloading, the mbuf still has csum_flags set indicating that a SCTP/TCP/UDP checksum has to be computed and inserted. Since this not the case anymore, csum_flags need to be removed.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

(Not tested, but that just seems sensible.)

This revision is now accepted and ready to land.Feb 19 2026, 12:47 PM
zlei added a subscriber: zlei.

Looks good to me.

This revision was automatically updated to reflect the committed changes.