Module Name:    src
Committed By:   riz
Date:           Fri Feb  8 20:51:12 UTC 2013

Modified Files:
        src/sys/rump/net/lib/libshmif [netbsd-6]: if_shmem.c

Log Message:
Pull up following revision(s) (requested by gdt in ticket #796):
        sys/rump/net/lib/libshmif/if_shmem.c: revision 1.46
Pass up all multicast addresses, not just broadcast.  Among other
things, makes IPv6 work over this interface.


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.44.4.1 src/sys/rump/net/lib/libshmif/if_shmem.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/net/lib/libshmif/if_shmem.c
diff -u src/sys/rump/net/lib/libshmif/if_shmem.c:1.44 src/sys/rump/net/lib/libshmif/if_shmem.c:1.44.4.1
--- src/sys/rump/net/lib/libshmif/if_shmem.c:1.44	Sat Nov 19 22:51:31 2011
+++ src/sys/rump/net/lib/libshmif/if_shmem.c	Fri Feb  8 20:51:12 2013
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_shmem.c,v 1.44 2011/11/19 22:51:31 tls Exp $	*/
+/*	$NetBSD: if_shmem.c,v 1.44.4.1 2013/02/08 20:51:12 riz 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.44 2011/11/19 22:51:31 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.44.4.1 2013/02/08 20:51:12 riz Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -720,8 +720,7 @@ shmif_rcv(void *arg)
 		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;

Reply via email to