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.14 from trunk (requested by s...



details:   https://anonhg.NetBSD.org/src/rev/d23d36d6dace
branches:  netbsd-1-4
changeset: 469587:d23d36d6dace
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon Oct 18 00:00:05 1999 +0000

description:
pull up rev 1.14 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_flow.c |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 136802fbd12f -r d23d36d6dace sys/netinet/ip_flow.c
--- a/sys/netinet/ip_flow.c     Sun Oct 17 23:59:59 1999 +0000
+++ b/sys/netinet/ip_flow.c     Mon Oct 18 00:00:05 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ip_flow.c,v 1.13 1999/03/26 08:51:35 proff Exp $       */
+/*     $NetBSD: ip_flow.c,v 1.13.2.1 1999/10/18 00:00:05 cgd Exp $     */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -154,6 +154,14 @@
         */
        if (!ipforwarding || ipflow_inuse == 0 || m->m_len < sizeof(struct ip))
                return 0;
+
+       /*
+        * Was packet recieved as a link-level multicast or broadcast?
+        * If so, don't try to fast forward..
+        */
+       if ((m->m_flags & (M_BCAST|M_MCAST)) != 0)
+               return 0;
+       
        /*
         * IP header with no option and valid version and length
         */



Home | Main Index | Thread Index | Old Index