Home | History | Annotate | Download | only in ifconfig
History log of /src/sbin/ifconfig/ieee80211.c
RevisionDateAuthorComments
 1.31  13-Aug-2021  andvar fix typos in words "pointer" and s/fram /frame/
 1.30  16-Aug-2019  msaitoh Whitespace fix.
 1.29  22-Sep-2016  christos branches: 1.29.14;
fix bugs in ssid printing
 1.28  28-Apr-2015  christos branches: 1.28.2;
remove 80211 stats if small.
 1.27  08-Jan-2014  christos perror is obsolete, use warn and add missing paren.
 1.26  07-Jan-2014  degroote Before scanning, check if the card is up. If it is not the case, exit
with some useful error message. Add some note about this fact in the man
page too.
 1.25  13-Dec-2010  pooka branches: 1.25.6; 1.25.12;
Convert from the .ifdef RUMP_ACTION stuff to RUMPPRG.
 1.24  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.23  18-Jan-2009  lukem fix -Wsign-compare issues
 1.22  15-Jul-2008  dyoung Cosmetic: s/xenv/oenv/
 1.21  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.20  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.19  19-May-2008  dyoung Fix two bugs:

1 Let us associate a keyword with either a signed or an unsigned
number. Associate the '-chan' keyword with an unsigned number.
This fixes the defect that crashed 'ifconfig wi0 -chan', reported
by Michael van Elst.

2 Do not try to interpret names as ISO addresses unless the ISO
address family was specified. iso_addr(3) does not report errors,
so it appears to interpret *everything* as an ISO address. This
is a stopgap fix for the defect in 'ifconfig lo0 inet6' on a
!INET6 kernel that deletes the first IPv4 address on lo0.
(Reported by Scott Ellis.)
 1.18  07-May-2008  dyoung Factor out common code, creating direct_ioctl() and indirect_ioctl()
for the two most prevalent styles of ioctl(2) calls in ifconfig(8).
 1.17  07-May-2008  dyoung Move tunnel syntax into tunnel.c. Move net80211 'list' command
syntax into ieee80211.c.
 1.16  07-May-2008  dyoung Move net80211 and agr(4) syntax out of ifconfig.c and into ieee80211.c
and agr.c, respectively.
 1.15  06-May-2008  dyoung branches: 1.15.2;
Use prop_dictionary_util(3).

Re-use set80211() some more.
 1.14  06-May-2008  dyoung Use prop_dictionary_util(3) some more.

When we read interface flags and capabilities from the kernel, take
care not to record them in our current environment (env), but record
them in the output environment (oenv), instead. This helps us get
interface capabilities and flags right.
 1.13  06-May-2008  skrll Restore RCSId lost in 1.11
 1.12  06-May-2008  dyoung Overhaul ifconfig. Use fewer global variables. Take a leap toward
improved modularity and extensibility.

In the new architecture, a directed graph of argument-matching
objects (match objects) expresses the set of feasible ifconfig
statements. Match objects are labelled by subroutines that provide
the statement semantics.

Many IPv4, IPv6, 802.11, tunnel, and media configurations have been
tested.

AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need
testing.
 1.11  16-Dec-2007  degroote branches: 1.11.4; 1.11.6;
Add support for the command list scan in ifconfig (this command permits to scan
access point in the neighbourhood).

Complete list of channel attributes and list of management information element
payload.

While here, use estrlcpy instead of strncpy.

From FreeBSD ifconfig and net80211
 1.10  09-Jan-2007  dyoung branches: 1.10.4; 1.10.6;
Print more 802.11 statistics when the operator runs 'ifconfig -v
ath0', for example. Fix the spelling of one statistic.
 1.9  09-Jan-2007  dyoung Per discussion "ifconfig error handling" on tech-net@ in August
2006, if we fail to set any 802.11 parameter, exit immediately with
EXIT_FAILURE.
 1.8  09-Jan-2007  dyoung Let us adjust the 802.11 fragmentation threshold with ifconfig ath0
frag 256, for example.
 1.7  26-Aug-2006  christos Programs that use efun.
 1.6  16-Jun-2006  elad fix incorrect usage of strncpy() to (an internal implementation of)
estrlcpy().

okay christos
 1.5  29-Apr-2006  rpaulo Add two new options from FreeBSD:
hidessid | -hidessid: SSID broadcast control
apbridge | -apbridge: how to pass packets between wifi clients
 1.4  25-Jan-2006  christos PR/32628: Yves-Emmanuel JUTARD: Missing cast in sbin/ifconfig/ifconfig.c,
strcasecmp needs char * not u_int8_t *.
 1.3  15-Sep-2005  dyoung Commit a straggler: use the new SIOCG80211STATS/SIOCG80211ZSTATS
ABI.
 1.2  22-Jun-2005  dyoung Resolve conflicts in importation of 18-May-2005 ath(4) / net80211(9)
from FreeBSD. Introduce compatibility shims (sys/dev/ic/ath_netbsd.[ch],
sys/net80211/ieee80211_netbsd.[ch]). Update drivers (an, atu, atw,
awi, ipw, iwi, rtw, wi) for the new net80211(9) API.
 1.1  19-Mar-2005  thorpej Split off 802.11 interface handling into its own file.
 1.10.6.1  27-Dec-2007  mjf Sync with HEAD.
 1.10.4.1  09-Jan-2008  matt sync with HEAD
 1.11.6.2  04-Jun-2008  yamt sync with head
 1.11.6.1  18-May-2008  yamt sync with head.
 1.11.4.2  28-Sep-2008  mjf Sync with HEAD.
 1.11.4.1  02-Jun-2008  mjf Sync with HEAD.
 1.15.2.2  18-Sep-2008  wrstuden Sync with wrstuden-revivesa-base-2.
 1.15.2.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.25.12.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.25.6.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.28.2.1  04-Nov-2016  pgoyette Sync with HEAD
 1.29.14.2  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.29.14.1  10-Jun-2019  christos Sync with HEAD

RSS XML Feed