| History log of /src/sbin/ifconfig/media.c |
| Revision | | Date | Author | Comments |
| 1.14 |
| 04-Apr-2022 |
andvar | fix various typos, mainly in comments.
|
| 1.13 |
| 14-Oct-2020 |
roy | ifconfig: go back to using direct ioctls rather than data from getifaddrs
AF_LINK may not be the first address returned for the interface. Technically, it *might* not even exist on the interface even though other families do. This is likely a driver bug if this really is the case though.
As such it's just easier to use direct ioctls rather than thump around getifaddrs results. As it stands, the code makes a lot of getifaddrs calls anyway, so an extra ioctl or two won't break the bank.
|
| 1.12 |
| 05-Oct-2020 |
roy | Minor correction to prior
|
| 1.11 |
| 05-Oct-2020 |
roy | ifconfig: Warn once more if media supported but no types
This reverts media.c -r1.7
|
| 1.10 |
| 22-Sep-2020 |
roy | ifconfig: Report link state even if media is not supported
For AF_LINK addrs from getifaddrs(2), ifa_data is struct if_data. This in turn holds ifi_link_state which we can use to report link status if the interface does not support media where it's normally reported.
Based on OpenBSD.
|
| 1.9 |
| 07-Jun-2020 |
thorpej | Update for proplib(3) API changes.
|
| 1.8 |
| 22-Apr-2019 |
msaitoh | Suggested by Christos: - Dont' cast malloc()'s return value. - Use calloc() instead of malloc().
|
| 1.7 |
| 14-Sep-2016 |
roy | branches: 1.7.14; Don't bail if SIOGIFMEDIA doesn't return any media lists because we can still report link status.
|
| 1.6 |
| 29-Aug-2011 |
joerg | branches: 1.6.24; Use __dead
|
| 1.5 |
| 13-Dec-2010 |
pooka | Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.
|
| 1.4 |
| 01-Jul-2010 |
dyoung | Add to the string parse object (pstr), and its constructors, a flag that tells whether it should detect and convert to binary a hexadecimal octet string of the form 0x0123ABab, or leave those strings undecoded.
If the argument for a 'media', 'mediamode', 'mediaopt', '-mediaopt', 'nwkey', or 'bssid' keyword is a hexadecimal octet string, do not detect and decode it. (Note that setifnwkey decodes hexadecimal strings on its own.)
This fixes a bug noticed by Jim Miller where the trailing zero-octets were discarded from hexadecimal octet-string arguments for 'nwkey'.
|
| 1.3 |
| 15-Jul-2008 |
dyoung | branches: 1.3.2; 1.3.4; Cosmetic: s/xenv/oenv/
|
| 1.2 |
| 15-Jul-2008 |
dyoung | Only describe flags -L and -m in the usage if they are available. That helps me get rid of some conditional compilation (INET6) in ifconfig.
Let each protocol/feature-module print its own usage, so that the ifconfig usage reflects the modules that are actually compiled-in.
Write usage information for carp(4) options.
|
| 1.1 |
| 02-Jul-2008 |
dyoung | Let us add/remove features from ifconfig, such as support for various address families (inet, inet6, iso, atalk) and protocols (802.11, 802.3ad, CARP), simply by trimming the list of sources in the Makefile. This helps one customize ifconfig for an embedded device or for install media, and it eliminates a lot of grotty #ifdef'age. Now, the ifconfig syntax and semantics are finalized at run-time using the constructor routines in each address-family/protocol module.
(In principle, ifconfig could load virtually all of its syntax from shared objects.)
Extract a lot of common code into subroutines, in order to shrink the ifconfig binary a bit. Make all of the address families share code for address addition/replacement/removal, and delete "legacy" code for manipulating addresses. That may have broken atalk and iso, despite my best efforts.
Extract an include file, Makefile.inc, containing the make-fu that both ifconfig and x_ifconfig share.
Sprinkle static. Change some int's to bool's. Constify.
Add RCS Ids to carp.c and env.c. Move media code to a new file, media.c. Delete several unneeded header files.
Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'.
Bug fix: do not require both a interface address and a destination address for point-to-point interfaces, but accept a interface address by itself.
|
| 1.3.4.2 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
| 1.3.4.1 |
| 15-Jul-2008 |
mjf | file media.c was added on branch mjf-devfs2 on 2008-09-28 11:17:11 +0000
|
| 1.3.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
| 1.3.2.1 |
| 15-Jul-2008 |
wrstuden | file media.c was added on branch wrstuden-revivesa on 2008-09-18 04:28:25 +0000
|
| 1.6.24.1 |
| 04-Nov-2016 |
pgoyette | Sync with HEAD
|
| 1.7.14.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|