summaryrefslogtreecommitdiffstats
path: root/usr.sbin/hostapd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;jmc2020-04-231-3/+3
|
* briefly mention /etc/examples/ in the FILES section of all theschwarze2020-02-101-3/+5
| | | | | manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
* snprintf/vsnprintf return < 0 on error, rather than -1.deraadt2019-07-031-2/+2
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-283-8/+8
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>guenther2019-05-109-18/+9
| | | | ok krw@, jsg@
* (unsigned) means (unsigned int) which on ptrdiff_t or size_t or otherderaadt2019-02-131-3/+3
| | | | | | larger types really is a range reduction... Almost any cast to (unsigned) is a bug. ok millert tb benno
* - odd condition/test in PF lexersashan2018-11-011-2/+3
| | | | | | | | | | | | | | (and other lexers too) This commit rectifies earlier change: in the lex... even inside quotes, a \ followed by space or tab should expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). OK deraadt@, OK millert@
* Do for most running out of memory err() what was done for most runningkrw2018-07-111-2/+2
| | | | | | | | out of memory log_warn(). i.e. ("%s", __func__) instead of manual function names and redundant verbiage about which wrapper detected the out of memory condition. ok henning@
* No need to mention which memory allocation entry point failed (malloc,krw2018-07-091-5/+5
| | | | | | | | | calloc or strdup), we just need to log that we ran out of memory in a particular function. Recommended by florian@ and deraadt@ ok benno@ henning@ tb@
* remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;jmc2018-06-181-4/+4
| | | | | | | use a more general text for the sections, and avoid the catchup issue that was trying to document how many there were; ok benno rob
* Fix an off-by-one line count when using include statements.denis2018-06-111-49/+79
| | | | | | Thanks to otto@ for the initial diff. OK benno@
* Plug leak in error case of the common 'varset' implementations.krw2018-04-261-1/+3
| | | | ok benno@
* Use <fcntl.h> instead of <sys/file.h> for open() and friends.guenther2018-04-261-3/+1
| | | | | | | Delete a bunch of unnecessary #includes and sort to match style(9) while doing the above cleanup. ok deraadt@ krw@
* Normalize handle limit timeval in microsecond (usec) case.cheloha2018-02-131-2/+3
| | | | | | | | | | Makes stuff like limit 1500000 usec work correctly. ok millert@ tb@
* forgot to commit this oneespie2017-07-051-2/+2
|
* Switch base tools from /dev/bpf0 to /dev/bpf. Now that /dev/bpf has beennatano2017-04-191-2/+2
| | | | | | around for two releases, it should be safe to do so. ok bluhm deraadt sthen tb yasuoka
* Replace hand-rolled for(;;) emptying of 'symhead' TAILQ with morekrw2017-01-051-3/+2
| | | | | | | | modern TAILQ_FOREACH_SAFE(). No intentional functional change. ok millert@ bluhm@ gilles@
* Replace symset()'s hand-rolled for(;;) traversal of 'symhead' TAILQkrw2017-01-051-5/+7
| | | | | | | | | | | with more modern TAILQ_FOREACH(). This what symget() was already doing. Add paranoia '{}' around body of symget()'s TAILQ_FOREACH(). No intentional functional change. ok bluhm@ otto@
* do not allow whitespace in macro names, i.e. "this is" = "a variable".benno2016-06-211-1/+9
| | | | | | | | change this in all config parsers in our tree that support macros. problem reported by sven falempin. feedback from henning@, stsp@, deraadt@ ok florian@ mikeb@
* Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).natano2016-05-281-19/+4
| | | | ok deraadt jca
* Remove setproctitle() for the parent process. Because rc.d(8) uses processsthen2016-02-021-3/+1
| | | | | | titles (including flags) to distinguish between daemons, this makes it possible to manage multiple copies of a daemon using the normal infrastructure by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
* Remove wireless turbo mode support. It is a non-standard extensionstsp2016-01-121-3/+1
| | | | | | which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
* remove a NULL-check before free()mmcc2015-12-221-3/+2
|
* Missing comma.mpi2015-11-031-2/+2
| | | | from Kevin Reay <kevintreayopenbsd AT gmail DOT com>
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-201-6/+6
| | | | ok millert krw
* Unbreak the tree. Remove use of removed ieee80211 element IDs from hostapdstsp2015-07-151-5/+5
| | | | | and from tcpdump. Pointed out by James Hartley.
* do not encourage random uppercasing;jmc2015-03-262-8/+8
|
* Don't use greater-equal/less-equal symbols where "<="/">=" are intended.bentley2015-02-161-23/+23
| | | | | | | | Also, clean up some usage of predefined strings (which are discouraged by mandoc_char(7) for portability reasons) and improve spacing in hostapd.conf(5). ok schwarze@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-1610-22/+22
| | | | | | | | | 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)
* Don't allow embedded nul characters in strings.jsg2014-11-201-1/+4
| | | | | | | Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
* Add gcc printf format attributes to yyerror() in parse.y files.doug2014-11-141-2/+4
| | | | | | No yyerror() calls needed to be changed. ok bluhm@
* Convert the logic in yyerror(). Instead of creating a temporarybluhm2014-11-031-8/+7
| | | | | format string, create a temporary message. OK benno@ doug@
* Fix an example: hostapd table entries have to be comma-separated.reyk2014-08-051-4/+4
| | | | | From "Vigdis" via misc@ can go in deraadt@
* relax the cfg file secrecy check slightly to allow group readabilityhenning2014-01-221-3/+3
| | | | | default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
* Remove -Wbounded: it is now the compiler default.martynas2014-01-181-2/+2
|
* use u_char for buffers in yylex, for ctype callsbenno2013-11-251-7/+7
| | | | found by millert@, ok deraadt@
* clarify that the Mb keyword is Mbps; ok reykjmc2013-09-031-4/+5
|
* use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@schwarze2013-07-162-6/+6
|
* do not use Sx for sections outwith the page;jmc2013-06-291-5/+3
| | | | man4 still to go...
* some simple macro fixes;jmc2013-01-171-3/+2
|
* use Lk for links;jmc2012-08-151-3/+4
|
* take a stab at documenting when arguments need quoted, and valid macrojmc2012-04-241-4/+7
| | | | | | | | | characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
* Make paragraph about ADD.notify handling clearer. First suggestionkrw2011-07-251-8/+7
| | | | | | from dcoppa@. ok jmc@ dcoppa@
* Use a common text explaining how the various configuration parsers usingsthen2011-06-231-2/+6
| | | | | | | | | the standard OpenBSD-style parse.y handle continuing lines with backslashes, paying particular attention to how comments are handled (which can cause nasty side-effects if you're not expecting it). Most wording from jmc@, with suggestions from fgsch@, marc@, Richard Toohey, patrick keshishian and Florian Obser, ok jmc@.
* fix linecount bug with comments spanning multiple lineshenning2010-08-031-3/+4
| | | | | | | problem reported with the obvious fix for bgpd by Sebastian Benoit <benoit-lists at fb12.de>, also PR 6432 applied to all the others by yours truly. ok theo isn't it amazing how far this parser (and more) spread?
* No need to include <sys/sysctl.h> here and it pulls in <sys/proc.h>millert2010-05-261-2/+1
| | | | which causes conflicts with the libevent macros. OK deraadt@
* now that we can handle >9 args, put "-D name=value" on one line: it's a bitjmc2010-05-241-5/+3
| | | | more readable, and fixes a spacing bug we had in smtpd.8;
* Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,schwarze2010-02-231-5/+5
| | | | | | | in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
* lex <=, >=, !=, and -> into a single token for correctness and to reduce thederaadt2010-01-111-6/+30
| | | | | lookahead in the parser ok reyk
* init rtm_hdrlenchris2009-06-051-1/+2
| | | | ok claudio@, henning@