aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ip_fil_freebsd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ip_fil_freebsd.c b/ip_fil_freebsd.c
index 740ab8f99669..efecf0a90869 100644
--- a/ip_fil_freebsd.c
+++ b/ip_fil_freebsd.c
@@ -1244,9 +1244,7 @@ ipf_checkv4sum(fin)
else
sum = in_pseudo(ip->ip_src.s_addr, ip->ip_dst.s_addr,
htonl(m->m_pkthdr.csum_data +
- fin->fin_ip->ip_len -
- (fin->fin_ip->ip_hl << 2) +
- fin->fin_p));
+ fin->fin_dlen + fin->fin_p));
sum ^= 0xffff;
if (sum != 0) {
fin->fin_cksum = FI_CK_BAD;