diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-05-21 21:26:06 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-05-21 21:26:06 +0000 |
commit | 8ad299376012b9d2b2109a369d1b3838f03dae62 (patch) | |
tree | b0f370b6c3f32a8adb8de0d731b2389be4dc19ee /sys/contrib/ipfilter | |
parent | 82793e31dc89b5afc9b2b0723f8f4ce0ea3bcbf1 (diff) | |
download | FreeBSD-src-8ad299376012b9d2b2109a369d1b3838f03dae62.zip FreeBSD-src-8ad299376012b9d2b2109a369d1b3838f03dae62.tar.gz |
Compute the checksum before handing the packet off to IPFilter.
Tested by: Cy Schubert <Cy.Schubert@uumail.gov.bc.ca>
Diffstat (limited to 'sys/contrib/ipfilter')
-rw-r--r-- | sys/contrib/ipfilter/netinet/fil.c | 8 |
1 files changed, 8 insertions, 0 deletions
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; |