Module Name: src
Committed By: pooka
Date: Tue May 26 19:03:05 UTC 2009
Modified Files:
src/sys/rump/net/lib/libshmif: if_shmem.c
src/sys/rump/net/lib/libvirtif: if_virt.c
Log Message:
Filter out ENETRESET from ether_ioctl() since we aren't interested
in multicast hugging.
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/sys/rump/net/lib/libshmif/if_shmem.c
cvs rdiff -u -r1.8 -r1.9 src/sys/rump/net/lib/libvirtif/if_virt.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.6 src/sys/rump/net/lib/libshmif/if_shmem.c:1.7
--- src/sys/rump/net/lib/libshmif/if_shmem.c:1.6 Mon Apr 6 20:41:29 2009
+++ src/sys/rump/net/lib/libshmif/if_shmem.c Tue May 26 19:03:05 2009
@@ -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;
Index: src/sys/rump/net/lib/libvirtif/if_virt.c
diff -u src/sys/rump/net/lib/libvirtif/if_virt.c:1.8 src/sys/rump/net/lib/libvirtif/if_virt.c:1.9
--- src/sys/rump/net/lib/libvirtif/if_virt.c:1.8 Fri Mar 27 13:46:35 2009
+++ src/sys/rump/net/lib/libvirtif/if_virt.c Tue May 26 19:03:05 2009
@@ -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;