Tue May 26 19:03:05 2009 UTC ()
Filter out ENETRESET from ether_ioctl() since we aren't interested
in multicast hugging.


(pooka)
diff -r1.6 -r1.7 src/sys/rump/net/lib/libshmif/if_shmem.c
diff -r1.8 -r1.9 src/sys/rump/net/lib/libvirtif/if_virt.c

cvs diff -r1.6 -r1.7 src/sys/rump/net/lib/libshmif/if_shmem.c (expand / switch to context diff)
--- src/sys/rump/net/lib/libshmif/if_shmem.c 2009/04/06 20:41:29 1.6
+++ src/sys/rump/net/lib/libshmif/if_shmem.c 2009/05/26 19:03:05 1.7
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_shmem.c,v 1.6 2009/04/06 20:41:29 pooka Exp $	*/
+/*	$NetBSD: if_shmem.c,v 1.7 2009/05/26 19:03:05 pooka Exp $	*/
 
 /*
  * Copyright (c) 2009 Antti Kantee.  All Rights Reserved.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.6 2009/04/06 20:41:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_shmem.c,v 1.7 2009/05/26 19:03:05 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/fcntl.h>
@@ -262,6 +262,8 @@
 
 	s = splnet();
 	rv = ether_ioctl(ifp, cmd, data);
+	if (rv == ENETRESET)
+		rv = 0;
 	splx(s);
 
 	return rv;

cvs diff -r1.8 -r1.9 src/sys/rump/net/lib/libvirtif/if_virt.c (expand / switch to context diff)
--- src/sys/rump/net/lib/libvirtif/if_virt.c 2009/03/27 13:46:35 1.8
+++ src/sys/rump/net/lib/libvirtif/if_virt.c 2009/05/26 19:03:05 1.9
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_virt.c,v 1.8 2009/03/27 13:46:35 pooka Exp $	*/
+/*	$NetBSD: if_virt.c,v 1.9 2009/05/26 19:03:05 pooka Exp $	*/
 
 /*
  * Copyright (c) 2008 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.8 2009/03/27 13:46:35 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_virt.c,v 1.9 2009/05/26 19:03:05 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/condvar.h>
@@ -167,6 +167,8 @@
 
 	s = splnet();
 	rv = ether_ioctl(ifp, cmd, data);
+	if (rv == ENETRESET)
+		rv = 0;
 	splx(s);
 
 	return rv;