From 7540f28ef8ee72f87099d60bbbfcea5490715a93 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Thu, 5 Sep 2013 18:45:23 +0000 Subject: Grab ip_fil_freebsd.c r1.42 from the ipfilter CVS tree to fix, 3529491 checksum validation could be better 3529486 tcp checksum wrong for ipv6 Approved by: glebius --- netinet/ip_fil_freebsd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/netinet/ip_fil_freebsd.c b/netinet/ip_fil_freebsd.c index 740ab8f99669..efecf0a90869 100644 --- a/netinet/ip_fil_freebsd.c +++ b/netinet/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; -- cgit v1.3