summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/parse.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Make parse_warn() messages consistantly use 'expecting' ratherkrw2014-01-181-4/+4
| | | | than occasionally 'expected'. End all with a '.'.
* Never silently consume the following statement when unexpectedlykrw2014-01-181-4/+7
| | | | | encountering a ';'. I.e. when checking the token type, 'skip_to_semi()' after 'parse_warn()' only when the parsed token wasn't a ';'.
* peek_token() a bit more to replace a bunch of manual checks withkrw2014-01-131-6/+2
| | | | | the perfectly adequate parse_semi(). And some blocks didn't even need to peek.
* Don't eat two tokens when encountering a non-terminal '}'. Avoidskrw2014-01-131-3/+4
| | | | | possibly ignoring entire rest of dhclient.conf or dhclient.leases.if looking for a mistakenly consumed '}'.
* Yet another annoyingly long line.krw2014-01-101-2/+3
|
* Having stopped pretending we handle anything but ethernet packets,krw2013-12-061-11/+6
| | | | | | | replace the 'struct hardware' abstraction layer and use 'struct ether_addr' where hardware addresses are of interest. ok matthew@, confirmed by reyk@ not to impact DHCP-over-IPSec support.
* Stop pretending we still support FDDI or token ring hardware types.krw2013-12-051-9/+1
| | | | idea ok deraadt@ matthew@
* cleanups for signed char vs ctypederaadt2013-11-201-2/+3
| | | | ok krw
* Shuffle function prototypes and extern declarations around tokrw2013-11-111-1/+3
| | | | | put local functions prototypes and variables in their .c files, and cross-file functions into .h files. Prompted by deraadt@.
* Bunch of comment/whitespace cleanup. Eliminate some misleading orkrw2013-05-021-2/+2
| | | | | pointless ones, make multiline comments readable, nuke '...' in favour of '.', etc.
* Use same parse_date() and date writing logic as in dhcpd. i.e.krw2013-04-271-138/+47
| | | | | | strptime() rather than handrolling parsing. Change date format in leases to same as dhcpd, fixing 'u' vs 'w' error made in initial strftime() introduction.
* Don't assume sizeof(time_t)==4guenther2013-04-021-3/+4
| | | | ok krw@
* Remove confusing extra address abstraction 'struct iaddr'. Just usekrw2012-11-081-5/+3
| | | | | | | | | | 'in_addr'. Remove many double conversions and other perversions. piaddr() replaced with inet_ntoa(). dhclient is extremely unlikely to support anything but ipv4/dhcp without a complete rewrite. Joint work with chris@. Positive feedback from deraadt@ zinke@ phessler@.
* Tweak parsing. No need to declare, assign and then ignore the tokenkrw2011-12-101-12/+9
| | | | value when only the token id is required.
* malloc/strlcpy -> strdup. Apparently I forgot to commit this one withkrw2010-06-261-3/+2
| | | | the similar changes to dhcpd.
* Don't leak strings.krw2007-01-081-2/+4
| | | | ok miod@
* sync dhclient and dhcpd parse.c areas where we can.stevesk2006-11-221-14/+14
| | | | mainly formatting, whitespace; ok henning@
* fix some warning messages and comments in parse_date(); ok henning@stevesk2006-11-221-5/+5
|
* remove spurious ; after bracket, no binary changestevesk2006-11-211-2/+2
|
* cleanup keyword lookup for the lexer, and remove keywords not valid inderaadt2006-04-181-37/+37
| | | | either dhclient or dhcpd context; tested by many
* Insist on correct hardware addresses in dhclient.conf andkrw2005-07-171-108/+32
| | | | | | | dhclient.leases.<if> files. Simplify parse_numeric_aggregate() as a result, rendering tree.c and tree.h redundant. ok millert@
* NULL is not a time_t. From brooks at freebsd.krw2005-07-161-13/+13
|
* knfderaadt2004-05-051-11/+8
|
* do not overload libc function names causing linker troublesmickey2004-05-041-8/+8
|
* knfderaadt2004-05-041-13/+8
|
* remove things not used, spotted by lint mostly; ok henningderaadt2004-05-041-58/+1
|
* cut more crap - no binary changehenning2004-02-241-2/+2
|
* remove time_t related crud; henning okderaadt2004-02-231-3/+3
|
* KNFhenning2004-02-071-9/+9
|
* more KNF From: Emil Mikulic <emikulic@dmr.ath.cx>henning2004-02-071-8/+8
| | | | | great job. no binary change.
* more Knall & Rauch -> ANSI C, KNF and stuff that makes this a bit morehenning2004-02-061-296/+297
| | | | | readable. no effect on the binary. From: Emil Mikulic <emikulic@dmr.ath.cx>
* $OpenBSD$, teduhenning2004-02-041-2/+2
|
* this is where dhclient will start surgeryderaadt2004-01-181-0/+641