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/8918370896ba
branches: trunk
changeset: 462917:8918370896ba
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 3f5ecc33da86 -r 8918370896ba 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