Module Name: src
Committed By: pooka
Date: Thu Oct 11 10:50:46 UTC 2012
Modified Files:
src/sys/rump/net/lib/libshmif: if_shmem.c
Log Message:
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.45 -r1.46 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.45 src/sys/rump/net/lib/libshmif/if_shmem.c:1.46
--- src/sys/rump/net/lib/libshmif/if_shmem.c:1.45 Fri Sep 14 16:29:22 2012
+++ src/sys/rump/net/lib/libshmif/if_shmem.c Thu Oct 11 10:50:45 2012
@@ -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 @@ 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;