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 ether_ioctl() call for SIOCSIFADDR and SIOCS...



details:   https://anonhg.NetBSD.org/src/rev/99a87614e98a
branches:  trunk
changeset: 450968:99a87614e98a
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Wed May 01 14:10:26 2019 +0000

description:
Add ether_ioctl() call for SIOCSIFADDR and SIOCSIFFLAGS to make behavior
the same as before.

XXX need cleanup.

diffstat:

 sys/dev/pci/if_alc.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r a18ca86bcb1a -r 99a87614e98a sys/dev/pci/if_alc.c
--- a/sys/dev/pci/if_alc.c      Wed May 01 12:31:51 2019 +0000
+++ b/sys/dev/pci/if_alc.c      Wed May 01 14:10:26 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_alc.c,v 1.33 2019/05/01 12:31:51 msaitoh Exp $      */
+/*     $NetBSD: if_alc.c,v 1.34 2019/05/01 14:10:26 msaitoh Exp $      */
 /*     $OpenBSD: if_alc.c,v 1.1 2009/08/08 09:31:13 kevlo Exp $        */
 /*-
  * Copyright (c) 2009, Pyun YongHyeon <yongari%FreeBSD.org@localhost>
@@ -2056,12 +2056,14 @@
 
        switch (cmd) {
        case SIOCSIFADDR:
+               error = ether_ioctl(ifp, cmd, data);
                ifp->if_flags |= IFF_UP;
                if (!(ifp->if_flags & IFF_RUNNING))
                        alc_init(ifp);
                break;
- 
+
        case SIOCSIFFLAGS:
+               error = ether_ioctl(ifp, cmd, data);
                if (ifp->if_flags & IFF_UP) {
                        if (ifp->if_flags & IFF_RUNNING)
                                error = ENETRESET;
@@ -2072,7 +2074,7 @@
                                alc_stop(ifp, 0);
                }
                break;
- 
+
        default:
                error = ether_ioctl(ifp, cmd, data);
                break;



Home | Main Index | Thread Index | Old Index