From c7424ba4ea1cc29b26397bc475bd5932e7a9c7c0 Mon Sep 17 00:00:00 2001 From: jlemon Date: Thu, 25 May 2000 02:27:14 +0000 Subject: Mark the checksum as complete when looping back multicast packets. Submitted by: Jeff Gibbons --- sys/netinet/ip_output.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 52db099..8faed58 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -1868,6 +1868,12 @@ ip_mloopback(ifp, m, dst, hlen) copym->m_pkthdr.rcvif = ifp; ip_input(copym); #else + /* if the checksum hasn't been computed, mark it as valid */ + if (copym->m_pkthdr.csum_flags & CSUM_DELAY_DATA) { + copym->m_pkthdr.csum_flags |= + CSUM_DATA_VALID | CSUM_PSEUDO_HDR; + copym->m_pkthdr.csum_data = 0xffff; + } if_simloop(ifp, copym, dst->sin_family, 0); #endif } -- cgit v1.1