]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
10 years agoFor DHCP, use a .dhcp suffix.
Roy Marples [Tue, 10 Mar 2015 13:28:11 +0000 (13:28 +0000)] 
For DHCP, use a .dhcp suffix.
Change from using :dhcp6 and :ra to .dhcp6 and .ra to be more inline with Debian resolvconf.

10 years agoEnsure that we only have a 0 sla once.
Roy Marples [Sat, 7 Mar 2015 19:15:14 +0000 (19:15 +0000)] 
Ensure that we only have a 0 sla once.

10 years agoIf the SLA is zero and the required prefix length is zero, just use the
Roy Marples [Sat, 7 Mar 2015 16:31:22 +0000 (16:31 +0000)] 
If the SLA is zero and the required prefix length is zero, just use the
delegated prefix length.

10 years agoFix compile without INET6 and/or INET
Roy Marples [Sat, 7 Mar 2015 12:16:38 +0000 (12:16 +0000)] 
Fix compile without INET6 and/or INET

10 years agoInclude IPv6RA and DHCPv6 in the sorting of interfaces.
Roy Marples [Sat, 7 Mar 2015 12:08:32 +0000 (12:08 +0000)] 
Include IPv6RA and DHCPv6 in the sorting of interfaces.

10 years agoSupport runit (untested)
Roy Marples [Fri, 6 Mar 2015 10:03:25 +0000 (10:03 +0000)] 
Support runit (untested)

10 years agoAdd why dhcpcd is ignoring an interface in debug output.
Roy Marples [Fri, 6 Mar 2015 08:40:35 +0000 (08:40 +0000)] 
Add why dhcpcd is ignoring an interface in debug output.

10 years agoAdd support for IFT_PPP and IFT_PROPVIRTUAL.
Roy Marples [Thu, 5 Mar 2015 19:43:46 +0000 (19:43 +0000)] 
Add support for IFT_PPP and IFT_PROPVIRTUAL.
Thanks to Guy Yur.

10 years agoReport correct interface type on failure.
Roy Marples [Thu, 5 Mar 2015 19:34:00 +0000 (19:34 +0000)] 
Report correct interface type on failure.
Thanks to Guy Yur.

10 years agoRemove erroneous goto.
Roy Marples [Thu, 5 Mar 2015 17:40:56 +0000 (17:40 +0000)] 
Remove erroneous goto.

10 years agoRequeue events when using epoll.
Roy Marples [Thu, 5 Mar 2015 15:07:21 +0000 (15:07 +0000)] 
Requeue events when using epoll.

10 years agoSet poll filters before writing eloop event.
Roy Marples [Thu, 5 Mar 2015 11:34:47 +0000 (11:34 +0000)] 
Set poll filters before writing eloop event.

10 years agoFix signal handling on Linux.
Roy Marples [Thu, 5 Mar 2015 03:30:14 +0000 (03:30 +0000)] 
Fix signal handling on Linux.

10 years agoFix epoll fd moving read only.
Roy Marples [Thu, 5 Mar 2015 02:55:53 +0000 (02:55 +0000)] 
Fix epoll fd moving read only.

10 years agoFix compile on Linux
Roy Marples [Wed, 4 Mar 2015 21:28:21 +0000 (21:28 +0000)] 
Fix compile on Linux

10 years agoFix crash when handling routes on interfaces we don't know about.
Roy Marples [Wed, 4 Mar 2015 20:16:16 +0000 (20:16 +0000)] 
Fix crash when handling routes on interfaces we don't know about.

10 years agoFix signal handling
Roy Marples [Wed, 4 Mar 2015 20:03:22 +0000 (20:03 +0000)] 
Fix signal handling

10 years agokqueue is lost on fork, so re-queue everything.
Roy Marples [Wed, 4 Mar 2015 19:29:17 +0000 (19:29 +0000)] 
kqueue is lost on fork, so re-queue everything.
kqueue and epoll don't need massive memory to read active events.

10 years agoFix compile on FreeBSD
Roy Marples [Wed, 4 Mar 2015 17:28:27 +0000 (17:28 +0000)] 
Fix compile on FreeBSD

10 years agoTest for kqueue1 or set O_CLOEXEC on the kqueue fd.
Roy Marples [Wed, 4 Mar 2015 16:40:21 +0000 (16:40 +0000)] 
Test for kqueue1 or set O_CLOEXEC on the kqueue fd.

10 years agoSupport kqueue(2).
Roy Marples [Wed, 4 Mar 2015 15:47:04 +0000 (15:47 +0000)] 
Support kqueue(2).

10 years agoSupport epoll(7)
Roy Marples [Wed, 4 Mar 2015 11:51:55 +0000 (11:51 +0000)] 
Support epoll(7)

10 years agoMove this struct to a better place
Roy Marples [Wed, 4 Mar 2015 11:41:53 +0000 (11:41 +0000)] 
Move this struct to a better place

10 years agoFix compile on Linux
Roy Marples [Tue, 3 Mar 2015 18:31:14 +0000 (18:31 +0000)] 
Fix compile on Linux

10 years agoRemove RTM_GET code as we now read all kernel routes before building our own.
Roy Marples [Tue, 3 Mar 2015 17:38:35 +0000 (17:38 +0000)] 
Remove RTM_GET code as we now read all kernel routes before building our own.

10 years agoReplace timeval with timespec.
Roy Marples [Tue, 3 Mar 2015 17:27:25 +0000 (17:27 +0000)] 
Replace timeval with timespec.

10 years agoFix route finding on Linux.
Roy Marples [Mon, 2 Mar 2015 20:37:28 +0000 (20:37 +0000)] 
Fix route finding on Linux.

10 years agoNeed to call initstate here.
Roy Marples [Mon, 2 Mar 2015 20:20:43 +0000 (20:20 +0000)] 
Need to call initstate here.

10 years agoCheck we manage the protocol before handling it.
Roy Marples [Mon, 2 Mar 2015 20:08:10 +0000 (20:08 +0000)] 
Check we manage the protocol before handling it.

10 years agoStop pretending that OpenBSD route priority is like Linux route metric.
Roy Marples [Mon, 2 Mar 2015 09:39:34 +0000 (09:39 +0000)] 
Stop pretending that OpenBSD route priority is like Linux route metric.

10 years agoDon't warn about CSR or host routes until we actually use a lease.
Roy Marples [Sat, 28 Feb 2015 19:22:58 +0000 (19:22 +0000)] 
Don't warn about CSR or host routes until we actually use a lease.

10 years agoFix IPv6 routing on OpenBSD and document includes and defines better.
Roy Marples [Sat, 28 Feb 2015 17:41:24 +0000 (17:41 +0000)] 
Fix IPv6 routing on OpenBSD and document includes and defines better.

10 years agoStyle
Roy Marples [Sat, 28 Feb 2015 17:26:52 +0000 (17:26 +0000)] 
Style

10 years agoRevert prior
Roy Marples [Fri, 27 Feb 2015 21:32:51 +0000 (21:32 +0000)] 
Revert prior

10 years agoChange ipv6_freeaddr into a macro for a minor size improvement.
Roy Marples [Fri, 27 Feb 2015 20:55:38 +0000 (20:55 +0000)] 
Change ipv6_freeaddr into a macro for a minor size improvement.

10 years agoAdd a helper function to free IPv6 addresses to ensure all
Roy Marples [Fri, 27 Feb 2015 20:40:17 +0000 (20:40 +0000)] 
Add a helper function to free IPv6 addresses to ensure all
timeouts are cleared.

10 years agoRemove the address from the eloop tiemout queue before freeing.
Roy Marples [Fri, 27 Feb 2015 19:53:03 +0000 (19:53 +0000)] 
Remove the address from the eloop tiemout queue before freeing.

10 years agoUse strlcpy
Roy Marples [Fri, 27 Feb 2015 19:52:00 +0000 (19:52 +0000)] 
Use strlcpy

10 years agoOnly warn about adding a host route to the router the once.
Roy Marples [Fri, 27 Feb 2015 14:58:13 +0000 (14:58 +0000)] 
Only warn about adding a host route to the router the once.

10 years agoIf RTF_CLONING is supported, create a cloning network route to the host instead
Roy Marples [Fri, 27 Feb 2015 14:33:09 +0000 (14:33 +0000)] 
If RTF_CLONING is supported, create a cloning network route to the host instead
of a host route.
This avoids the kernel printing ARP diagnositic messages.

10 years agoStop using link_addr(3).
Roy Marples [Fri, 27 Feb 2015 14:21:01 +0000 (14:21 +0000)] 
Stop using link_addr(3).
Instead just set the sdl_index to specify which interface the route is for.

10 years agoAfter adding an address load the kernel routing table for the interface.
Roy Marples [Thu, 26 Feb 2015 13:22:41 +0000 (13:22 +0000)] 
After adding an address load the kernel routing table for the interface.
When routes are rebuilt try not to remove any existing routes if they
don't need changing.

10 years agoTypo
Roy Marples [Mon, 23 Feb 2015 17:47:25 +0000 (17:47 +0000)] 
Typo

10 years agoAllow snapshots to be built.
Roy Marples [Mon, 23 Feb 2015 12:16:17 +0000 (12:16 +0000)] 
Allow snapshots to be built.

10 years agoOpenBSD has automatic loopback routes
Roy Marples [Mon, 23 Feb 2015 12:05:34 +0000 (12:05 +0000)] 
OpenBSD has automatic loopback routes

10 years agoSupport BSDs where userland is not allowed to set temporary addresses.
Roy Marples [Mon, 23 Feb 2015 10:55:09 +0000 (10:55 +0000)] 
Support BSDs where userland is not allowed to set temporary addresses.

10 years agologger(1) from util-linux-2.26 now has an option argument to -i, so work
Roy Marples [Mon, 23 Feb 2015 09:35:42 +0000 (09:35 +0000)] 
logger(1) from util-linux-2.26 now has an option argument to -i, so work
with this as well.
Fixes [eb1ef6a62b].

10 years agoMove the pidfile into the dhcpcd context.
Roy Marples [Fri, 20 Feb 2015 08:28:04 +0000 (08:28 +0000)] 
Move the pidfile into the dhcpcd context.
When dumping a lease by filename, store the filename in the pidfile.
Fixes an issue where the filename overflows the interface name size.

10 years agoUse the exit code of EXIT_SUCCESS when terminating gracefully.
Roy Marples [Wed, 18 Feb 2015 20:29:42 +0000 (20:29 +0000)] 
Use the exit code of EXIT_SUCCESS when terminating gracefully.

10 years agoipi6.ifiindex differes between OS's so have a cast function
Roy Marples [Wed, 18 Feb 2015 20:09:57 +0000 (20:09 +0000)] 
ipi6.ifiindex differes between OS's so have a cast function

10 years agoCheck IPv6 state before regenerating random seeds. Fixes [eb1ef6a62b].
Roy Marples [Wed, 18 Feb 2015 16:52:49 +0000 (16:52 +0000)] 
Check IPv6 state before regenerating random seeds. Fixes [eb1ef6a62b].

10 years agoNo need to check this again.
Roy Marples [Wed, 18 Feb 2015 16:43:54 +0000 (16:43 +0000)] 
No need to check this again.

10 years agoTidy definitions
Roy Marples [Wed, 18 Feb 2015 13:40:40 +0000 (13:40 +0000)] 
Tidy definitions

10 years agoFix compile on some systems.
Roy Marples [Wed, 18 Feb 2015 13:40:23 +0000 (13:40 +0000)] 
Fix compile on some systems.

10 years agoFix test, thanks to Olaf Westrik.
Roy Marples [Fri, 13 Feb 2015 12:22:05 +0000 (12:22 +0000)] 
Fix test, thanks to Olaf Westrik.

10 years agoTest if we fake loaded a lease so we can report the correct state.
Roy Marples [Fri, 13 Feb 2015 11:28:17 +0000 (11:28 +0000)] 
Test if we fake loaded a lease so we can report the correct state.

10 years agoReserve space for a fully escaped SSID in the lease filename.
Roy Marples [Tue, 10 Feb 2015 08:54:33 +0000 (08:54 +0000)] 
Reserve space for a fully escaped SSID in the lease filename.

10 years agoSpaces in filenames suck hard.
Roy Marples [Tue, 10 Feb 2015 08:50:39 +0000 (08:50 +0000)] 
Spaces in filenames suck hard.

10 years agoDisallow / in the SSID when using in a lease filename.
Roy Marples [Mon, 9 Feb 2015 17:32:34 +0000 (17:32 +0000)] 
Disallow / in the SSID when using in a lease filename.

10 years agoStore lease files per interface per ssid.
Roy Marples [Mon, 9 Feb 2015 15:35:49 +0000 (15:35 +0000)] 
Store lease files per interface per ssid.

10 years agoAdjust comment to remove +x bit.
Roy Marples [Sun, 8 Feb 2015 13:24:14 +0000 (13:24 +0000)] 
Adjust comment to remove +x bit.

10 years agoFix Linux define.
Roy Marples [Sun, 8 Feb 2015 12:57:38 +0000 (12:57 +0000)] 
Fix Linux define.

10 years agoFix comment
Roy Marples [Tue, 3 Feb 2015 09:37:21 +0000 (09:37 +0000)] 
Fix comment

10 years agoTest mode removes the daemonise bit, so check for both when setting the timeout.
Roy Marples [Tue, 3 Feb 2015 09:00:36 +0000 (09:00 +0000)] 
Test mode removes the daemonise bit, so check for both when setting the timeout.

10 years agoFix cast
Roy Marples [Sat, 31 Jan 2015 01:03:24 +0000 (01:03 +0000)] 
Fix cast

10 years agoUse strtoi(3) and strtou(3) from NetBSD-8 instead of the harder to use
Roy Marples [Sat, 31 Jan 2015 01:02:07 +0000 (01:02 +0000)] 
Use strtoi(3) and strtou(3) from NetBSD-8 instead of the harder to use
strtol(3) calls.
Add shims around strtoimax(3) and strtoumax(3) when these functions
are not available.

10 years agoBump copyright here as well.
Roy Marples [Fri, 30 Jan 2015 10:46:53 +0000 (10:46 +0000)] 
Bump copyright here as well.

10 years agoRelease dhcpcd-6.7.1 v6.7.1
Roy Marples [Fri, 30 Jan 2015 10:05:47 +0000 (10:05 +0000)] 
Release dhcpcd-6.7.1

10 years agoFix compile with IPv6 disabled.
Roy Marples [Fri, 30 Jan 2015 10:05:21 +0000 (10:05 +0000)] 
Fix compile with IPv6 disabled.

10 years agoRelease dhcpcd-6.7.0 v6.7.0
Roy Marples [Fri, 30 Jan 2015 09:23:21 +0000 (09:23 +0000)] 
Release dhcpcd-6.7.0

10 years agoOnly extend temporary addresses with pltime.
Roy Marples [Fri, 23 Jan 2015 11:00:17 +0000 (11:00 +0000)] 
Only extend temporary addresses with pltime.
If the Prefix Information Option has zero pltime, set all temporary addresses
with a pltime to zero for the prefix.

10 years agoFor Linux, keep the alias on the interface so we don't have to guess
Roy Marples [Thu, 22 Jan 2015 20:10:18 +0000 (20:10 +0000)] 
For Linux, keep the alias on the interface so we don't have to guess
all the time.

10 years agoIgnore RA's from ourself for very badly configured stations.
Roy Marples [Wed, 21 Jan 2015 21:02:39 +0000 (21:02 +0000)] 
Ignore RA's from ourself for very badly configured stations.

10 years agoUpdate to reflect 3.16 or older kernels and the header mismatch in ArchLinux on ARM.
Roy Marples [Wed, 21 Jan 2015 19:37:39 +0000 (19:37 +0000)] 
Update to reflect 3.16 or older kernels and the header mismatch in ArchLinux on ARM.

10 years agoFix warning on FreeBSD where we don't need to use sysctlbyname(3).
Roy Marples [Tue, 20 Jan 2015 20:56:13 +0000 (20:56 +0000)] 
Fix warning on FreeBSD where we don't need to use sysctlbyname(3).

10 years agoRevert part of the prior patch and only free IPv6 if state when
Roy Marples [Tue, 20 Jan 2015 12:04:42 +0000 (12:04 +0000)] 
Revert part of the prior patch and only free IPv6 if state when
freeing and not dropping so we retain IPv6 addresses we don't
generally control on carrier down.

10 years agoEnsure memory is freed when forking.
Roy Marples [Tue, 20 Jan 2015 11:41:46 +0000 (11:41 +0000)] 
Ensure memory is freed when forking.

10 years agoAdd ipv6_freedrop, similar to dhcp6_freedrop so we can easily
Roy Marples [Tue, 20 Jan 2015 10:55:04 +0000 (10:55 +0000)] 
Add ipv6_freedrop, similar to dhcp6_freedrop so we can easily
drop and free or just free IPv6 temporary addresses.

10 years agoreject <option> will now reject any DHCP message that contains that option.
Roy Marples [Tue, 20 Jan 2015 10:42:47 +0000 (10:42 +0000)] 
reject <option> will now reject any DHCP message that contains that option.

10 years agoRestore IFA_F_MANAGETEMPADDR
Roy Marples [Mon, 19 Jan 2015 13:28:26 +0000 (13:28 +0000)] 
Restore IFA_F_MANAGETEMPADDR

10 years agoChange define KERNEL_MANAGETEMPADD to IPV6_MANAGETEMPADDR.
Roy Marples [Mon, 19 Jan 2015 13:24:39 +0000 (13:24 +0000)] 
Change define KERNEL_MANAGETEMPADD to IPV6_MANAGETEMPADDR.
Use this to block out actual address additions so we don't get bogus errors
about not being able to create temporary addresses.

10 years agoNow that ipv6 has it's own eloop, ensure that we clear any interface
Roy Marples [Sun, 18 Jan 2015 20:46:43 +0000 (20:46 +0000)] 
Now that ipv6 has it's own eloop, ensure that we clear any interface
timeout when freeing the IPv6 state.

10 years agoFix which interface to test ip6_use_tempaddr on when adding.
Roy Marples [Sun, 18 Jan 2015 20:34:57 +0000 (20:34 +0000)] 
Fix which interface to test ip6_use_tempaddr on when adding.

10 years agoImplement RFC4941, Privacy Extensions for Stateless Address Autoconfiguration
Roy Marples [Sat, 17 Jan 2015 02:29:54 +0000 (02:29 +0000)] 
Implement RFC4941, Privacy Extensions for Stateless Address Autoconfiguration
in IPv6 when dhcpcd is overriding the in-kernel RA support.

For Linux kernels (3.18+) which support IFA_F_MANAGETEMPADDR the bulk of
this changeset is compiled out and the kernel will manage the temporary
addresses entirely.

For BSD, this is a fully compliant implementation with the caveat
that when dhcpcd is restarted the last non deprecated temp address on the
interface will be treated as being created when it was last updated
rather when it was actually added. Thus this may voilate section 3.3.
As dhcpcd won't restart in normal operation, this isn't an issue.

For Linux (3.18+) which supports IFA_F_MANAGETEMPADDR, the bulk of this
changeset is compiled out as the kernel will manage the temporary addresses.
For older Linux this is a fully compliant implementation with the caveat that
when restarted new temporary addresses will be generated.

Fixes [2ddfcb190f]

10 years agoClarify the problem of identifying a bootp vs dhcp message.
Roy Marples [Sat, 17 Jan 2015 00:32:18 +0000 (00:32 +0000)] 
Clarify the problem of identifying a bootp vs dhcp message.

10 years agoLet packet filters name themselves to avoid confusion.
Roy Marples [Fri, 16 Jan 2015 23:39:03 +0000 (23:39 +0000)] 
Let packet filters name themselves to avoid confusion.

10 years agoIf we cannot open the kernel Packet Filter, give a better error message
Roy Marples [Fri, 16 Jan 2015 23:11:39 +0000 (23:11 +0000)] 
If we cannot open the kernel Packet Filter, give a better error message
and disable IPv4 configuration.

10 years agoInclude paths.h to get _PATH_BPF. Thanks to Joerg Sonnenberger.
Roy Marples [Fri, 16 Jan 2015 23:01:29 +0000 (23:01 +0000)] 
Include paths.h to get _PATH_BPF. Thanks to Joerg Sonnenberger.

10 years agotime_t is not always unsigned.
Roy Marples [Fri, 16 Jan 2015 22:53:40 +0000 (22:53 +0000)] 
time_t is not always unsigned.

10 years agoOnly check DaD for addresses we have actually added ourselves.
Roy Marples [Thu, 8 Jan 2015 13:33:07 +0000 (13:33 +0000)] 
Only check DaD for addresses we have actually added ourselves.

10 years agoAdd an option to disable the generation of autoconf addresses within a RA.
Roy Marples [Thu, 8 Jan 2015 13:31:42 +0000 (13:31 +0000)] 
Add an option to disable the generation of autoconf addresses within a RA.

10 years agoIPv6 kernel autoconf disabled is not an error condition to stop IPv6 from working...
Roy Marples [Tue, 6 Jan 2015 14:05:26 +0000 (14:05 +0000)] 
IPv6 kernel autoconf disabled is not an error condition to stop IPv6 from working if not owning the RA process and DHCPv6 is present in an RA message, but we should still warn about it never the less.

10 years agoWarn about IPv6 kernel autoconf being disabled on BSD platforms.
Roy Marples [Tue, 6 Jan 2015 13:53:54 +0000 (13:53 +0000)] 
Warn about IPv6 kernel autoconf being disabled on BSD platforms.

10 years agoFix another case where we could mistakenly claim ownership of IPv6 RA.
Roy Marples [Tue, 6 Jan 2015 13:42:51 +0000 (13:42 +0000)] 
Fix another case where we could mistakenly claim ownership of IPv6 RA.

10 years agoFix handling of ND6_IFF_OVERRIDE_RTADV on NetBSD.
Roy Marples [Tue, 6 Jan 2015 13:34:24 +0000 (13:34 +0000)] 
Fix handling of ND6_IFF_OVERRIDE_RTADV on NetBSD.

10 years agoOpenBSD fixed their posix_spawn(3) implementation in 5.7
Roy Marples [Mon, 5 Jan 2015 14:12:23 +0000 (14:12 +0000)] 
OpenBSD fixed their posix_spawn(3) implementation in 5.7

10 years agoUpdate copyrights to 2015.
Roy Marples [Fri, 2 Jan 2015 20:03:28 +0000 (20:03 +0000)] 
Update copyrights to 2015.

10 years agoWelcome to 2015!
Roy Marples [Thu, 1 Jan 2015 20:50:48 +0000 (20:50 +0000)] 
Welcome to 2015!

10 years agoOnly release the DHCPv6 lease when dropping it.
Roy Marples [Thu, 1 Jan 2015 20:49:10 +0000 (20:49 +0000)] 
Only release the DHCPv6 lease when dropping it.
Fixes [bc15b90f7a]

10 years agoAdd qnx* to OS detection so we can pass the __EXT define and stay using
Roy Marples [Tue, 23 Dec 2014 09:46:02 +0000 (09:46 +0000)] 
Add qnx* to OS detection so we can pass the __EXT define and stay using
--cstd=c99.