]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
4 years agoprivsep: Add the SECCOMP BPF sandbox for Linux
Roy Marples [Sat, 19 Sep 2020 19:53:23 +0000 (20:53 +0100)] 
privsep: Add the SECCOMP BPF sandbox for Linux

Now we have capsicum, pledge and the POSIX resource limited sandboxes
this was quite easy really.

4 years agoLinux: Use SIOCSIFVLAN rather than SIOCSIFVLAN
Roy Marples [Sat, 19 Sep 2020 19:36:07 +0000 (20:36 +0100)] 
Linux: Use SIOCSIFVLAN rather than SIOCSIFVLAN

4 years agoprivsep: Fold capsicum and pledge entry points into ps_entersandbox
Roy Marples [Sat, 19 Sep 2020 17:58:52 +0000 (18:58 +0100)] 
privsep: Fold capsicum and pledge entry points into ps_entersandbox

4 years agoAdjust prior so that message is logged before starting dev
Roy Marples [Sat, 19 Sep 2020 14:05:51 +0000 (15:05 +0100)] 
Adjust prior so that message is logged before starting dev

Also add os_init incase other os need similar in the future.

4 years agoLinux: detect network namespace and deny udev in one
Roy Marples [Sat, 19 Sep 2020 13:40:50 +0000 (14:40 +0100)] 
Linux: detect network namespace and deny udev in one

udev says whether an interface name is stable or not.
In a network namespace, udev claims the interface does not exist.
This makes sense because udev only operates in the root namespace.

As such disable udev in a network namespace.

While here correctly spell initialise.

4 years agoduid: Allow optional argument to specify ll or llt alongside uuid
Roy Marples [Wed, 16 Sep 2020 14:55:11 +0000 (15:55 +0100)] 
duid: Allow optional argument to specify ll or llt alongside uuid

4 years agoinstall: Create DBDIR with mode 0750 by default
Roy Marples [Tue, 15 Sep 2020 10:45:21 +0000 (11:45 +0100)] 
install: Create DBDIR with mode 0750 by default

It shouldn't be 0755 as we might not want everyone to read
DHCP leases.

4 years agodhcpcd: Only manipulate stdin, stdout and stderr when valid
Roy Marples [Sat, 12 Sep 2020 19:14:47 +0000 (20:14 +0100)] 
dhcpcd: Only manipulate stdin, stdout and stderr when valid

UNIX application expect these to exist even if pointed at /dev/null.
We cannot change which fd they use, it's always 0, 1 and 2.
But if these fd's are not open when dhcpcd is called, they could
be assigned to dhcpcd internals.

In this instance we should not use the streams in anyway or form.

4 years agologerr: Don't leak the logfile stream to scripts
Roy Marples [Sat, 12 Sep 2020 14:58:03 +0000 (15:58 +0100)] 
logerr: Don't leak the logfile stream to scripts

4 years agoREADME: Remove old reference to db dir needing user permissions
Roy Marples [Fri, 11 Sep 2020 14:07:19 +0000 (15:07 +0100)] 
README: Remove old reference to db dir needing user permissions

We've been using the original dirs since dhcpcd-9.1.

4 years agodhcpcd: avoid privsep errors if we error locking the pidfile
Roy Marples [Fri, 11 Sep 2020 11:21:07 +0000 (12:21 +0100)] 
dhcpcd: avoid privsep errors if we error locking the pidfile

Should not happen on the happy path, but if it does, tidy the
resultant errors.

4 years agoRelease dhcpcd-9.2.0 v9.2.0
Roy Marples [Sun, 6 Sep 2020 14:27:28 +0000 (15:27 +0100)] 
Release dhcpcd-9.2.0

4 years agoDHCP: Fix compile without IPv4LL
Roy Marples [Sun, 6 Sep 2020 14:26:36 +0000 (15:26 +0100)] 
DHCP: Fix compile without IPv4LL

4 years agoconfigure: Remove PPOLL from config.mk
Roy Marples [Sun, 6 Sep 2020 14:25:59 +0000 (15:25 +0100)] 
configure: Remove PPOLL from config.mk

4 years agoprivsep: dump leases in a sandbox
Roy Marples [Sun, 6 Sep 2020 12:53:08 +0000 (13:53 +0100)] 
privsep: dump leases in a sandbox

4 years agodhcpcd: stderr callback fd may the reset by peer
Roy Marples [Sun, 6 Sep 2020 12:27:31 +0000 (13:27 +0100)] 
dhcpcd: stderr callback fd may the reset by peer

When the process exits which is normal.

4 years agoprivsep: Dump leases from stdin in a limited sandbox
Roy Marples [Sun, 6 Sep 2020 11:20:40 +0000 (12:20 +0100)] 
privsep: Dump leases from stdin in a limited sandbox

4 years agoprivsep: dropprivs can be static
Roy Marples [Sun, 6 Sep 2020 10:58:29 +0000 (11:58 +0100)] 
privsep: dropprivs can be static

4 years agoprivsep: limit rights for stdout/stderr/stdin using capsicum
Roy Marples [Sun, 6 Sep 2020 10:57:19 +0000 (11:57 +0100)] 
privsep: limit rights for stdout/stderr/stdin using capsicum

4 years agoFreeBSD: Don't rights limit stderr
Roy Marples [Sun, 6 Sep 2020 02:01:49 +0000 (03:01 +0100)] 
FreeBSD: Don't rights limit stderr

Otherwise some utils in scripts will error with insufficient
capabilities.

4 years agodhcpcd: Redirect stdout/stderr to the launcher stderr descriptor
Roy Marples [Sun, 6 Sep 2020 01:41:08 +0000 (02:41 +0100)] 
dhcpcd: Redirect stdout/stderr to the launcher stderr descriptor

This actually make life really simple!
We no longer need to redirect stdout/stderr to /dev/null for privsep
and any script output is now captured again - and it all goes to stderr
as it should even if a script wants it to go to stdout.

On the happy path, only the master process will actually log anything
to stderr so we turn that off after we "fork".
On the unhappy path, logging to stderr/stdout *may* fail because
the launcher process *may* have exited.
We *could* have the master process as an intermediary but that's
just excess code to avoid errors which *should* not happen.
Regardless, any errror should still hit syslog.

4 years agoprivsep: Fix prior for FreeBSD.
Roy Marples [Sat, 5 Sep 2020 16:01:59 +0000 (17:01 +0100)] 
privsep: Fix prior for FreeBSD.

4 years agodhcpcd: Setup a socketpair in the launcher to write to stderr
Roy Marples [Sat, 5 Sep 2020 15:16:22 +0000 (16:16 +0100)] 
dhcpcd: Setup a socketpair in the launcher to write to stderr

Rather than duping stderr down to the processes.
This allows us to reopen stdout and stderr onto /dev/null right
away and means only the launcher process writes to stderr.

The downside is that any stdout from the script is now lost.
If that's needed, we could setup a stdout socketpair as well.

4 years agologerr: Ensure that the fd err log is line buffered
Roy Marples [Sat, 5 Sep 2020 15:13:36 +0000 (16:13 +0100)] 
logerr: Ensure that the fd err log is line buffered

4 years agoprivsep: Use xsocketpair
Roy Marples [Sat, 5 Sep 2020 15:12:30 +0000 (16:12 +0100)] 
privsep: Use xsocketpair

4 years agoif: introduce xsocketpair, similar to xsocket
Roy Marples [Sat, 5 Sep 2020 15:10:30 +0000 (16:10 +0100)] 
if: introduce xsocketpair, similar to xsocket

Old systems don't have SOCK_CLOEXEC, etc, this makes it easy.
While here, right limit the sockets.

4 years agoDHCP: allow leasetime -1 to represent infinity
Roy Marples [Wed, 2 Sep 2020 08:56:32 +0000 (09:56 +0100)] 
DHCP: allow leasetime -1 to represent infinity

Easier to enter than 4294967295 seconds which is the real
representation of infinity.

4 years agoDHCP: optimize prior for systems without IPv4 address lifetimes
Roy Marples [Tue, 1 Sep 2020 11:24:42 +0000 (12:24 +0100)] 
DHCP: optimize prior for systems without IPv4 address lifetimes

4 years agoDHCP: Adjust prior to be more generic
Roy Marples [Tue, 1 Sep 2020 11:15:00 +0000 (12:15 +0100)] 
DHCP: Adjust prior to be more generic

4 years agoDHCP: Don't set address lifetimes when extending leases
Roy Marples [Tue, 1 Sep 2020 10:56:53 +0000 (11:56 +0100)] 
DHCP: Don't set address lifetimes when extending leases

Otherwise the kernel WILL remove them.
dhcpcd already manages address removal when needed because
some OS's do not support address lifetimes even for IPv6.

While here apply the same logic to IPv6.

4 years agodhcpcd: Rename function for prior now it no longer inits
Roy Marples [Mon, 31 Aug 2020 05:51:27 +0000 (06:51 +0100)] 
dhcpcd: Rename function for prior now it no longer inits

4 years agodhcpcd: Adjust prior to ensure options exist for active interfaces before timeouts
Roy Marples [Mon, 31 Aug 2020 05:48:59 +0000 (06:48 +0100)] 
dhcpcd: Adjust prior to ensure options exist for active interfaces before timeouts

4 years agoDHCP: reason is BOUND when recovering from an expired extended lease
Roy Marples [Sun, 30 Aug 2020 08:41:47 +0000 (09:41 +0100)] 
DHCP: reason is BOUND when recovering from an expired extended lease

4 years agoDHCP: When extending the lease, re-enter the DISCOVER phase.
Roy Marples [Sun, 30 Aug 2020 08:07:35 +0000 (09:07 +0100)] 
DHCP: When extending the lease, re-enter the DISCOVER phase.

4 years agodhcpcd: init new interfaces from route(4) overflow
Roy Marples [Sun, 30 Aug 2020 07:28:44 +0000 (08:28 +0100)] 
dhcpcd: init new interfaces from route(4) overflow

This ensures that any newly active ones have an options structure.

4 years agoDHCP: Request offered IP when using lastlease
Roy Marples [Sun, 30 Aug 2020 07:03:01 +0000 (08:03 +0100)] 
DHCP: Request offered IP when using lastlease

Also, set expired state on using last lease rather than last lease extension.

4 years agoprivsep: Only the master process accepts signals
Roy Marples [Thu, 20 Aug 2020 15:28:47 +0000 (16:28 +0100)] 
privsep: Only the master process accepts signals

The master process dictates when processes should stop, which
allows for a clean shutdown when the admin issues `pkill dhcpcd`.

4 years agoDHCP: Mark the state as expired on lase lease extension
Roy Marples [Thu, 20 Aug 2020 15:09:53 +0000 (16:09 +0100)] 
DHCP: Mark the state as expired on lase lease extension

Expired states do not claim any client IP to request from.

4 years agoUse a minimum bufsize of 1 as 0 doesn't work on some OS.
Roy Marples [Sun, 16 Aug 2020 18:21:48 +0000 (19:21 +0100)] 
Use a minimum bufsize of 1 as 0 doesn't work on some OS.

4 years agoprivsep: Set a zero length receive buffer for write only sockets
Roy Marples [Sun, 16 Aug 2020 17:52:17 +0000 (18:52 +0100)] 
privsep: Set a zero length receive buffer for write only sockets

We cannot use shutdown(2) because they are not connected.
Constantly draining would be a waste of CPU time, so just let
the buffer overflow. To ease the kernel as much as we can, set
a zero length buffer.

The kernel may still allocate a small buffer, but this is kernel
dependant and we're just trying to be helpful.

5 years agoprivsep: Improve some errors
Roy Marples [Sat, 8 Aug 2020 19:27:34 +0000 (20:27 +0100)] 
privsep: Improve some errors

5 years agodhcpcd: Fix logging we forked at exit.
Roy Marples [Sat, 8 Aug 2020 19:06:55 +0000 (20:06 +0100)] 
dhcpcd: Fix logging we forked at exit.

5 years agoRevert "Don't install /var/db/dhcpcd in the Makefile"
Roy Marples [Tue, 4 Aug 2020 13:26:18 +0000 (14:26 +0100)] 
Revert "Don't install /var/db/dhcpcd in the Makefile"

This was when the privsep code had the database directory in the
chroot, which it not longer is.

This reverts commit 5f275b7bd1ed4d1f830b7a60ba253a98f7ef6127.

5 years agoRevert "privsep: shutdown read end of the write only sockets"
Roy Marples [Mon, 3 Aug 2020 16:04:51 +0000 (17:04 +0100)] 
Revert "privsep: shutdown read end of the write only sockets"

Fails noisly on Linux.

This reverts commit 5fc20ae1aa368e36f9cabcbc047cd7d8e468c5b7.

5 years agodhcpcd: If using -4 or -6, check we have support for it
Roy Marples [Mon, 3 Aug 2020 15:56:14 +0000 (16:56 +0100)] 
dhcpcd: If using -4 or -6, check we have support for it

Better to error early sensibly.

5 years agoinet6: Linux will convert NULL to all, so don't specify all
Roy Marples [Mon, 3 Aug 2020 15:55:51 +0000 (16:55 +0100)] 
inet6: Linux will convert NULL to all, so don't specify all

5 years agoLinux: fix reading the ipv6 forwarding proc entry
Roy Marples [Mon, 3 Aug 2020 15:54:59 +0000 (16:54 +0100)] 
Linux: fix reading the ipv6 forwarding proc entry

We need to ensure that the carriage return doesn't give issue.

5 years agoLinux: IP6 forwaring only applies to "all" interface
Roy Marples [Mon, 3 Aug 2020 15:15:39 +0000 (16:15 +0100)] 
Linux: IP6 forwaring only applies to "all" interface

Per interface forwarding is apparently only for setting things
like IsRouter in NA messages.

5 years agooptions: Let clientid override a prior duid
Roy Marples [Sat, 1 Aug 2020 19:56:13 +0000 (20:56 +0100)] 
options: Let clientid override a prior duid

So you can do

duid

ssid foo
clientid

5 years agooptions: open an address socket to detect if inet6 is available
Roy Marples [Sat, 25 Jul 2020 13:22:18 +0000 (14:22 +0100)] 
options: open an address socket to detect if inet6 is available

This should silence dhcpcd warnings if IPv6 is compiled out.
Do the same for IPv4, although that's highly unlikely as
it's kind of required for some interface ioctls.

5 years agosrc/dhcpcd.c: fix build without fork
Fabrice Fontaine [Mon, 13 Jul 2020 08:43:51 +0000 (10:43 +0200)] 
src/dhcpcd.c: fix build without fork

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
5 years agoprivsep: Don't read control_group in privsep
Roy Marples [Sat, 1 Aug 2020 19:32:34 +0000 (20:32 +0100)] 
privsep: Don't read control_group in privsep

There is no need as it's a global option and it will have already
been read in by this point.
Also means we don't need to pledge getpw.

5 years agoprivsep: shutdown read end of the write only sockets
Roy Marples [Sat, 18 Jul 2020 11:40:30 +0000 (12:40 +0100)] 
privsep: shutdown read end of the write only sockets

Clearly shows our intent and hopefully is an optimisation
within the kernel.

5 years agoFix prior
Roy Marples [Wed, 8 Jul 2020 11:36:36 +0000 (12:36 +0100)] 
Fix prior

5 years agoroute: Ensure IPv4LL routes always come last in priority
Roy Marples [Wed, 8 Jul 2020 11:03:15 +0000 (12:03 +0100)] 
route: Ensure IPv4LL routes always come last in priority

5 years agoFix compile without IPv6 on systems that do not define ALIGN
Roy Marples [Sat, 4 Jul 2020 12:21:09 +0000 (13:21 +0100)] 
Fix compile without IPv6 on systems that do not define ALIGN

5 years agoMake DBDIR permissions same as the files it creates v9.1.4
Roy Marples [Fri, 3 Jul 2020 10:41:23 +0000 (11:41 +0100)] 
Make DBDIR permissions same as the files it creates

5 years agoRelease dhcpcd-9.1.4
Roy Marples [Fri, 3 Jul 2020 10:33:39 +0000 (11:33 +0100)] 
Release dhcpcd-9.1.4

5 years agodhcpcd: Fix creating DBDIR
Roy Marples [Fri, 3 Jul 2020 10:30:25 +0000 (11:30 +0100)] 
dhcpcd: Fix creating DBDIR

As privsep now uses files in / and not the dhcpcd users directory
we need to ensure the mkdir is back with the rundir.

5 years agoFix SMALL build
Roy Marples [Thu, 2 Jul 2020 17:14:01 +0000 (18:14 +0100)] 
Fix SMALL build

5 years agoRelease dhcpcd-9.1.3 v9.1.3
Roy Marples [Thu, 2 Jul 2020 13:42:57 +0000 (14:42 +0100)] 
Release dhcpcd-9.1.3

5 years agomake: clean before import-src
Roy Marples [Thu, 2 Jul 2020 13:05:19 +0000 (14:05 +0100)] 
make: clean before import-src

5 years agoDHCP6: Restore lease timings
Roy Marples [Wed, 1 Jul 2020 19:09:42 +0000 (20:09 +0100)] 
DHCP6: Restore lease timings

Erroneously changed in 060f5a9e93, only seems to affect
INFORM getting into a loop.

5 years agoBSD: Setup sysctls before redirecting stderr
Roy Marples [Wed, 1 Jul 2020 10:46:01 +0000 (11:46 +0100)] 
BSD: Setup sysctls before redirecting stderr

Need to do this as early as.

5 years agoprivsep: Don't limit file writes if logging to a file
Roy Marples [Wed, 1 Jul 2020 10:45:06 +0000 (11:45 +0100)] 
privsep: Don't limit file writes if logging to a file

stderr could be redirected.

While here, there is no longer a need to redirect stderr or stdout
as they already have been in dhcpcd.

5 years agodhcpcd: improve prior to log to another fd
Roy Marples [Tue, 30 Jun 2020 21:06:00 +0000 (22:06 +0100)] 
dhcpcd: improve prior to log to another fd

This allows stderr and stdout to be redirected to /dev/null.

5 years agodhcpcd: Turn off stderr logging rather than closing stderr
Roy Marples [Tue, 30 Jun 2020 20:33:24 +0000 (21:33 +0100)] 
dhcpcd: Turn off stderr logging rather than closing stderr

And only turn it off when stderr is a tty.
A better approach might to open an fd just to log to and
redirect stdout/stderr to /dev/null alongside stdin at program
start, but that's more code.

5 years agoprivsep: check return of freopen(3)
Roy Marples [Mon, 29 Jun 2020 12:14:21 +0000 (13:14 +0100)] 
privsep: check return of freopen(3)

So shutup some compilers who complain we don't do anything with it.

5 years agooptions: rework prior to use macros
Roy Marples [Mon, 29 Jun 2020 10:54:29 +0000 (11:54 +0100)] 
options: rework prior to use macros

Can't use DHCPCD_MASTER because a config option sets it - duh.
This allows us to use a different config option which makes little
sense in options but makes sense in the code.

5 years agoinet6: Don't regen temp addresses we didn't add.
Roy Marples [Sat, 27 Jun 2020 12:58:44 +0000 (13:58 +0100)] 
inet6: Don't regen temp addresses we didn't add.

Helps with interopability with OpenBSD's slaacd(8).

5 years agooptions: use DHCPCD_MASTER to guard global options
Roy Marples [Sat, 27 Jun 2020 12:46:25 +0000 (13:46 +0100)] 
options: use DHCPCD_MASTER to guard global options

As ifname generally always set.

5 years agoLinux: restore fix when no address is returned by getifaddrs(3)
Roy Marples [Wed, 24 Jun 2020 19:53:20 +0000 (20:53 +0100)] 
Linux: restore fix when no address is returned by getifaddrs(3)

Suck sucky sucky, but it fixes PPP links again.

5 years agoLinux: redefine NLA_ALIGNTO as 4U
Roy Marples [Tue, 23 Jun 2020 10:31:25 +0000 (11:31 +0100)] 
Linux: redefine NLA_ALIGNTO as 4U

This removes the last of the alignment issues reported by clang
in the linux driver for dhcpcd.
Upstream has no interest in fixing this and local testing
shows it works fine on all platforms I have.

https://www.spinics.net/lists/netdev/msg646934.html

5 years agoLinux: Warn if netlink(7) seq number doesn't match expectation.
Roy Marples [Mon, 22 Jun 2020 21:09:31 +0000 (22:09 +0100)] 
Linux: Warn if netlink(7) seq number doesn't match expectation.

While here, ensure it never goes out of scope.

5 years agoLinux: keep the generic netlink socket around to get ssid with privsep
Roy Marples [Mon, 22 Jun 2020 20:56:16 +0000 (21:56 +0100)] 
Linux: keep the generic netlink socket around to get ssid with privsep

While here, improve our reading of netlink(7) and terminate on either
ERROR or DONE. If neither are in the message, read again unless it's
the link receiving socket.
Also, only callback if this is the sequence number expected.

5 years agoprivsep: init more fd -1
Roy Marples [Mon, 22 Jun 2020 16:31:58 +0000 (17:31 +0100)] 
privsep: init more fd -1

5 years agoLinux: Sweep errors about disabling autogeneration of LL addrs
Roy Marples [Mon, 22 Jun 2020 12:22:16 +0000 (13:22 +0100)] 
Linux: Sweep errors about disabling autogeneration of LL addrs

under the table.
I tire of this report.

5 years agoLinux: fix a compile warning for older compilers
Roy Marples [Mon, 22 Jun 2020 12:18:26 +0000 (13:18 +0100)] 
Linux: fix a compile warning for older compilers

5 years agoLinux: support aarch64 for reading cpu info
Roy Marples [Mon, 22 Jun 2020 12:17:25 +0000 (13:17 +0100)] 
Linux: support aarch64 for reading cpu info

5 years agolinux: ignore unsupported interfaces by default, such as sit0
Roy Marples [Mon, 22 Jun 2020 12:08:25 +0000 (13:08 +0100)] 
linux: ignore unsupported interfaces by default, such as sit0

5 years agodhcpcd: Report error when caching vendor
Roy Marples [Mon, 22 Jun 2020 11:52:42 +0000 (12:52 +0100)] 
dhcpcd: Report error when caching vendor

5 years agoscript: Make visible some link level parameters to lease dumping
Roy Marples [Mon, 22 Jun 2020 11:45:37 +0000 (12:45 +0100)] 
script: Make visible some link level parameters to lease dumping

protocol, ssid and profile are now visible

5 years agoLibc implementations are allowed to require the explicit inclusion of
Ismael Luceno [Sun, 21 Jun 2020 14:06:14 +0000 (15:06 +0100)] 
Libc implementations are allowed to require the explicit inclusion of
either <sys/types.h> (where it should be defined) or <sys/stat.h>
(prototypes requiring it) to expose mode_t.

Without that it fails to be exposed in musl libc, and potentially other
implementations.

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
5 years agodhcpcd: Only poll after mac randomisation
Roy Marples [Fri, 19 Jun 2020 08:36:55 +0000 (09:36 +0100)] 
dhcpcd: Only poll after mac randomisation

That will cause a delay and poll instantly rather than
an initial wait.

5 years agodhcpcd: Add an option to poll the interface carrier state
Roy Marples [Thu, 18 Jun 2020 20:15:15 +0000 (21:15 +0100)] 
dhcpcd: Add an option to poll the interface carrier state

Only to be used if the interface does not report carrier state
changes for whatever reason.

5 years agoQuick change for pior
Roy Marples [Wed, 17 Jun 2020 14:17:58 +0000 (15:17 +0100)] 
Quick change for pior

5 years agoconfigure: add --with-eghook=foo
Roy Marples [Wed, 17 Jun 2020 14:12:13 +0000 (15:12 +0100)] 
configure: add --with-eghook=foo

Allows to force for example ypbind if it's not installed.

5 years agodhcpcd: preserve the STARTED option when reloading options
Roy Marples [Wed, 17 Jun 2020 10:25:58 +0000 (11:25 +0100)] 
dhcpcd: preserve the STARTED option when reloading options

This avoids the truncated read when the launcher process exists
after the main process handles SIGHUP.

5 years agoinet6: No flags on the prefix means the prefix is via the router
Roy Marples [Wed, 17 Jun 2020 08:42:32 +0000 (09:42 +0100)] 
inet6: No flags on the prefix means the prefix is via the router

Fixes a minor regression from prior.

5 years agoprivsep: Simplyfy signal handling
Roy Marples [Tue, 16 Jun 2020 19:58:17 +0000 (20:58 +0100)] 
privsep: Simplyfy signal handling

All privsep processes only need to act on SIGTERM.
The privileged actioneer also needs to act on SIGCHLD.

5 years agoeloop: Add rationale for ELOOP_NSIGNALS
Roy Marples [Tue, 16 Jun 2020 16:31:47 +0000 (17:31 +0100)] 
eloop: Add rationale for ELOOP_NSIGNALS

5 years agoAlign
Roy Marples [Tue, 16 Jun 2020 16:21:20 +0000 (17:21 +0100)] 
Align

5 years agoeloop: Guard diagnostic in prior with ELOOP_DEBUG
Roy Marples [Tue, 16 Jun 2020 16:12:58 +0000 (17:12 +0100)] 
eloop: Guard diagnostic in prior with ELOOP_DEBUG

5 years agoprivsep: Use root signal_cb for all signals here.
Roy Marples [Tue, 16 Jun 2020 16:07:10 +0000 (17:07 +0100)] 
privsep: Use root signal_cb for all signals here.

5 years agoeloop: Try and survive a signal storm
Roy Marples [Tue, 16 Jun 2020 13:35:49 +0000 (14:35 +0100)] 
eloop: Try and survive a signal storm

Shouldn't happen in production, but you never know.

5 years agoprivsep: Don't handle any signals meant for the main process
Roy Marples [Tue, 16 Jun 2020 11:58:16 +0000 (11:58 +0000)] 
privsep: Don't handle any signals meant for the main process

Just incase someone issues a killall -HUP dhcpcd

5 years agoBSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF
Roy Marples [Tue, 16 Jun 2020 10:26:25 +0000 (10:26 +0000)] 
BSD: Allow non NetBSD and OpenBSD to set IN6_IFF_AUTOCONF

I don't think FreeBSD or DragonFly ever filtered it out, so
all the BSD family should now have parity here.

5 years agoinet6: Report RA Proxy flag if set
Roy Marples [Mon, 15 Jun 2020 23:48:42 +0000 (00:48 +0100)] 
inet6: Report RA Proxy flag if set

5 years agoinet6: Add support for reporting Mobile IPv6 RA's
Roy Marples [Mon, 15 Jun 2020 21:43:39 +0000 (22:43 +0100)] 
inet6: Add support for reporting Mobile IPv6 RA's

This is RFC6275. dhcpcd is not a client suitable for this,
but it will at least decode the information properly.

5 years agoconfigure: Fix fallout with disabling embedded config
Roy Marples [Mon, 15 Jun 2020 21:04:37 +0000 (22:04 +0100)] 
configure: Fix fallout with disabling embedded config