Subject: CVS commit: src/sys/dist/pf/net
To: None <source-changes@NetBSD.org>
From: David Young <firstname.lastname@example.org>
Date: 11/28/2007 04:23:33
Module Name: src
Committed By: dyoung
Date: Wed Nov 28 04:23:33 UTC 2007
Bug fix: make pf_route() set M_CSUM_IPV4 before calling ip_fragment().
If you use a route-to rule such as 'pass out quick on ath0 route-to
gre2 all', and the MTU on gre2 is smaller than the MTU on ath0,
then pf_route() will fragment your packet by calling ip_fragment().
Because pf_route() did not set M_CSUM_IPv4, ip_fragment() would
not compute the checksum on the fragments, and PF would send IP
fragments with bad checksums out of gre2.
To generate a diff of this commit:
cvs rdiff -r1.40 -r1.41 src/sys/dist/pf/net/pf.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.