diff options
author | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-11 13:02:29 +0000 |
---|---|---|
committer | Stefan Sperling <stsp@cvs.openbsd.org> | 2015-09-11 13:02:29 +0000 |
commit | 60446fe20a75a96e4e90d49e026768a4a5de327e (patch) | |
tree | 4df36879019283b812826de0f68df84379613b0f /sys/dev/isa/if_we.c | |
parent | 39d4e265d62cc7fb7ea6c2dfa113f7e47cb3a730 (diff) |
Make room for media types of the future. Extend the ifmedia word to 64 bits.
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and
grows struct ifmediareq.
Old ifconfig and dhclient binaries can still assign addresses, however
the 'media' subcommand stops working. Recompiling ifconfig and dhclient
with new headers before a reboot should not be necessary unless in very
special circumstances where non-default media settings must be used to
get link and console access is not available.
There may be some MD fallout but that will be cleared up later.
ok deraadt miod
with help and suggestions from several sharks attending l2k15
Diffstat (limited to 'sys/dev/isa/if_we.c')
-rw-r--r-- | sys/dev/isa/if_we.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/isa/if_we.c b/sys/dev/isa/if_we.c index d48f49fb271..5c0f34ca0f5 100644 --- a/sys/dev/isa/if_we.c +++ b/sys/dev/isa/if_we.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_we.c,v 1.23 2014/08/11 12:45:45 mpi Exp $ */ +/* $OpenBSD: if_we.c,v 1.24 2015/09/11 13:02:28 stsp Exp $ */ /* $NetBSD: if_we.c,v 1.11 1998/07/05 06:49:14 jonathan Exp $ */ /*- @@ -747,7 +747,7 @@ void we_media_init(struct dp8390_softc *sc) { struct we_softc *wsc = (void *)sc; - int defmedia = IFM_ETHER; + uint64_t defmedia = IFM_ETHER; u_int8_t x; if (sc->is790) { |