summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd/hostapd.c
AgeCommit message (Collapse)Author
2016-05-28Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).Martin Natano
ok deraadt jca
2015-12-22remove a NULL-check before free()mmcc
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2008-05-12Fix cut and pasto; Steven RobertsTodd C. Miller
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
option parsing. Found out the hard way by jdixon on ifstated. ok sobrado@, jdixon@, millert@
2007-05-02Use event(3) provided signal functions -- this decouples the eventClaudio Jeker
handling and so the signal handlers are safe to call whatever they want. This solves PR5463. OK reyk@
2007-02-08carefully check some return values and make lint happy. check forReyk Floeter
truncation before feeding strings into the kernel.
2006-09-28hostapd tree search speedup via inlined compare functionReyk Floeter
suggested by Mike Belopuhov (mkb at crypt dot org dot ru)
2006-06-01don't use the newline character in hostapd_log() callsReyk Floeter
2006-05-13set the correct timezone using tzset() before before writing to syslog.Reyk Floeter
thanks to Bruno Carnazzi
2006-02-25fix for hostapd_printf() from Andrey Matveev:Reyk Floeter
---snip--- We allocate some memory with va_start() for storage variable arguments in dynamic mode. va_end() takes care about clearing this memory. Therefore we should be sure, that to each va_start() there corresponds va_end() call. And on error path too. ---snap---
2005-12-18Update my e-mail address in the copyright statement, no binary changes.Reyk Floeter
2005-12-10add an option to increase the multicast ttl which is currently limitedReyk Floeter
to 1 hop. by using a higher multicast ttl, you could use inter-network multicast forwarding of hostapd messages (i.e. with mrouted(8) or multicast-capable routing switches); "set iapp mode multicast ttl 2".
2005-12-01move iapp configuration in a separate data structureReyk Floeter
2005-11-20add support for multiple hostap (wireless) interfaces.Reyk Floeter
for example, if you run one hostapd with two ath(4) devices. you have to specify "set hostap interface { ath0, ath1 }" in hostapd.conf(5). man page bits by jmc@, tested by others
2005-11-16add a configuration option for specifying a non-standard port and multicastReyk Floeter
address for the IAPP messages. this is an initial approach to run multiple hostapds on one machine, further work will be done later.
2005-10-07move IAPP definitions to separate header fileReyk Floeter
2005-10-07spacingReyk Floeter
2005-09-13use memcmp instead of bcmp to compare tree nodes.Reyk Floeter
2005-09-09replace hasch tables with red-black trees used by the node tables.Reyk Floeter
ok mcbride@
2005-08-17add newlines in hostapd_fatal() calls, fix some typos.Reyk Floeter
thanks to Brian Poole.
2005-07-30flush print buffer on empty newlinesReyk Floeter
2005-07-04nicer textTheo de Raadt
2005-07-04remove command line options -i, -a and -b (iapp interface, hostap interfaceReyk Floeter
and broadcast mode). please use the configuration file hostapd.conf(5) instead, it is now mandatory to run hostapd with it.
2005-07-04print error messages to stderr instead of syslog on startup.Reyk Floeter
suggested by deraadt@
2005-07-04add 'random' action address and auth open request/responseReyk Floeter
2005-06-17first step to implement a proactive wireless monitoring system usingReyk Floeter
hostapd(8). it's a very simple but powerful approach using highly flexible and stateless event and action rules for IEEE 802.11 traffic. you can monitor a wireless network by watching frames with types and addresses (with support for tables and masks) and you can trigger actions like writing log messages, sending pcap/radiotap dumps to the IAPP network, removing nodes from the hostap, resending received frames and sending contructed 802.11 frames in reply to traffic received from any rogue nodes. it's based on some initial work from the c2k5 which has been tested and improved during the last weeks. some missing documentation for hostapd.conf(5) will be written as soon as possible. ok deraadt@
2005-05-21hostapd doesn't really do much without root privileges, so check for that earlyMathieu Sauve-Frankel
ok reyk@
2005-04-14fix possible double free(), thans to Andrey MatveevReyk Floeter
2005-04-13un-hack, use event_loopexit()Reyk Floeter
ok henning@ brad@
2005-04-13sync usage()Jason McIntyre
2005-04-13only fflush STDERR when we actually log to STDERR, reyk okHenning Brauer
2005-04-13missing copyrights here as wellHenning Brauer
it is more than fine to re-use our code (please do!), but do not forget our copyright!
2005-04-13do not close descriptors before exitTheo de Raadt
2005-04-13bzero of bss not neededTheo de Raadt
2005-04-13KNFHenning Brauer
2005-04-13add the initial version of the OpenBSD hostapd daemonReyk Floeter
ok deraadt@