summaryrefslogtreecommitdiffstats
path: root/sys/contrib/ipfilter
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2015-12-27 23:25:21 +0000
committercy <cy@FreeBSD.org>2015-12-27 23:25:21 +0000
commit9890a61c16673af4778b628644b81a6d9ad64c72 (patch)
tree751d4fff880679db2cc690f6f06df3eb9fe95ff2 /sys/contrib/ipfilter
parentdd77e1af1becad7cc2de2f49be7df4b316a22a7a (diff)
downloadFreeBSD-src-9890a61c16673af4778b628644b81a6d9ad64c72.zip
FreeBSD-src-9890a61c16673af4778b628644b81a6d9ad64c72.tar.gz
MFC r292518.
Don't assume checksums will be calculated later when fastfoward is enabled (by default in r290383). PR: 72210
Diffstat (limited to 'sys/contrib/ipfilter')
-rw-r--r--sys/contrib/ipfilter/netinet/ip_nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/contrib/ipfilter/netinet/ip_nat.c b/sys/contrib/ipfilter/netinet/ip_nat.c
index 6c93810..6ca938a 100644
--- a/sys/contrib/ipfilter/netinet/ip_nat.c
+++ b/sys/contrib/ipfilter/netinet/ip_nat.c
@@ -5123,7 +5123,7 @@ ipf_nat_out(fin, nat, natadd, nflags)
ipf_fix_outcksum(0, &fin->fin_ip->ip_sum, msumd, 0);
}
#if !defined(_KERNEL) || defined(MENTAT) || defined(__sgi) || \
- defined(linux) || defined(BRIDGE_IPF)
+ defined(linux) || defined(BRIDGE_IPF) || defined(__FreeBSD__)
else {
/*
* Strictly speaking, this isn't necessary on BSD
@@ -5235,7 +5235,7 @@ ipf_nat_out(fin, nat, natadd, nflags)
uh->uh_ulen += fin->fin_plen;
uh->uh_ulen = htons(uh->uh_ulen);
#if !defined(_KERNEL) || defined(MENTAT) || defined(__sgi) || \
- defined(linux) || defined(BRIDGE_IPF)
+ defined(linux) || defined(BRIDGE_IPF) || defined(__FreeBSD)
ipf_fix_outcksum(0, &ip->ip_sum, sumd, 0);
#endif
OpenPOWER on IntegriCloud