Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Add missing ifioctl_common() for SIOCSIFFLAGS to...



details:   https://anonhg.NetBSD.org/src/rev/49945716428e
branches:  trunk
changeset: 458549:49945716428e
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed Jul 31 16:08:23 2019 +0000

description:
Add missing ifioctl_common() for SIOCSIFFLAGS to make if_flags controllable.

diffstat:

 sys/dev/pci/if_et.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r a6b548d407f9 -r 49945716428e sys/dev/pci/if_et.c
--- a/sys/dev/pci/if_et.c       Wed Jul 31 15:02:39 2019 +0000
+++ b/sys/dev/pci/if_et.c       Wed Jul 31 16:08:23 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_et.c,v 1.24 2019/05/28 07:41:49 msaitoh Exp $       */
+/*     $NetBSD: if_et.c,v 1.25 2019/07/31 16:08:23 msaitoh Exp $       */
 /*     $OpenBSD: if_et.c,v 1.11 2008/06/08 06:18:07 jsg Exp $  */
 /*
  * Copyright (c) 2007 The DragonFly Project.  All rights reserved.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.24 2019/05/28 07:41:49 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_et.c,v 1.25 2019/07/31 16:08:23 msaitoh Exp $");
 
 #include "opt_inet.h"
 #include "vlan.h"
@@ -1038,6 +1038,8 @@
 
        switch (cmd) {
        case SIOCSIFFLAGS:
+               if ((error = ifioctl_common(ifp, cmd, data)) != 0)
+                       break;
                if (ifp->if_flags & IFF_UP) {
                        /*
                         * If only the PROMISC or ALLMULTI flag changes, then



Home | Main Index | Thread Index | Old Index