diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-02-22 20:29:10 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-02-22 20:29:10 +0000 |
commit | ea91a65c1e79695fea7cb80d2acfa092fc947b3d (patch) | |
tree | f2eeb7d1413feb54421425022d5e560c803ac398 /sys/dev/ic | |
parent | 9a9927ee9f9a9d779946047df6ac9fd40ab0dd92 (diff) |
Call ether_ioctl() the way [insert favorite diety] intended.
Diffstat (limited to 'sys/dev/ic')
-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: |