summaryrefslogtreecommitdiffstats
path: root/sbin/ifconfig/af_link.c
Commit message (Collapse)AuthorAgeFilesLines
* use getifaddrs from libc instead of private codesam2007-02-241-5/+5
| | | | | Reviewed by: bms MFC after: 1 month
* Fix an off-by-one bug.ru2006-01-151-1/+1
| | | | Submitted by: Ulrich Spoerlein
* Fix special status reporting. Prior to the reorg there wassam2004-12-311-2/+4
| | | | | | | | | | | | | | | | | | | | | | | special-purpose code to display status for an interface for state that was not address-oriented. This status reporting was merged in to the address-oriented status reporting but did not work for link address reporting (as discovered with fwip interfaces). Correct this mis-merge and eliminate the bogus kludge that was used for link-level address reporting. o add an af_other_status method for an address family for reporting status of things like media, vlan, etc. o call the af_other_status methods after reporting address status for an interface o special-case link address status; when reporting all status for an interface invoke it specially prior to reporting af_other_status methods (since it requires the sockaddr_dl that is passed in to status separately from the rtmsg address state) o correct the calling convention for link address status; don't cast types, construct the proper parameter This fixes ifconfig on fwip interfaces.
* Overhaul to cleanup some of the tangled logic that's grown over the years.sam2004-12-081-0/+125
o break per-address family support out into separate files o modularize per-address family and functional operations using a registration mechanism; this permits configuration according to which files you include (but beware that order of the files is important to insure backwards compatibility) o many cleanups to eliminate incestuous behaviour, global variables, and poor coding practices (still much more to fix) The original motivation of this work was to support dynamic addition of functionality based on the interface so we can eliminate the various little control programs and so that vendors can distribute ifconfig plugins that support their in-kernel code. That work is still to be completed. o Update 802.11 support for all the new net80211 functionality; some of these operations (e.g. list *) may be better suited in a different program
OpenPOWER on IntegriCloud