summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/clparse.c
AgeCommit message (Expand)AuthorFilesLines
2020-05-13Repair 'domain-search' parsing broken in r1.191.krw1-10/+11
2020-05-13We don't count a terminating NUL in the length of option data.krw1-3/+3
2020-05-13Nuke a variable that is always set to 0.krw1-4/+3
2020-05-13No need to memcpy() into a string created by strdup().krw1-3/+2
2020-02-02Tweak dhclient(8) timing defaults depending on SMALL rather than usingkrw1-3/+9
2019-12-17Reject leases that do not provide a subnet mask for the address beingkrw1-1/+4
2019-07-23Compilers may not be as magical as I hope, so revert to using memcpy()krw1-4/+7
2019-07-22Cleanup/simplify parse_number():krw1-25/+28
2019-07-22Eliminate pointless "... else {}" branch to improve readability.krw1-8/+7
2019-07-21Replace malloc()/memcpy() with strdup() in parse_string(). Nuke 'len' parameterkrw1-11/+13
2019-07-20Use same 'switch (token) ...' idiom in parse_lease_decl() andkrw1-109/+94
2019-07-20Sort TOK_USELEASE case into proper alphabetic location inkrw1-27/+24
2019-07-19Nuke a bunch of 'name' parameters that haven't been used sincekrw1-9/+8
2019-06-29write_lease_db() only needs ifi->name and ifi->lease_db.krw1-6/+6
2019-04-02Add human readable parsing/display of RFC1035 data in domain-searchkrw1-1/+67
2019-03-20Do not accept dhclient.conf(5) "prepend" or "append" statements whenkrw1-4/+10
2019-02-12Restructure code to simplifiy imsg communications, further separatingkrw1-40/+1
2019-01-26Rename ACTION_NONE to ACTION_USELEASE. TOK_NOACTION to TOK_USELEASE.krw1-5/+5
2019-01-26Add 'uselease' statement to allow the disabling of built-in orkrw1-1/+24
2019-01-18Oops. Nuke debug statement that snuck it.krw1-2/+2
2019-01-18Shuffle lease file reading code to improve clarity and shorten somekrw1-29/+28
2019-01-18Yet another long line broke cover.krw1-3/+3
2019-01-18Be consistent in explicitly testing memcmp() return values.krw1-2/+2
2019-01-14Make apply_ignore_list(), set_default_hostname(),krw1-2/+12
2019-01-14Abstract allocation and initialization of config globalkrw1-11/+22
2019-01-14set_default_client_identifier() only needs thekrw1-3/+3
2019-01-14Check NULLness of ignore list inside apply_ignore_list() and notkrw1-1/+4
2019-01-13Abstract /etc/resolv.conf.tail reading out of main()krw1-1/+40
2019-01-13White space nits.krw1-2/+3
2019-01-13Shuffle apply_ignore_list(), set_default_client_identifier() andkrw1-1/+101
2018-11-04No names in function prototypes. Spaces after commas inkrw1-3/+3
2018-02-10Fix 'ignore ;' so that it really does reset the ignore list.krw1-5/+15
2018-02-06Flip -q (be quiet) into -v (be noisy), making terseness the defaultkrw1-2/+2
2018-01-05Complete and fix grammar in comments and bring grammar terms,krw1-66/+69
2018-01-04Compact some whitespace, unsplit now shorter lines.krw1-11/+9
2018-01-04Comments and grammar use '_decl' so use _decl instead of _declarationkrw1-12/+11
2018-01-04parse_lease_time() is an unnecessary abstraction. Just usekrw1-8/+23
2018-01-04We only parse decimal numbers, so parse_decimal() -> parse_number() tokrw1-6/+6
2018-01-02More grammar comments improvements.krw1-49/+61
2018-01-01Tweak syntax comments into consistency and completeness.krw1-45/+51
2017-12-18Stop inserting and paying attention to 'interface <if>;'krw1-13/+5
2017-12-17Further simplifY lease parsing. Fold add_lease() into read_lease_db(),krw1-53/+45
2017-12-16With leases no longer in dhclient.conf, rename a bunch ofkrw1-31/+31
2017-12-13Fix whitespace botch that snuck in.krw1-2/+2
2017-12-13Simplifiy parser by not worrying about nesting 'interface <if> {}'krw1-13/+7
2017-12-09Add ACTION_IGNORE and nuke ignored_options, ignored_option_count fieldskrw1-4/+7
2017-12-08When accepting a BOOTP lease, do not leak offered values of leasekrw1-3/+23
2017-12-07Nuke support for defining last-gasp leases in dhclient.conf.krw1-8/+2
2017-12-03Move timer fields 'expiry" and "rebind" out of struct client_leasekrw1-2/+1
2017-11-09Use lease 'epoch' (time lease was acquired) to calculate timers forkrw1-10/+8