Source-Changes-HG archive

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

[src/trunk]: src/sys/rump/net/lib/libshmif Pass up all multicast addresses, n...



details:   https://anonhg.NetBSD.org/src/rev/117844852be1
branches:  trunk
changeset: 781985:117844852be1
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Oct 11 10:50:45 2012 +0000

description:
Pass up all multicast addresses, not just broadcast.  Among other
things, makes IPv6 work over this interface.

diffstat:

 sys/rump/net/lib/libshmif/if_shmem.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r ccc9ab566418 -r 117844852be1 sys/rump/net/lib/libshmif/if_shmem.c
--- a/sys/rump/net/lib/libshmif/if_shmem.c      Thu Oct 11 08:53:27 2012 +0000
+++ b/sys/rump/net/lib/libshmif/if_shmem.c      Thu Oct 11 10:50:45 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_shmem.c,v 1.45 2012/09/14 16:29:22 pooka Exp $      */
+/*     $NetBSD: if_shmem.c,v 1.46 2012/10/11 10:50:45 pooka Exp $      */
 
 /*
  * Copyright (c) 2009, 2010 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.45 2012/09/14 16:29:22 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.46 2012/10/11 10:50:45 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -722,8 +722,7 @@
                if (memcmp(eth->ether_dhost, CLLADDR(ifp->if_sadl),
                    ETHER_ADDR_LEN) == 0) {
                        passup = true;
-               } else if (memcmp(eth->ether_dhost, etherbroadcastaddr,
-                   ETHER_ADDR_LEN) == 0) {
+               } else if (ETHER_IS_MULTICAST(eth->ether_dhost)) {
                        passup = true;
                } else if (ifp->if_flags & IFF_PROMISC) {
                        m->m_flags |= M_PROMISC;



Home | Main Index | Thread Index | Old Index