Age | Commit message (Collapse) | Author |
|
to 2013 while I'm here... this is my way of saying "happy new year!".
|
|
|
|
string listing all possible option names turns out to be about 6900
characters long.
|
|
rewrite_client_leases() to use lease_as_string(), writing out
complete leases at a time.
While here replace hand formatting of dates with strftime(). This
will add leading zeros to months and days, but not affect the
ability of dhclient to parse the resulting files.
|
|
|
|
sysctl.8: remove the vfs.nfs.iothreads example, since a) showing how
to set a default value is not particularly helpful and b) EXAMPLES is
bloated enough as it is; further, remove the text which points to other pages
for further discussion, since those pages no longer provide relevant info
diff started by an email from Jan Stary; blambert helped me prepare this diff
|
|
path. And only error out if the file is successfully lstat()'d and
is not a regular file. i.e. aleady exists. Fixes (U)pdate. Removes
some accidentally duplicated code.
|
|
dhcp-options(5) so lists of defined option names should be the
same. In this case add relay-agent-information, tftp-config-file,
voip-configuration-server and autoproxy-script option names.
Prompted by a man page update from Marcus Merighi via tech@.
|
|
is either successfully calloc'd or dhclient dies early.
|
|
have dhclient re-read dhclient.conf and get a new lease. Constrain
the filename passed to '-l' (alternate dhclient.lease.if location)
to be a regular file for the moment.
Original suggestion from phessler@. Feedback from deraadt@ and
espie@.
|
|
reconfiguration with /etc/netstart silent again. (noticed by deraadt)
And do the same for 'addspan'.
ok deraadt
|
|
S_BOUND state, which prevents confusion when another DHCPACK arrives.
Problem found and fix tested by kettenis@.
|
|
okay krw@
|
|
by a new dhclient (or anyone else). Instead, use add_address(...,
INADDR_ANY, ...) to tell the privileged process that its active
address is gone. Thus the cleanup process doesn't try to delete it.
Eliminates extraneous log entries complaining that the address can't
be deleted. Narrows race window where old dhclient might delete the
address the new dhclient has just added.
Make rapid-fire starting of dhclient even more reliable.
|
|
privileged process now cleans up itself. Continuous rapid repeated
running of dhclient now more reliable.
|
|
things a bit so configuring the address and default route are done
last. This makes it much more likely that all the work is done when
the 'bound to ...' message is displayed.
Amoung other things fixes a problem with the install scripts, where
the first (hostname-associated) dhclient can exit so quickly the
interface doesn't yet have an address and a second (free-floating)
dhclient is therefore often run.
Noted by rpe@, who also tested the fix.
|
|
strdup() calls happen to return NULL. If they do return NULL, error out
to be consistent with what most of the rest of the code does when memory
allocation fails.
feedback/ok krw
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
a list of option names, and any values provided for those options
in leases will be ignored.
Requested by phessler@ and djm@. Tested by phessler@. Possible
non-optimality of ignoring list in case of error pointed out by
tedu@.
ok phessler@ todd@ beck@
|
|
resolv.conf unless at least one of domain-name or domain-name-servers
were provided in the lease being bound.
Tweak priv_resolv_conf() to do the same. i.e. don't overwrite
resolv.conf with resolv.conf.tail when neither domain-name nor
domain-name-servers are provided in the lease.
|
|
the lease (or if they are 'ignore'd in dhclient.conf), and there
is no resolv,conf.tail then do not remove any existing resolv.conf.
Restores the behaviour ajacoutot@ expected and todd@ thinks makes
sense.
|
|
all occurances of %m with strerror(errno). And then nuking do_percentm()
and related buffer shuffling.
Also simplify parse_warn() so it takes a simple char * of the error,
and thus rely on pointing to error location in input for details.
Makes sense to beck@
|
|
spotted by rpe and sthen; ok krw
|
|
|
|
ok guenther
|
|
|
|
|
|
|
|
Pointed out by deraadt@
|
|
will get a new lease without having to restart dhclient. Also tweak
cleanup() to cancel any existing timeout, so one doesn't fire between
'down' and 'up'.
Makes sense to chris@ beck@.
|
|
SIGHUP, SIGINT, SIGTERM, SIGUSR1, SIGUS2 and cleanup before exiting
when getting them. Cleanup meaning removing routes and the interface
address added.
Tweaks and feedback from phessler@, sthen@, otto@, deraadt@
|
|
non-privileged process, go_daemon().
As pointed out by kettenis@, otherwise it is still attached to a
controlling terminal and subject to the dangers thereof. Prep for
having the privileged process pay attention to signals.
|
|
|
|
OK mikeb@ camield@ reyk@ sobrado@ henning@ krw@
|
|
|
|
See http://tools.ietf.org/html/draft-gont-opsec-vpn-leakages.
We forcibly block IPv6 traffic by loading a "flow esp out from ::/0 to
::/0 type deny" unless the protocol is used in any of the flows. Note
that this will block any IPv6 traffic, superseding routes and pf, on
the host by default when iked is running with IPv4 flows only. This
auto-blocking feature can be disabled by specifying the "-6" command
line flag to iked.
Thanks to Fernando Gont.
ok mikeb@
|
|
void and not int/pid_t.
|
|
|
|
Allow 'request ;', 'require ;' and 'ignore ;' as requests to create
empty lists of options. Thus enabling the removal of built-in lists
or the removal of global lists inside an 'interface' declaration.
|
|
Treat 'ignore' option lists the same as 'request' and 'require'
option lists. i.e. keep a list of the options rather than using
an ACTION flag. So overriding a previous ignore list will not leave
breadcrumbs and incorrect ACTIONs lying around.
The list will be applied when the new lease is created, and will
override any ACTION specified for the option.
Mention in dhclient.conf(5) that each request/require/ignore statement
will override any previous one.
|
|
Don't toss away an existing request/require list unless the new
list is successfully parsed.
|
|
Storing an option in a list more than once is silly, wastes space
and is possibly confusing to sensitive dhcp servers. Make it a
syntax error to attempt to store an option in a list more than once.
|