diff options
author | 2002-02-22 20:29:09 +0000 | |
---|---|---|
committer | 2002-02-22 20:29:09 +0000 | |
commit | bdfa2dbe1a6a7dfd0c323f41a55d8c190525e535 (patch) | |
tree | f78ee55a06a0f752601f385d73263f25645aa940 | |
parent | Debugger() is #ifdef DDB (diff) | |
download | wireguard-openbsd-bdfa2dbe1a6a7dfd0c323f41a55d8c190525e535.tar.xz wireguard-openbsd-bdfa2dbe1a6a7dfd0c323f41a55d8c190525e535.zip |
Call ether_ioctl() the way [insert favorite diety] intended.
-rw-r--r-- | sys/dev/ic/gem.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c index 52eb0d4bcb5..7a5829e3754 100644 --- a/sys/dev/ic/gem.c +++ b/sys/dev/ic/gem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: gem.c,v 1.16 2002/02/22 20:15:28 jason Exp $ */ +/* $OpenBSD: gem.c,v 1.17 2002/02/22 20:29:09 jason Exp $ */ /* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */ /* @@ -1304,7 +1304,6 @@ gem_mediastatus(ifp, ifmr) ifmr->ifm_status = sc->sc_mii.mii_media_status; } -int gem_ioctldebug = 0; /* * Process an ioctl request. */ @@ -1321,6 +1320,11 @@ gem_ioctl(ifp, cmd, data) s = splimp(); + if ((error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data)) > 0) { + splx(s); + return (error); + } + switch (cmd) { case SIOCSIFADDR: |