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
Unknown Object (File)
Sat, Mar 14, 12:40 AM
Unknown Object (File)
Wed, Mar 11, 11:25 AM
Unknown Object (File)
Mon, Mar 9, 3:19 PM
Unknown Object (File)
Sat, Mar 7, 10:19 AM
Unknown Object (File)
Thu, Mar 5, 8:08 PM
Unknown Object (File)
Wed, Mar 4, 9:03 AM
Unknown Object (File)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Mon, Feb 23, 1:16 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.