Page MenuHomeFreeBSD

ipfw: fix checksum after NAT
ClosedPublic

Authored by timo.voelker_fh-muenster.de on Tue, May 19, 12:55 PM.
Tags
None
Referenced Files
F157492580: D57091.diff
Fri, May 22, 1:00 AM
F157438995: D57091.diff
Thu, May 21, 11:54 AM
F157435145: D57091.diff
Thu, May 21, 10:49 AM
Unknown Object (File)
Tue, May 19, 1:34 PM

Details

Summary

When checksum offloading is used, IPFW needs to fix the checksum after libalias has done NAT. The ipfw_nat() function does so, but only for mbufs without a receiving interface. However, if, for example, the packet was sent inside a jail that used checksum offloading over an epair, ipfw still needs to fix the checksum even though the mbuf has set a receiving interface (epair).

This patch just removes the check whether a receiving interface is set.

It fixes a bug reported here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=295057

Diff Detail

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