Page MenuHomeFreeBSD

icmp6: Remove csum_flags on mbuf reused for ICMP message
ClosedPublic

Authored by timo.voelker_fh-muenster.de on Thu, Feb 19, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 23, 9:54 PM
Unknown Object (File)
Mon, Feb 23, 1:16 AM
Unknown Object (File)
Sun, Feb 22, 9:02 PM
Unknown Object (File)
Sun, Feb 22, 7:30 PM
Unknown Object (File)
Fri, Feb 20, 9:34 PM
Unknown Object (File)
Fri, Feb 20, 11:11 AM
Unknown Object (File)
Fri, Feb 20, 5:44 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.Thu, Feb 19, 12:47 PM
zlei added a subscriber: zlei.

Looks good to me.

This revision was automatically updated to reflect the committed changes.