diff options
author | jlemon <jlemon@FreeBSD.org> | 2000-05-25 02:27:14 +0000 |
---|---|---|
committer | jlemon <jlemon@FreeBSD.org> | 2000-05-25 02:27:14 +0000 |
commit | c7424ba4ea1cc29b26397bc475bd5932e7a9c7c0 (patch) | |
tree | 87c6ee8446e3c267129d72a39452f2d9aaf2e544 /sys/netinet | |
parent | 3040b8e8351eea54cb7e0173c96f40c89cbd9bc2 (diff) | |
download | FreeBSD-src-c7424ba4ea1cc29b26397bc475bd5932e7a9c7c0.zip FreeBSD-src-c7424ba4ea1cc29b26397bc475bd5932e7a9c7c0.tar.gz |
Mark the checksum as complete when looping back multicast packets.
Submitted by: Jeff Gibbons <jgibbons@n2.net>
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_output.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 } |