summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2007-10-16Allow unquoted numbers in variables.Marco Pfatschbacher
Change 'set hostid' to NUMBER and remove unneeded converter. Add '=' to allowed_to_end_number(x) to make varsets like 4=5 illegal. 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-16"script" does not belong in the lease declaration section;Jason McIntyre
from Vincent GROSS ok henning
2007-10-15specifying int instead of just unsigned is better styleTheo de Raadt
2007-10-13support an include directive; file of course must also be "secure" likeTheo de Raadt
the main configuration file; ok henning
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-13Unconditionally call the TIOCSTSTAMP ioctl, this way calling nmeaattach(8)Marc Balmer
without the '-t' option can be used to turn of tty timestamping. problem noticed by sthen@, ok sthen, deraadt
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-10-09Fix range check for carp vhid: vhid 0 isn't validJoel Knight
2007-10-08attribute packed -> __packedGilles Chehade
OK millert
2007-10-05check fgets return valueCharles Longeau
use strncmp instead of strcmp with help of ray@ "Looks OK" millert@
2007-10-01Backout NUMBER to string conversion.Marco Pfatschbacher
Requested by deraadt@
2007-09-29default to svnds now to accomodate change in the vnd driver.Felix Kronlage
from Piotr Durlej with man-page nits from me tested henning@, krw@, thib@ and myself. ok thib@, grunk@, krw@
2007-09-28sort options;Jason McIntyre
2007-09-27Add loginterface support for groups.Marco Pfatschbacher
Using a group sums up the statistics of all members. Modify pfctl(1) slightly to allow a groupname "all", which gives us an overall pf(4) statistic. OK henning@, markus@
2007-09-26some cleanup. remove #ifdef __FreeBSD__ code, last sync to FreeBSD wasPierre-Yves Ritschard
7 years ago. this improves readability. provide a standard usage message while there (synced with manpage). ok millert@, ``looks fine'' krw@.
2007-09-25remove unneeded feofCharles Longeau
with help and ok ray@
2007-09-25check fgets return valueCharles Longeau
use sizeof input intead of BUFSIZ remove unneeded feof handle empty strings returned by fgets properly remove newline and white space at the end of buffer with help and ok ray@
2007-09-25make route flush obey the rtable IDHenning Brauer
From: Pierre Riteau <pierre.riteau@free.fr>
2007-09-23Allow numbers to be used as unquoted strings again.Marco Pfatschbacher
While there, also restrict the use of concatenated, unquoted strings for variable assignments only. Eyeballed by markus@, OK henning@
2007-09-17Document the syntax used with manual SAs for automatic creationStuart Henderson
of the SA matching return traffic; it was already there for spi but not authkey/enckey (all 3 are required). assistance and ok from jmc@
2007-09-16Do not use DIP() as an lvalue; founc by pcc. ok millert@ ray@Otto Moerbeek
2007-09-14remove some warnings:Charles Longeau
unused variable `variable' `variable' might be used uninitialized in this function ok gilles@ ray@
2007-09-13use strcspn to properly overwrite '\n' in fgets returned bufferCharles Longeau
use strtonum instead of atoi prompted by ray@ ok moritz@ ray@
2007-09-12Here too: Add support to the lex for parsing number out of the stream.Hans-Joerg Hoexer
handle this in the parser. better range checks. with and ok deraadt@
2007-09-12add a missing range check for rtable ids; ok cloder henningTheo de Raadt
2007-09-12Add support to the lex for parsing number out of the stream. handleTheo de Raadt
this in the parser. because the new numbers are int64_t, many new range checks for < 0 are needed. re-check and improve all the existing rangechecks while at it. thanks for help by cloder and dhartmei
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-11rearrange the mount_vnd examples to show the equivalent entry for eachAlexandre Anriot
vnconfig example, instead of having a bunch of different examples. discussed with and ok jmc@ grunk@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-08make bioctl behave like a unix program and exit 1 on errorHenning Brauer
ok deraadt, silence dlg marco
2007-09-07check fgets return valueCharles Longeau
use sizeof buf instead of TP_BSIZE use strcspn to properly overwrite '\n' in fgets returned buffer ok moritz@ ray@
2007-09-05Correct the format strings after the recent rt_metrics changes.Claudio Jeker
rmx_pksent is not u_int64_t all others are just u_int. This is almost the same as in usr.bin/netstat.
2007-09-05remove compat link to /usr/sbin/vnconfig, the program is in /sbin for oneAlexander von Gernler
release now. ok deraadt@ todd@
2007-09-03malloc(n * m) -> calloc(n, m); ok espieTheo de Raadt
2007-09-03Typos from miod. 'specificed' -> 'specified' in some comments and man page.Kenneth R Westerback
2007-09-02more malloc(n * m) -> calloc(n, m); from Igor ZinovikTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-30add support for address ranges ("from 10.1.2.50 - 10.1.3.75") in from/toDaniel Hartmeier
criteria. ok mcbride@
2007-08-25missing free, Igor Zinovik <zinovik@cs.karelia.ru>Henning Brauer
2007-08-21no need to include both sys/types.h and params.hHans-Joerg Hoexer
2007-08-15Remove a superflous debug fprintf.Hans-Joerg Hoexer
2007-08-14make default_lease_time a #define; ok krw@ henning@Kevin Steves
2007-08-11Kill a couple of 'echo' statements that can never produce visibleKenneth R Westerback
output. i.e. not visible on the screen, nor in any log. If nothing else, makes dhclient-script smaller for install media. 'yesh kill' (sic) henning@
2007-08-11Do not complain about being not able to read non-existing files. MinorHans-Joerg Hoexer
glitch introduced by previous commit. ok markus@
2007-08-10duplicate strdup; ok hshoexerMarkus Friedl
2007-08-07m_priv_req_readdir(): check file type after fstat, since d_typeMarkus Friedl
is not passed over NFS (unless readdir+ is used). fixes pr 5557 with and ok hshoexer@
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-08-05Allow key exchange with RSA signature authentication to work withTom Cosgrove
Cisco IOS and other initiators that only send their certs in response to CERT_REQUEST. With input and help from cloder@, Stuart Henderson, mpf@, and several others who did lots of testing - thanks to all. ok hshoexer@
2007-08-01cats went awayTheo de Raadt