freebsd-skq/usr.sbin
Sam Leffler e45a56744b Correct problems with handling interfaces that go away (e.g. when
a card is ejected).  wpa_supplicant requires that internal events
for interfaces coming+going include a name but after an interface
is removed you cannot use if_indextoname to map the interface index
in the RTM_IFINFO (or RTM_IFANNOUNCE) msg to an interface name.
Instead record the interface index in the driver-private data area
and use that to filter msgs from the routing socket.  This insures
that when we have a message to process we know the interface name.
The end result is that we can now dispatch an "interface removed"
event that is understood when notified than an interface went away
(where previously the event dispatched was ignored because the
interface name was unrecognized).

This change also insures we only process events for our interface.

The only downside is that we can no longer wait for an interface
to arrive as we need to map the interface name to an index at
startup.  This is not important as wpa_supplicant should be launched
by devd and not include a separate mechanism for doing interface
discovery.

MFC after:	3 days
2005-07-29 05:57:28 +00:00
..
ac Sort sections. 2005-01-18 20:02:45 +00:00
accton Per letter dated July 22, 1999, delete clause 3 from code directly 2004-08-07 04:19:37 +00:00
acpi Correct column alignment. 2005-07-28 19:41:52 +00:00
adduser Fix a particularly egregious grammar error. 2005-05-24 04:50:07 +00:00
amd Generate locale-agnostic configuration date. 2005-02-16 21:02:50 +00:00
ancontrol Expand *n't contractions. 2005-02-13 22:25:33 +00:00
apm Make apm(8) understand AC Line state 2 as "backup power". 2005-05-30 18:44:43 +00:00
apmd POWERSTATECHANGE was misspelled. 2005-03-24 01:26:40 +00:00
arlcontrol Remove unused variables 2005-05-20 12:44:04 +00:00
arp Commit some cosmetic fixes I developed some time ago, mostly style but 2005-06-09 15:27:46 +00:00
asf Sort sections. 2005-01-18 20:02:45 +00:00
atm Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
authpf Use libutil in DPADD as well. 2005-05-04 08:57:12 +00:00
bluetooth - Grammar fixes 2005-07-09 19:04:43 +00:00
boot0cfg Attempt gctl verb "write MBR" when updating. 2005-07-15 08:04:32 +00:00
boot98cfg Merged from boot0cfg. 2005-07-15 15:32:52 +00:00
bootparamd Pass -C to rpcgen. 2005-02-09 12:17:52 +00:00
bsnmpd Bump the shared library version number of all libraries that have not 2005-07-22 17:19:05 +00:00
btxld Fix the same problem that was fixed in rev. 1.6 and got reintroduced 2005-02-19 21:32:21 +00:00
burncd - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
cdcontrol Sort sections. 2005-01-18 20:02:45 +00:00
chkgrp Markup fixes. 2005-06-14 12:26:36 +00:00
chown Expand *n't contractions. 2005-02-13 22:25:33 +00:00
chroot Per letter dated July 22, 1999, delete clause 3 from code directly 2004-08-07 04:19:37 +00:00
ckdist Sort sections. 2005-01-18 20:02:45 +00:00
config Ask that "make cleandepend" be run before "make depend", now that 2005-04-22 17:42:50 +00:00
cron Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
crunch In crunchgen(1), when calling make(1), don't redirect stderr to stdout, 2005-01-20 10:49:03 +00:00
ctm Expand *n't contractions. 2005-02-13 22:25:33 +00:00
daemon Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
dconschat Fix typos in comments. 2005-03-11 14:20:09 +00:00
devinfo Remove unused local variable. 2004-01-04 15:51:32 +00:00
digictl Sort sections. 2005-01-18 20:02:45 +00:00
diskinfo Sort sections. 2005-01-18 20:02:45 +00:00
dnssec-keygen Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
dnssec-signzone Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
editmap Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
edquota Sort sections. 2005-01-18 20:02:45 +00:00
eeprom Scheduled mdoc(7) sweep. 2005-01-11 11:47:22 +00:00
elf2exe Sort sections. 2005-01-18 20:02:45 +00:00
extattr
extattrctl Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
faithd fixed a possible reference to a broken memory 2005-05-02 07:44:24 +00:00
fdcontrol Cleanup usr.sbin/fd* so they can compile under WARNS=6. 2005-01-08 15:46:06 +00:00
fdformat One of the DIAGNOSTICS sections should be EXIT STATUS. 2005-01-18 09:17:49 +00:00
fdread Expand *n't contractions. 2005-02-13 22:25:33 +00:00
fdwrite Expand *n't contractions. 2005-02-13 22:25:33 +00:00
flowctl Implement "verbose" optional keyword for "show" command. This is analog 2005-03-23 09:40:18 +00:00
fwcontrol Remove unused variables. Shorten the path to a WARNS=6 compliance. 2005-05-20 12:50:47 +00:00
getfmac Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
getpmac Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
gstat Add cross-references to iostat, systat and vmstat. 2005-05-27 00:21:12 +00:00
i4b Fixed xrefs. 2005-01-21 10:35:40 +00:00
ifmcstat Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
inetd Remove rexecd(8), a server that implements a particularly insecure 2005-06-10 20:52:36 +00:00
iostat Interlink systat(1), iostat(8) and vmstat(8) through their SEE ALSO 2005-05-26 17:54:16 +00:00
ip6addrctl Added the EXIT STATUS section where appropriate. 2005-01-17 07:44:44 +00:00
IPXrouted Spell SHUT_RD as SHUT_RD not 0 as the how argument to shutdown(2). 2005-05-11 02:45:49 +00:00
jail Move DNS configuration before sendmail configuration, because 2005-07-25 16:04:30 +00:00
jexec
jls
kbdcontrol - Fix spelling of 'multiplexer' 2005-07-21 22:50:31 +00:00
kbdmap Fixed two bugs in Perl to C conversion that prevented locale name 2005-06-30 05:31:01 +00:00
kernbb Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software 2004-08-07 04:28:56 +00:00
keyserv The variable `ROOTKEY' has internal linkage in keyserv.c, don't declare it as 2005-02-10 09:09:18 +00:00
kgmon Sort sections. 2005-01-18 20:02:45 +00:00
kgzip Sort sections. 2005-01-18 20:02:45 +00:00
kldxref Doh, erase unused variable... 2005-03-03 06:38:00 +00:00
lastlogin Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
lpr Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
lptcontrol Remove useless mode argument to open(). 2005-01-25 14:25:18 +00:00
mailstats Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
mailwrapper Replaced afterinstall: with FILES. 2004-10-18 17:20:29 +00:00
makemap Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
manctl
memcontrol Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of 2005-03-29 20:17:47 +00:00
mergemaster Point to the right path under www.freebsd.org/doc for the Handbook 2005-07-20 12:50:49 +00:00
mixer Markup fixes. 2005-06-14 12:26:36 +00:00
mld6query Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
mlxcontrol Sort sections. 2005-01-18 20:02:45 +00:00
mount_nwfs Expand *n't contractions. 2005-02-13 22:25:33 +00:00
mount_portalfs Markup fixes. 2005-06-14 12:26:36 +00:00
mount_smbfs Make smbfs capable to use 16bit char set in filenames. 2005-05-04 15:05:46 +00:00
mountd NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines 2005-05-13 16:31:11 +00:00
moused Add a -H option to enable horizontal virtual scrolling, much like -V for 2005-07-19 19:30:49 +00:00
mptable Expand *n't contractions. 2005-02-13 22:25:33 +00:00
mrouted Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
mtest Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
mtree Markup fixes. 2005-06-14 12:26:36 +00:00
named Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
named-checkconf Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
named-checkzone Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
named.reload Switch from BIND 8 to BIND 9. 2004-09-21 19:01:48 +00:00
ndiscvt (More thoroughly) fix the problem with the EGREP lines that was reported 2005-07-23 18:47:18 +00:00
ndp Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
newsyslog Markup fixes. 2005-06-14 12:26:36 +00:00
nfsd Bump the default maximum on nfsd processes from 20 to 256. Real-world 2005-01-23 21:34:00 +00:00
ngctl - Reduce the number of netgraph messages when listing 2005-02-09 16:17:33 +00:00
nghook Sort sections. 2005-01-18 20:02:45 +00:00
nologin Use __unused macro instead of a bare void for main(). 2005-01-04 20:07:12 +00:00
ntp Add Meinberg clocks to the default ntpd. It contains both a DCF77 and a GPS 2005-06-23 21:37:27 +00:00
ofwdump Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
pccard Expand *n't contractions. 2005-02-13 22:25:33 +00:00
pciconf add some additional pci classes and sub-classes.. 2005-03-26 20:31:09 +00:00
pcvt Remove the vttest program. It lives in ports/sysutils/vttest now. 2005-07-21 16:40:40 +00:00
periodic Sort sections. 2005-01-18 20:02:45 +00:00
pkg_install Add -o/-O options to pkg_version: 2005-07-27 07:55:12 +00:00
pmccontrol Tidy up the markup, fixed the HISTORY section (1). 2005-06-24 16:19:46 +00:00
pmcstat Sync usage message with the code and manual page. 2005-07-23 13:49:04 +00:00
pnpinfo Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
powerd powerd(8) requires root permissions to run so notify the user if they 2005-07-25 16:43:12 +00:00
ppp NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines 2005-05-13 16:31:11 +00:00
pppctl Expand *n't contractions. 2005-02-13 22:25:33 +00:00
pppd NOCRYPT -> NO_CRYPT 2004-12-21 10:16:04 +00:00
pppstats Remove libz and pppd redundancy 2005-06-03 15:25:13 +00:00
praliases Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
procctl
pstat Remove unused variables. 2005-04-09 14:59:10 +00:00
pw Remove unused variables. 2005-04-09 14:59:10 +00:00
pwd_mkdb Correctly handle an input file without a newline on the last line (and 2005-06-15 10:13:04 +00:00
quot Remove unused variables. 2005-04-09 14:59:10 +00:00
quotaon Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software 2004-08-07 04:28:56 +00:00
rarpd Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
raycontrol Expand *n't contractions. 2005-02-13 22:25:33 +00:00
repquota Sort sections. 2005-01-18 20:02:45 +00:00
rip6query NI_WITHSCOPEID cleanup. Neither RFC 2553 nor RFC 3493 defines 2005-05-13 16:31:11 +00:00
rmt Remove rexecd(8), a server that implements a particularly insecure 2005-06-10 20:52:36 +00:00
rndc Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
rndc-confgen Disable thread support in BIND. It appears to reduce performance rather 2005-07-25 14:44:11 +00:00
route6d Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
rpc.lockd Add FBSDID. Add missing prototypes. Remove unused variables. Give variable 2005-05-20 13:01:47 +00:00
rpc.statd Sort sections. 2005-01-18 20:02:45 +00:00
rpc.umntall Use clnt_create_timed() instead of clnt_create(). The former has an 2005-05-27 00:05:16 +00:00
rpc.yppasswdd Use socklen_t in place of socket operations, instead of int 2005-05-02 14:02:43 +00:00
rpc.ypupdated Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
rpc.ypxfrd Expand *n't contractions. 2005-02-13 22:25:33 +00:00
rpcbind Sort sections. 2005-01-18 20:02:45 +00:00
rrenumd Expand contractions. 2005-02-15 09:27:00 +00:00
rtadvd Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
rtprio Sort sections. 2005-01-18 20:02:45 +00:00
rtsold an English grammar fix 2005-06-09 09:28:35 +00:00
rwhod - Avoid a memory leak if realloc(3) fails by using reallocf(3) 2005-06-03 17:38:33 +00:00
sa Expand contractions. 2005-02-13 23:45:54 +00:00
sade Recognise GEM ethernet adapter (sparc64/ppc). 2005-07-21 03:33:19 +00:00
sendmail Remove kludges intended to support src trees with partial obj trees. 2005-06-10 06:12:53 +00:00
setfmac Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
setkey Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
setpmac Remove unnecessary SRCS= where could be guessed directly by our 2005-01-27 14:52:47 +00:00
sicontrol Get debugging macros from sivar.h 2004-10-02 18:51:37 +00:00
sliplogin Remove an unused variable and a useless getuid() declaration. 2005-04-09 15:00:51 +00:00
slstat Stop embedding struct ifnet at the top of driver softcs. Instead the 2005-06-10 16:49:24 +00:00
smbmsg Sort sections. 2005-01-18 20:02:45 +00:00
snapinfo snapinfo -- show snapshot location on UFS file systems 2005-07-20 18:59:25 +00:00
spkrtest
spray
sysinstall Recognise GEM ethernet adapter (sparc64/ppc). 2005-07-21 03:33:19 +00:00
syslogd Add cases for ENOBUFS and ENETDOWN. We need to make sure that we 2005-05-19 21:09:44 +00:00
tcpdchk NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
tcpdmatch NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
tcpdrop - Remove MLINKS to nonexistant manpages 2005-07-14 20:29:08 +00:00
tcpdump update for v3.9.1 (releaes) 2005-07-11 04:14:42 +00:00
timed Sort sections. 2005-01-18 20:02:45 +00:00
traceroute NOIPSEC -> TRACEROUTE_NO_IPSEC 2004-12-21 12:44:20 +00:00
traceroute6 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
trpt Expand *n't contractions. 2005-02-13 22:25:33 +00:00
tzsetup Sort sections. 2005-01-18 20:02:45 +00:00
ugidfw Fixing an off-by-one error which results in 'ugidfw list' to complain about 2005-07-21 13:23:23 +00:00
usbd Up the count of busses supported by usbd(8) from 4 to 40. With the advent 2005-07-01 15:49:52 +00:00
usbdevs Add option '-o' for one-line output in combination with '-d'. 2004-05-24 13:22:00 +00:00
vidcontrol Markup fixes. 2005-06-14 12:26:36 +00:00
vipw Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software 2004-08-07 04:28:56 +00:00
vnconfig Start the dreaded NOFOO -> NO_FOO conversion. 2004-12-21 08:47:35 +00:00
watch Sort sections. 2005-01-18 20:02:45 +00:00
watchdogd When disarming a watchdog by using an interval of WD_TO_NEVER a non-zero 2005-03-19 01:46:37 +00:00
wicontrol Expand *n't contractions. 2005-02-13 22:25:33 +00:00
wlconfig Mechanically kill hard sentence breaks. 2004-07-02 23:13:00 +00:00
wpa Correct problems with handling interfaces that go away (e.g. when 2005-07-29 05:57:28 +00:00
yp_mkdb Expand *n't contractions. 2005-02-13 22:25:33 +00:00
ypbind Expand *n't contractions. 2005-02-13 22:25:33 +00:00
yppoll Include <timeconv.h> for time conversion functions. 2004-05-24 16:10:57 +00:00
yppush (handler): When exitting upon an abnormal signal, yppush_exit() should not 2005-04-12 15:02:57 +00:00
ypserv Remove unused variables. int -> size_t for lenghts. 2005-05-20 13:04:10 +00:00
ypset Remove definition of struct dom_binding, it's non-standard C code and 2004-10-17 19:33:33 +00:00
zic Expand contractions. 2005-02-13 23:45:54 +00:00
zzz Assorted markup, grammar, and spelling fixes. 2004-06-13 18:03:44 +00:00
Makefile Connect snapinfo to the build. 2005-07-20 22:53:57 +00:00
Makefile.inc