diff options
author | glebius <glebius@FreeBSD.org> | 2014-09-03 08:30:18 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2014-09-03 08:30:18 +0000 |
commit | 2e01608625bd63637f497eeabe62349603566c23 (patch) | |
tree | a2f86afa0ca99dcc68dd6e6c4947c91ea5777cb1 /sys/netpfil/pf/pf.c | |
parent | 4248847477626776ce01157c9d7def246f17f486 (diff) | |
download | FreeBSD-src-2e01608625bd63637f497eeabe62349603566c23.zip FreeBSD-src-2e01608625bd63637f497eeabe62349603566c23.tar.gz |
Clean up unused CSUM_FRAGMENT.
Sponsored by: Nginx, Inc.
Diffstat (limited to 'sys/netpfil/pf/pf.c')
-rw-r--r-- | sys/netpfil/pf/pf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netpfil/pf/pf.c b/sys/netpfil/pf/pf.c index 498a321..7e90b61 100644 --- a/sys/netpfil/pf/pf.c +++ b/sys/netpfil/pf/pf.c @@ -5332,8 +5332,7 @@ pf_route(struct mbuf **m, struct pf_rule *r, int dir, struct ifnet *oifp, * care of the fragmentation for us, we can just send directly. */ if (ip_len <= ifp->if_mtu || - (m0->m_pkthdr.csum_flags & ifp->if_hwassist & CSUM_TSO) != 0 || - ((ip_off & IP_DF) == 0 && (ifp->if_hwassist & CSUM_FRAGMENT))) { + (m0->m_pkthdr.csum_flags & ifp->if_hwassist & CSUM_TSO) != 0) { ip->ip_sum = 0; if (m0->m_pkthdr.csum_flags & CSUM_IP & ~ifp->if_hwassist) { ip->ip_sum = in_cksum(m0, ip->ip_hl << 2); |