#
9f0452d1 |
| 12-Aug-2022 |
bluhm <bluhm@openbsd.org> |
Fix non working continue in do while(0) loop. OK mvs@ jca@ CID 1519492
|
#
91afdc87 |
| 05-Aug-2022 |
bluhm <bluhm@openbsd.org> |
The netlock for SIOCSIFMEDIA and SIOCGIFMEDIA ioctl is not necessary. Legacy drivers run with kernel lock, interface media is MP safe or has kernel lock. Assert kernel lock in ix(4) and ixl(4). OK k
The netlock for SIOCSIFMEDIA and SIOCGIFMEDIA ioctl is not necessary. Legacy drivers run with kernel lock, interface media is MP safe or has kernel lock. Assert kernel lock in ix(4) and ixl(4). OK kettenis@
show more ...
|
#
56645681 |
| 14-Jul-2022 |
bluhm <bluhm@openbsd.org> |
Protect all writers to ifm_cur with a mutex. ifmedia_match() does not return any pointers without lock anymore. OK mvs@ mbuhl@
|
#
4c13da99 |
| 12-Jul-2022 |
bluhm <bluhm@openbsd.org> |
Use __func__ in interface media debug printf().
|
#
1cc9250c |
| 12-Jul-2022 |
bluhm <bluhm@openbsd.org> |
Protect interface media list with a mutex. This is just a start to make make media structures MP safe. OK mvs@
|
#
77574026 |
| 10-Jul-2022 |
bluhm <bluhm@openbsd.org> |
Add _cb suffix to callback fields in struct ifmedia. Makes code easier to read and grep as ifm_status was used in both structs ifmediareq and ifmedia with different meaning. OK mvs@
|
#
aeeb6b7d |
| 07-Apr-2022 |
naddy <naddy@openbsd.org> |
constify ifmedia descriptions; ok deraadt@ miod@
|
#
b224cd1f |
| 21-Apr-2019 |
stsp <stsp@openbsd.org> |
Interpret ENETRESET from ifm_change() as success in ifmedia_ioctl().
Drivers will return ENETREST if the hardware needs to be reinitialized after successfully switching to the new media mode; it's n
Interpret ENETRESET from ifm_change() as success in ifmedia_ioctl().
Drivers will return ENETREST if the hardware needs to be reinitialized after successfully switching to the new media mode; it's not an error.
This change fixes unreliable 'ifconfig mode' with some wireless drivers.
ok phessler@ jmatthew@
show more ...
|
#
f419757a |
| 24-Jan-2017 |
krw <krw@openbsd.org> |
A space here, a space there. Soon we're talking real whitespace rectification.
|
#
1d7d2a43 |
| 17-Oct-2015 |
stsp <stsp@openbsd.org> |
Fix build with IFMEDIA_DEBUG defined; ok sthen@
|
#
0985b883 |
| 29-Sep-2015 |
deraadt <deraadt@openbsd.org> |
add sizes to some of the simpler free calls ok mpi
|
#
f2a0e423 |
| 11-Sep-2015 |
stsp <stsp@openbsd.org> |
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 b
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
show more ...
|
#
21dab745 |
| 14-Mar-2015 |
jsg <jsg@openbsd.org> |
Remove some includes include-what-you-use claims don't have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels.
ok tedu@ deraadt@
|
#
97b48d1d |
| 21-Jan-2015 |
deraadt <deraadt@openbsd.org> |
if_media.c needs net/if_var.h. This fixes the build with IFMEDIA_DEBUG. from Fabian Raetz
|
#
0f0d0f95 |
| 09-Dec-2014 |
doug <doug@openbsd.org> |
More malloc() -> mallocarray() in the kernel.
ok deraadt@ tedu@
|
#
dd168dc2 |
| 12-Jul-2014 |
tedu <tedu@openbsd.org> |
add a size argument to free. will be used soon, but for now default to 0. after discussions with beck deraadt kettenis.
|
#
8b829446 |
| 19-Jan-2014 |
pelikan <pelikan@openbsd.org> |
Prettify; remove useless cast, reformat, fix TAILQ_FOREACH's.
No functional change.
ok deraadt
|
#
a11b1c7e |
| 19-Jan-2014 |
deraadt <deraadt@openbsd.org> |
Count the number of media words required only once. If the media words change during M_WAITOK (note: no driver does this at the moment), then be careful to not copyout a truncated media word list, b
Count the number of media words required only once. If the media words change during M_WAITOK (note: no driver does this at the moment), then be careful to not copyout a truncated media word list, but return E2BIG. ok mikeb guenther kettenis
show more ...
|
#
d874cce4 |
| 26-Jun-2008 |
ray <ray@openbsd.org> |
First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code t
First pass at removing clauses 3 and 4 from NetBSD licenses.
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors.
OK deraadt@
show more ...
|
#
e7581027 |
| 20-Dec-2007 |
brad <brad@openbsd.org> |
return with ENOTTY instead of EINVAL for unknown ioctl requests.
ok claudio@ krw@ jason@ dlg@
|
#
daa6cd26 |
| 19-Sep-2007 |
brad <brad@openbsd.org> |
tidy up a little.
ok claudio@ dlg@
|
#
1d392bcc |
| 17-Sep-2007 |
brad <brad@openbsd.org> |
- Use a 64-bit int for the baudrate within the ifmedia_baudrate struct and return a 64-bit int for ifmedia_baudrate(). - Fix consumers of ifmedia_baudrate() to deal with the change.
ok claudio@ dlg@
|
#
50a50837 |
| 28-Jul-2005 |
brad <brad@openbsd.org> |
rev 1.18
when there are multiple matches for the requested media, select the first matching instance rather than the last one.
From chs NetBSD
|
#
7cfbe343 |
| 09-Jul-2005 |
brad <brad@openbsd.org> |
ANSI protos
|
#
3b1ff78b |
| 05-Jul-2005 |
brad <brad@openbsd.org> |
- prototype must not have variable name.
From itojun NetBSD
- Fix signed/unsigned comparison warnings. - Make ifm_data unsigned. - Make media and mask unsigned.
From thorpej NetBSD
ok deraadt@
|