diff options
| author | Bill Fenner <fenner@FreeBSD.org> | 2002-01-05 18:23:53 +0000 |
|---|---|---|
| committer | Bill Fenner <fenner@FreeBSD.org> | 2002-01-05 18:23:53 +0000 |
| commit | 92bdb2fa3978e5e47d6cd45a0c2d765abbacc675 (patch) | |
| tree | da4aa4712ea96ea80c4878ebfc6f96bd0aa823b3 /sys/netinet | |
| parent | f4bd8d8debca3ecd77eec6d1c35d3cc11eab45a9 (diff) | |
Notes
Diffstat (limited to 'sys/netinet')
| -rw-r--r-- | sys/netinet/ip_output.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c index 3e1ddb7a2b98..6185db0f0705 100644 --- a/sys/netinet/ip_output.c +++ b/sys/netinet/ip_output.c @@ -325,6 +325,18 @@ ip_output(m0, opt, ro, flags, imo) ip->ip_src = IA_SIN(ia)->sin_addr; } + if (ip_mrouter && (flags & IP_FORWARDING) == 0) { + /* + * XXX + * delayed checksums are not currently + * compatible with IP multicast routing + */ + if (m->m_pkthdr.csum_flags & CSUM_DELAY_DATA) { + in_delayed_cksum(m); + m->m_pkthdr.csum_flags &= + ~CSUM_DELAY_DATA; + } + } IN_LOOKUP_MULTI(pkt_dst, ifp, inm); if (inm != NULL && (imo == NULL || imo->imo_multicast_loop)) { |
