]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r290161:
authorkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Nov 2015 12:36:42 +0000 (12:36 +0000)
committerkp <kp@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 11 Nov 2015 12:36:42 +0000 (12:36 +0000)
commit8da924425493932e34af9e579f6423fa534e0cc5
tree47d5ec7564a5fe96005def26bc2ed1eae1371ee1
parent034058aa04eec66c00d6f7956aa5c7ec638eb750
MFC r290161:

pf: Fix IPv6 checksums with route-to.

When using route-to (or reply-to) pf sends the packet directly to the output
interface. If that interface doesn't support checksum offloading the checksum
has to be calculated in software.
That was already done in the IPv4 case, but not for the IPv6 case. As a result
we'd emit packets with pseudo-header checksums (i.e. incorrect checksums).

This issue was exposed by the changes in r289316 when pf stopped performing full
checksum calculations for all packets.

Submitted by:       Luoqi Chen

git-svn-id: svn://svn.freebsd.org/base/stable/10@290669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netpfil/pf/pf.c