Age | Commit message (Collapse) | Author |
|
after the variable length data (static routes, search path, dns
servers) sizes are deteremined.
No intentional functional change. Allows potential change to variable
length proposals.
|
|
a different value to limit memcpy() is a bad thing.
Discovered & fix tested by Andreas Kahari. Thanks!
|
|
in printing the int field we store it in. i.e. '%d' not '%u.
Discovered while tracking down breakage reported by Andreas Kahari on
bugs@.
|
|
(domain search) and 't' (text) options. Enables append/prepend for the
domain-search option by inserting blanks between the domains and
ensures the presence of a terminating NUL when merging text.
|
|
|
|
|
|
|
|
|
|
No intentional functional change.
|
|
clue
to avoid setting interface mtu.
|
|
|
|
stop trying to get an ACK from that server after 'timeout'
seconds. Give up and try to get another lease.
Possible infinite loop pointed out by Alexander Markert on tech@.
|
|
discarded. Update leases file when active lease is discarded. Discard
NAK'ed offers even if there is no active lease. Always transition to
INIT.
Issues discovered after inappropriate behaviour resported by
Alexander Markert and Pierre Emeriaud.
|
|
|
|
Should fix '-r' (a.k.a. release a lease) for leases without a valid
DHCP_SERVER_IDENTIFIER.
Spotted by Alexander Markert. Thanks!
|
|
From Geoff Hill.
|
|
manual pages that document the corresponding configuration files;
OK jmc@, and general direction discussed with many
|
|
/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.
|
|
Noticed by sebastia@
|
|
Original diff & testing from dtucker@
ok beck@ dtucker@
|
|
command line contents. Display usage() when syntax is incorrect and
relevant error messages when semantic checks fail.
More akin to the way other commands handle the syntax/semantic split.
Idea taken from a larger diff by kn@.
ok kn@
|
|
Continued emittance noticed by mlarkin@
ok florian@
|
|
provided. Restores behaviour previously provided by the default
dhclient.conf.
|
|
|
|
ok florian@
|
|
To withdraw a proposal sent an empty list of nameservers.
This one is a bit of a hack by me to keep everything in sync for now.
A better version from krw is coming soon.
|
|
ok florian@
|
|
or after deciding to terminate or when AUTOCONF4 is not set.
|
|
Fixes switching back to wifi relevant resolv.conf when wired interface
loses link.
|
|
lease. Constrain by only looking at static routes, which are the only
kind dhclient will add. Correct by realizing direct /32 routes in the
lease look different when returned from the routing table.
Further correct route comparison by applying appropriate netmask to
both destination addresses before comparing them.
Fixes "arpresolve: ... route contains no arp information" issue
reported on bugs@.
Much problem analysis and fix testing by Lauri Tirkkonen. Thanks!
|
|
Brings various dhcp related daemons into line with
the common idiom.
ok florian@
|
|
carry on if it can't be accessed. e.g. if /var/db is not present in
single user mode.
|
|
and carry-on. Similar to treatment of /etc/resolv.conf[.tail].
Lets /var/db/dhclient.leases.if be on RO filesystem.
|
|
|
|
|
|
subsequently reset by ifconfig(8) then stop applying leases. If the
flag is set after being reset then get a new lease and carry on.
Clean up man page verbiage and add AUTOCONF4 description.
ok benno@, man page formatting ok ingo@
|
|
|
|
TERMINATE. Exit if take_charge() returns -1.
Set 'quit' to TERMINATE instead of directly calling 'exit(0)' in
rtm_dispatch().
Nuke erroneous "not reached" comment.
|
|
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.
|
|
|
|
functions.
|
|
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.
|
|
lifefime of the dhclient instance. Use O_NONBLOCK so RTM_* messages
are seen while trying to open the O_EXLOCK file descriptor.
Prevents a possible race during startup, ensuring only one dhclient
instance can be configuring an interface. Improves responsiveness to
interface changes during startup.
|
|
leases file descriptor.
No intentional functional change.
|
|
dhclient.leases.<if>).
ok kmos@
|
|
by pledge(2) and therefore we cannot add it here. Instead we can restrict the
filesystem access to only two files, mentioned below, via unveil(2).
- /etc/resolv.conf -> write/create permissions
- /etc/resolv.conf.tail -> read permissions
OK brynet@ deraadt@ kn@
krw@ left the decision to other people who understand unveil(2)
|