Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/sys/netinet pull up rev 1.93 from trunk (requested by s...



details:   https://anonhg.NetBSD.org/src/rev/136802fbd12f
branches:  netbsd-1-4
changeset: 469586:136802fbd12f
user:      cgd <cgd%NetBSD.org@localhost>
date:      Sun Oct 17 23:59:59 1999 +0000

description:
pull up rev 1.93 from trunk (requested by sommerfeld):
  Multicast storm prevention: don't attempt to forward link-level
  multicast packets which contain ip unicast packets; these packets
  would only be generated from misconfigured/buggy systems.

diffstat:

 sys/netinet/ip_input.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 4b5f2a50f861 -r 136802fbd12f sys/netinet/ip_input.c
--- a/sys/netinet/ip_input.c    Sun Oct 17 23:13:21 1999 +0000
+++ b/sys/netinet/ip_input.c    Sun Oct 17 23:59:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_input.c,v 1.82.2.2 1999/05/03 22:22:42 perry Exp $  */
+/*     $NetBSD: ip_input.c,v 1.82.2.3 1999/10/17 23:59:59 cgd Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1227,7 +1227,7 @@
                    ntohl(ip->ip_src.s_addr),
                    ntohl(ip->ip_dst.s_addr), ip->ip_ttl);
 #endif
-       if (m->m_flags & M_BCAST || in_canforward(ip->ip_dst) == 0) {
+       if (m->m_flags & (M_BCAST|M_MCAST) || in_canforward(ip->ip_dst) == 0) {
                ipstat.ips_cantforward++;
                m_freem(m);
                return;



Home | Main Index | Thread Index | Old Index