summaryrefslogtreecommitdiff
path: root/usr.sbin/hostapd
AgeCommit message (Collapse)Author
2016-06-21do not allow whitespace in macro names, i.e. "this is" = "a variable".Sebastian Benoit
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@
2016-05-28Replace the /dev/bpf* open loop with a plain open("/dev/bpf0", ...).Martin Natano
ok deraadt jca
2016-02-02Remove setproctitle() for the parent process. Because rc.d(8) uses processStuart Henderson
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@
2016-01-12Remove wireless turbo mode support. It is a non-standard extensionStefan Sperling
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
2015-12-22remove a NULL-check before free()mmcc
2015-11-03Missing comma.Martin Pieuchot
from Kevin Reay <kevintreayopenbsd AT gmail DOT com>
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-07-15Unbreak the tree. Remove use of removed ieee80211 element IDs from hostapdStefan Sperling
and from tcpdump. Pointed out by James Hartley.
2015-03-26do not encourage random uppercasing;Jason McIntyre
2015-02-16Don't use greater-equal/less-equal symbols where "<="/">=" are intended.Anthony J. Bentley
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@
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)
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
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@
2014-11-14Add gcc printf format attributes to yyerror() in parse.y files.Doug Hogan
No yyerror() calls needed to be changed. ok bluhm@
2014-11-03Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK benno@ doug@
2014-08-05Fix an example: hostapd table entries have to be comma-separated.Reyk Floeter
From "Vigdis" via misc@ can go in deraadt@
2014-01-22relax the cfg file secrecy check slightly to allow group readabilityHenning Brauer
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
2014-01-18Remove -Wbounded: it is now the compiler default.Martynas Venckus
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-09-03clarify that the Mb keyword is Mbps; ok reykJason McIntyre
2013-07-16use .Mt for email addresses; from Jan Stary <hans at stare dot cz>; ok jmc@Ingo Schwarze
2013-06-29do not use Sx for sections outwith the page;Jason McIntyre
man4 still to go...
2013-01-17some simple macro fixes;Jason McIntyre
2012-08-15use Lk for links;Jason McIntyre
2012-04-24take a stab at documenting when arguments need quoted, and valid macroJason McIntyre
characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke
2011-07-25Make paragraph about ADD.notify handling clearer. First suggestionKenneth R Westerback
from dcoppa@. ok jmc@ dcoppa@
2011-06-23Use a common text explaining how the various configuration parsers usingStuart Henderson
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@.
2010-08-03fix linecount bug with comments spanning multiple linesHenning Brauer
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?
2010-05-26No need to include <sys/sysctl.h> here and it pulls in <sys/proc.h>Todd C. Miller
which causes conflicts with the libevent macros. OK deraadt@
2010-05-24now that we can handle >9 args, put "-D name=value" on one line: it's a bitJason McIntyre
more readable, and fixes a spacing bug we had in smtpd.8;
2010-02-23Fix .Oo .Xo .Oc .Xc mis-nesting by just dropping the .Xo and .Xc which,Ingo Schwarze
in these cases, is useless anyway. Found by and fixing the build with mandoc; still fine with both old and new groff. ok jmc@
2010-01-11lex <=, >=, !=, and -> into a single token for correctness and to reduce theTheo de Raadt
lookahead in the parser ok reyk
2009-06-05init rtm_hdrlenChris Cappuccio
ok claudio@, henning@
2009-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-02-15no need for __packed, and it is even used wrong; from raggeTheo de Raadt
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
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@
2008-02-27Unbreak parser by initializing topfile correctly.Marco Pfatschbacher
I got fooled by patch(1). Sorry.
2008-02-26Have popfile() also close the main config file,Marco Pfatschbacher
but only do the final popfile call after yyparse() is done. This also fixes config reload on SIGHUP for some daemons. Spotted by otto@. OK deraadt@
2007-11-12Remove space/tab compression function from lgetc() and replaceMarco Pfatschbacher
it with a simple filter in the yylex() loop. The compression in lgetc() didn't happen for quoted strings, thus creating a regression when tabs were used in variables. Some testing by todd@ and pyr@ OK deraadt@
2007-10-22last one left behind.Pierre-Yves Ritschard
all daemons synced. ok reyk@
2007-10-16Allow '=' to end a number in all lexers.Marco Pfatschbacher
Requested and OK deraadt@
2007-10-16in the lex... even inside quotes, a \ followed by space or tab shouldTheo de Raadt
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). pointed out by mpf, discussed with pyr
2007-10-13in all these programs using the same pfctl-derived parse.y, re-unify theTheo de Raadt
yylex implementation and the code which interacts with yylex. this also brings the future potential for include support to all of the parsers. in the future please do not silly modifications to one of these files without checking if you are de-unifying the code. checked by developers in all these areas.
2007-10-11next step in the yylex unification: handle quoted strings in a nicer fashionTheo de Raadt
as found in hoststated, and make all the code diff as clean as possible. a few issues remain mostly surrounding include support, which will likely be added to more of the grammers soon. ok norby pyr, others
2007-09-12Add NUMBER support for signed and unsigned 64bit numbers to the lexerReyk Floeter
instead of passing numbers as STRINGs. Add careful range checks whenever NUMBERs are used in the grammar. From deraadt@ (except the specific range checks)
2007-05-31convert to new .Dd format;Jason McIntyre
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-09unbreak the symset functionReyk Floeter