Age | Commit message (Collapse) | Author |
|
always-running-in-background dhcpleased(8) for a while, which is
activated per-interface with "ifconfig $if autoconf', or
"ifconfig $if inet autoconf", or with "inet autoconf" in /etc/hostname.$if
dhclient(8) has done execve(3) of ifconfig(8) to handle this for a while,
so everyone has moved to the dhcpleased(8) method
ok florian
|
|
required in read_lease_db(). It's already set in packet_to_lease() and
thus both paths to TAILQ_INSERT(lease_db) ensure there is a non-zero
epoch in all lease_db entries.
|
|
'reboot_timeout' to 'offer_interval', 'link_interval' and
'reboot_interval' to be consistant with other '_interval' fields that
specify a number of seconds to wait.
|
|
when an invalid option name is encountered.
|
|
fatal() immediately whem parsing command line option '-c' reveals a non-existant
file.
Original diff, tweaks & ok kn@
|
|
|
|
|
|
|
|
|
|
/dev/stdin to fake a dhclient.conf file during install. Simplifies and
shortens install.sub code. Allows further restrictions to be applied
to '-c' specified files.
|
|
provided. Restores behaviour previously provided by the default
dhclient.conf.
|
|
when treating various sized integers as arrays of bytes.
Doubts expressed by kettenis@ on behalf of strict alignment
architectures.
|
|
1) Restructure to explicitly set a long long result and take the
desired low/high constraints for strtonum().
2) No need to use a temporary variable when setting long long
(a.k.a. time_t) fields.
3) Fewer magic numbers when processing integer valued option
data. Less memcpy()'ing where a cast or two is sufficient to make
integer assignment work.
No intentional functional change.
|
|
|
|
to parse_string() in favour of taking strlen() of resulting string in the few
cases that it is of interest.
|
|
parse_conf_decl(). Smaller, less confusing.
No intentional functional change.
|
|
switch statement. Nuke TOK_LEASE handling (neutered since
2017) in config file.
|
|
dhclient(8) stopped writing interface names in the leases file.
|
|
read_lease_db() can use a better param name (lease_db instead
of tq).
Makes the two more obviously related. No intentional functional
change.
|
|
option. Replace handrolled dn_expand() with the system
version. Existing hex octet versions still accepted. New format is
option domain-search "my.domain.org", "fw.my.domain.org";
It is now possible to append and prepend domains to the list provided
by the server.
Documention update to dhcp-options(5) in the pipeline!
Inspired by dhcpd(8) domain-search diff from William Ahern.
Code peered at by florian@ and kn@.
|
|
the option data cannot be prepended or appended to. Instead, treat
"prepend" as "supersede" and "append" as "default". This preserves the
safe aspects of current behaviour. Issue a parsing warning when
appropriate to encourage people to fix their configuration files.
Eliminate egregious repeated code by abstracting merge_option_data().
|
|
DHCP knowledge and interface manipulation.
Unprivileged process now sends proposal derived from the accepted
lease to the privileged process rather than individual interface
manipulation requests.
The only intended functional change is that /etc/resolv.conf.tail is
not re-read each time a new proposal is implemented, rather than once
at dhclient startup.
|
|
More consistent, clearer.
|
|
previously specified 'append', 'default', 'ignore', 'prepend', or
'supersede' actions on the values provided in leases.
|
|
|
|
lines. No intentional functional change.
|
|
|
|
|
|
set_default_client_identifier() and read_resolv_conf_tail() local to
clparse.c and just call them from read_conf().
|
|
variable into init_config() and just call it from
read_conf().
|
|
struct ether_addr (a.k.a. ifi->hw_address) rather
than the entire struct interface_info.
|
|
before calling it.
|
|
and into a read_resolv_conf_tail() in clparse.c.
|
|
|
|
set_default_host_name() to clparse.c as they are part of config
initialization. First step in cleanup of startup logic.
|
|
function prototypes.
|
|
Mkae 'ignore', 'request' and 'require' cumulative so all
options don't have to be jammed into one line.
|
|
behaviour.
Always go daemon after link_timeout seconds and complete lease
negotiations in the background if necessary. No hanging around in the
foreground for the full 64 seconds waiting for a server to appear.
Log a more relevant message when a default route can't be obtained via
RTM_GET. i.e. "no default route" rather than "No such process".
-q -> -v ok mpi@
|
|
function names and function code into sync.
|
|
|
|
in the names of the respective parsing functions.
|
|
parse_number('L') since it is parsing unsigned 32bit integers.
|
|
match grammar comments and improve euphony.
|
|
|
|
|
|
inside 'lease {}' declarations. We don't keep leases from
multiple interfaces in dhclient.leases.<if> files.
One less thing to parse and keep in memory. More rope for
those wanting to do unspeakable things with their lease files.
|
|
and move all lease parsing into parse_lease().
|
|
functions and fields to more obvious names reflecting this
separation.
|
|
|
|
statements. They are silly but harmless and work fine.
|