From 8ad299376012b9d2b2109a369d1b3838f03dae62 Mon Sep 17 00:00:00 2001 From: jlemon Date: Sun, 21 May 2000 21:26:06 +0000 Subject: Compute the checksum before handing the packet off to IPFilter. Tested by: Cy Schubert --- sys/contrib/ipfilter/netinet/fil.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sys/contrib') diff --git a/sys/contrib/ipfilter/netinet/fil.c b/sys/contrib/ipfilter/netinet/fil.c index bb53f49..8dea84b 100644 --- a/sys/contrib/ipfilter/netinet/fil.c +++ b/sys/contrib/ipfilter/netinet/fil.c @@ -632,6 +632,14 @@ int out; m->m_flags &= ~M_CANFASTFWD; # endif /* M_CANFASTFWD */ + /* + * disable delayed checksums. + */ + if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA) { + in_delayed_cksum(m); + m->m_pkthdr.csum_flags &= ~CSUM_DELAY_DATA; + } + if ((ip->ip_p == IPPROTO_TCP || ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_ICMP)) { int plen = 0; -- cgit v1.1