Source-Changes-HG archive

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

[src/trunk]: src/sys/netinet6 ignore ENETRESET on ADDMULTI.



details:   https://anonhg.NetBSD.org/src/rev/014b78ab4d99
branches:  trunk
changeset: 553400:014b78ab4d99
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Oct 15 22:15:25 2003 +0000

description:
ignore ENETRESET on ADDMULTI.

diffstat:

 sys/netinet6/in6.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (32 lines):

diff -r b393dcfd41d3 -r 014b78ab4d99 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c        Wed Oct 15 21:40:49 2003 +0000
+++ b/sys/netinet6/in6.c        Wed Oct 15 22:15:25 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: in6.c,v 1.79 2003/09/05 23:20:50 itojun Exp $  */
+/*     $NetBSD: in6.c,v 1.80 2003/10/15 22:15:25 itojun Exp $  */
 /*     $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $   */
 
 /*
@@ -62,7 +62,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.79 2003/09/05 23:20:50 itojun Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.80 2003/10/15 22:15:25 itojun Exp $");
 
 #include "opt_inet.h"
 
@@ -1882,9 +1882,12 @@
                ifr.ifr_addr.sin6_addr = *maddr6;
                if (ifp->if_ioctl == NULL)
                        *errorp = ENXIO; /* XXX: appropriate? */
-               else
+               else {
                        *errorp = (*ifp->if_ioctl)(ifp, SIOCADDMULTI,
                            (caddr_t)&ifr);
+                       if (*errorp == ENETRESET)
+                               *errorp = 0;
+               }
                if (*errorp) {
                        LIST_REMOVE(in6m, in6m_entry);
                        free(in6m, M_IPMADDR);



Home | Main Index | Thread Index | Old Index