]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Sat, 5 Nov 2016 11:35:13 +0000 (11:35 +0000)]
Remove distinfo files before making them.
Roy Marples [Sat, 5 Nov 2016 11:17:45 +0000 (11:17 +0000)]
Keep the distinfo in the signed result.
Roy Marples [Fri, 4 Nov 2016 15:37:43 +0000 (15:37 +0000)]
make distinfo now produces a .distinfo file which contains checksum(s) of
the dist file. This distinfo file is then signed with a PGP key.
Roy Marples [Tue, 25 Oct 2016 15:33:02 +0000 (15:33 +0000)]
Remove address family specific routing and introduce address family
agnostic routing.
This makes the platform drivers simpler and reduces some code duplication.
Needs a lot of testing.
Roy Marples [Mon, 24 Oct 2016 19:24:38 +0000 (19:24 +0000)]
logger output always goes to stderr now.
Roy Marples [Mon, 24 Oct 2016 19:21:23 +0000 (19:21 +0000)]
hwaddr_ntoa now takes a void * as a source.
Roy Marples [Mon, 24 Oct 2016 19:18:43 +0000 (19:18 +0000)]
Remove debug.
Roy Marples [Fri, 14 Oct 2016 09:19:42 +0000 (09:19 +0000)]
Return an error.
Roy Marples [Fri, 14 Oct 2016 09:07:42 +0000 (09:07 +0000)]
Re-work checking IPv6 kernel settings on BSD.
Roy Marples [Fri, 14 Oct 2016 08:55:04 +0000 (08:55 +0000)]
Support kernels which implement RFC5227.
This means we don't have to open an ARP socket unless we need to ARPing.
Allow ARP an ARPing to be optional features.
Roy Marples [Mon, 10 Oct 2016 08:50:04 +0000 (08:50 +0000)]
Merge dhcpcd-6 changes.
Roy Marples [Mon, 10 Oct 2016 08:47:56 +0000 (08:47 +0000)]
I updated this file this year.
Roy Marples [Mon, 10 Oct 2016 08:47:13 +0000 (08:47 +0000)]
If there is no announced_cb, free the arp state.
Roy Marples [Mon, 10 Oct 2016 08:46:41 +0000 (08:46 +0000)]
Return early to make code more readable.
Roy Marples [Mon, 10 Oct 2016 08:04:34 +0000 (08:04 +0000)]
Fix build with DEBUG_NS
Roy Marples [Sun, 9 Oct 2016 08:16:42 +0000 (08:16 +0000)]
Copy pdp.prefix as it's not aligned.
Roy Marples [Sun, 9 Oct 2016 08:07:17 +0000 (08:07 +0000)]
Release dhcpcd-6.11.5
Roy Marples [Sun, 9 Oct 2016 08:06:10 +0000 (08:06 +0000)]
Correct define to __OpenBSD__. Fixes [
ad8b5130d4 ] again.
Roy Marples [Sun, 9 Oct 2016 08:02:37 +0000 (08:02 +0000)]
Correct define to __OpenBSD__.
Fixes [
ad8b5130d4 ] again.
Roy Marples [Fri, 7 Oct 2016 10:01:09 +0000 (10:01 +0000)]
Merge fixes from branch
Roy Marples [Fri, 7 Oct 2016 10:01:09 +0000 (10:01 +0000)]
Merge fixes from branch
Roy Marples [Fri, 7 Oct 2016 09:42:38 +0000 (09:42 +0000)]
Fix build system to make import correctly for authentication.
Roy Marples [Fri, 7 Oct 2016 08:34:00 +0000 (08:34 +0000)]
Fix import for auth
Roy Marples [Fri, 7 Oct 2016 08:05:10 +0000 (08:05 +0000)]
Release dhcpcd-6.11.4
Roy Marples [Thu, 6 Oct 2016 10:36:47 +0000 (10:36 +0000)]
Cast away some more compile errors.
Roy Marples [Wed, 5 Oct 2016 19:20:39 +0000 (19:20 +0000)]
Remove debug.
Roy Marples [Wed, 5 Oct 2016 19:20:13 +0000 (19:20 +0000)]
Fix sending DHCPv6 vendor option.
Roy Marples [Wed, 5 Oct 2016 16:33:34 +0000 (16:33 +0000)]
Update copyright and intent.
Roy Marples [Wed, 5 Oct 2016 16:30:19 +0000 (16:30 +0000)]
Copy out ND option structs for correct alignment.
Roy Marples [Wed, 5 Oct 2016 15:00:35 +0000 (15:00 +0000)]
Assert size for more structs.
Roy Marples [Wed, 5 Oct 2016 14:06:20 +0000 (14:06 +0000)]
Remove packed from these structs.
Roy Marples [Wed, 5 Oct 2016 12:19:59 +0000 (12:19 +0000)]
Fix compile on Linux with clang.
Roy Marples [Wed, 5 Oct 2016 11:44:57 +0000 (11:44 +0000)]
Fix some gcc warnings.
Roy Marples [Wed, 5 Oct 2016 11:28:48 +0000 (11:28 +0000)]
Try and avoid using __packed.
Instead use __CTASSERT to ensure the structure is the correct size for on-wire.
This allows for more efficient binaries to be produced.
Roy Marples [Wed, 5 Oct 2016 11:03:32 +0000 (11:03 +0000)]
Auth should work on void rather than a type.
Roy Marples [Wed, 5 Oct 2016 11:01:00 +0000 (11:01 +0000)]
Start work on dhcpcd-7
Roy Marples [Wed, 5 Oct 2016 10:59:32 +0000 (10:59 +0000)]
Create new branch named "dhcpcd-6"
Roy Marples [Tue, 4 Oct 2016 09:40:56 +0000 (09:40 +0000)]
Remove hack to add IPv6 LL address as early as possible.
This only worked on pre NetBSD-7.0 systems which did not support ND6_IFF_AUTO_LINKLOCAL.
By removing it, we make the code smaller and removes the possibility of in-advertently
re-ordering interfaces in dhcpcd during the init phases.
Should finally fix [
c9d04817fa ].
Roy Marples [Mon, 3 Oct 2016 20:07:52 +0000 (20:07 +0000)]
Guard against the possibility of no config..... may fix [
c9d04817fa ].
Roy Marples [Mon, 3 Oct 2016 19:41:11 +0000 (19:41 +0000)]
Validate lease before setting state to REQUEST when REPLY is recieved in
DISCOVER.
Roy Marples [Mon, 3 Oct 2016 17:55:43 +0000 (17:55 +0000)]
Revert prior and test for DH6S_REBIND rather than not DH6S_DISCOVER.
Roy Marples [Mon, 3 Oct 2016 16:42:55 +0000 (16:42 +0000)]
Don't re-enter the discover phase on receipt of an invalid offer if we are already in the discover phase.
Roy Marples [Sun, 2 Oct 2016 15:07:21 +0000 (15:07 +0000)]
If renew or rebind is not set, always use a default from the lowest pltime
even if the lease does not expire, as some IA/PD might expire.
Thanks to Guy Yur.
Roy Marples [Sun, 2 Oct 2016 10:54:52 +0000 (10:54 +0000)]
The ability to add LL addresses is not dependant on using SLAAC privacy,
just the carrier being up.
Fixes [
c9d04817fa ].
Roy Marples [Tue, 27 Sep 2016 10:34:29 +0000 (10:34 +0000)]
Report compiled in features in --version.
Roy Marples [Tue, 27 Sep 2016 10:21:31 +0000 (10:21 +0000)]
Only enable IPv4LL when INET is enabled.
Only enable DHCPv6 when INET6 is enabled.
Roy Marples [Tue, 27 Sep 2016 10:17:39 +0000 (10:17 +0000)]
Allow DHCPv6 support to be compiled out.
Roy Marples [Tue, 27 Sep 2016 09:00:26 +0000 (09:00 +0000)]
Move the #ifdef higher to exclude static consts.
Roy Marples [Tue, 27 Sep 2016 08:57:43 +0000 (08:57 +0000)]
Tidy comments
Roy Marples [Tue, 20 Sep 2016 09:29:39 +0000 (09:29 +0000)]
Allow IPv4LL to be compiled out.
Roy Marples [Mon, 19 Sep 2016 19:03:25 +0000 (19:03 +0000)]
Need to include crypt for MD5 on Linux.
Roy Marples [Mon, 19 Sep 2016 19:00:26 +0000 (19:00 +0000)]
Remove extra comment
Roy Marples [Mon, 19 Sep 2016 17:51:04 +0000 (17:51 +0000)]
Add CAN_DROP_LLADDR so we can easily handle our current inability to remove the IPv6 LL address on Solaris
Roy Marples [Mon, 19 Sep 2016 16:16:47 +0000 (16:16 +0000)]
Fix setting IPv6 addresses to zero.
Roy Marples [Mon, 19 Sep 2016 15:41:14 +0000 (15:41 +0000)]
Fix a segfault.
Roy Marples [Mon, 19 Sep 2016 13:00:45 +0000 (13:00 +0000)]
Make import now imports the files needed to generate dhcpcd-embedded.{c,h}
and bundles a small definition.
Roy Marples [Mon, 19 Sep 2016 12:25:39 +0000 (12:25 +0000)]
Fix building of embedded config with correct specified source.
Update copyrights.
Roy Marples [Mon, 19 Sep 2016 09:08:11 +0000 (09:08 +0000)]
Allow dhcpcd to be built without Authentiction support for system media with
extreme size constraints.
Roy Marples [Fri, 16 Sep 2016 19:41:05 +0000 (19:41 +0000)]
Fix compile on Linux
Roy Marples [Fri, 16 Sep 2016 19:38:30 +0000 (19:38 +0000)]
ifa_msghdr does not have the alias it's for, which is bad.
This hack works around it, but it's not 100% accurate :/
Roy Marples [Fri, 16 Sep 2016 16:21:17 +0000 (16:21 +0000)]
SMALL target removes the custom logger.
Roy Marples [Fri, 16 Sep 2016 16:03:00 +0000 (16:03 +0000)]
Fix compile on OpenBSD.
Roy Marples [Fri, 16 Sep 2016 15:49:01 +0000 (15:49 +0000)]
One BSD in the future will include address flags in ifa_msghdr.
A libc in the future will include address flags in ifaddrs.
Although this does make the code a bit more #ifdef messy, the end result
is a smaller binary, and less ioctls to make.
Roy Marples [Fri, 16 Sep 2016 15:28:46 +0000 (15:28 +0000)]
When validating a lease with an OK but no IA's and in the CONFIRM phase
then look for IA's in the old lease.
This allows us to get correct expiry and rebind times from old lease but
based from the acquision time of the CONFIRM message.
Roy Marples [Thu, 15 Sep 2016 10:36:58 +0000 (10:36 +0000)]
Ignore RTM versions we don't know.
Roy Marples [Mon, 12 Sep 2016 16:03:19 +0000 (16:03 +0000)]
Solaris allows a route per gateway as well.
Roy Marples [Mon, 12 Sep 2016 16:02:40 +0000 (16:02 +0000)]
dhcpcd considers the link down without IFF_UP.
Roy Marples [Mon, 12 Sep 2016 10:58:32 +0000 (10:58 +0000)]
OpenBSD allows many routes to the same dest with different gateways.
dhcpcd does not support this yet, so just delete the route until there is an error.
Fixes [
ad8b5130d4 ].
Roy Marples [Fri, 9 Sep 2016 09:56:26 +0000 (09:56 +0000)]
Add the --small configure option which currently removes non essential options
from being parsed out into dhcpcd-run-hooks and removes support for
DHCPv6 Prefix Delegation.
This is mainly to build a tiny dhcpcd for install media size there are more
extreme space limitations.
Roy Marples [Tue, 6 Sep 2016 16:39:03 +0000 (16:39 +0000)]
Always roundup the required buffer.
Roy Marples [Tue, 6 Sep 2016 16:14:31 +0000 (16:14 +0000)]
More assert
Roy Marples [Tue, 6 Sep 2016 14:58:33 +0000 (14:58 +0000)]
Don't dispatch 0 bytes.
Roy Marples [Tue, 6 Sep 2016 13:46:12 +0000 (13:46 +0000)]
When receiving multipart messages, receive them again until we get NLMSG_DONE.
Roy Marples [Tue, 6 Sep 2016 12:05:55 +0000 (12:05 +0000)]
DragonFly needs to ingore RTM_DELADDR as well.
Roy Marples [Tue, 6 Sep 2016 10:43:49 +0000 (10:43 +0000)]
Remove the POLLADDR check out of if-bsd.c and into ipv6.c for other OS's
Roy Marples [Tue, 6 Sep 2016 10:03:08 +0000 (10:03 +0000)]
Rename var to avoid a global on OpenBSD.
Roy Marples [Mon, 5 Sep 2016 22:48:08 +0000 (22:48 +0000)]
More iovec array fixes.
Roy Marples [Mon, 5 Sep 2016 22:35:29 +0000 (22:35 +0000)]
Fix more iovec to arrays.
Roy Marples [Mon, 5 Sep 2016 22:27:47 +0000 (22:27 +0000)]
recvmsg expects an array of iovec structures, not a pointer to the first one.
Roy Marples [Mon, 5 Sep 2016 21:20:14 +0000 (21:20 +0000)]
Re-check address flags when carrier goes down if we poll for address flags.
Roy Marples [Mon, 5 Sep 2016 21:19:29 +0000 (21:19 +0000)]
If we need to poll for address flags, do this for tentative link-local addresses too.
Roy Marples [Mon, 5 Sep 2016 20:11:44 +0000 (20:11 +0000)]
Dodge more errors when deleting not available anymore.
Roy Marples [Mon, 5 Sep 2016 20:08:46 +0000 (20:08 +0000)]
Don't violate memory when we learn new IPv4LL addresses.
Roy Marples [Mon, 5 Sep 2016 20:08:15 +0000 (20:08 +0000)]
We need a seperate iovec buffer for receiving netlink messages because
we need to send and receive before the first receive has finished.
Roy Marples [Mon, 5 Sep 2016 19:43:14 +0000 (19:43 +0000)]
Only callback when there is a callback.
Roy Marples [Mon, 5 Sep 2016 19:39:42 +0000 (19:39 +0000)]
Handle NLMSG_NOOP and NLMSG_DONE.
Move err_netlink to here as well to clarify.
Roy Marples [Mon, 5 Sep 2016 15:57:30 +0000 (15:57 +0000)]
Ensure that the IPv6 link-local address always uses the secret key at startup.
Roy Marples [Sat, 3 Sep 2016 12:23:03 +0000 (12:23 +0000)]
Remove IPv4 routes in reverse order to match IPv6.
Thanks to Guy Yur.
Roy Marples [Fri, 2 Sep 2016 14:29:54 +0000 (14:29 +0000)]
Test slen is not -1 before setting error on MSG_TRUNC.
Roy Marples [Fri, 2 Sep 2016 14:02:45 +0000 (14:02 +0000)]
Don't call snprintf needlessly.
Roy Marples [Fri, 2 Sep 2016 13:57:42 +0000 (13:57 +0000)]
Check valid netmask changes.
Roy Marples [Fri, 2 Sep 2016 13:37:07 +0000 (13:37 +0000)]
Don't add host routes for the IPv4LL default route.
Roy Marples [Fri, 2 Sep 2016 13:10:39 +0000 (13:10 +0000)]
When deleting routes, delete the stored kernel route as well.
This enables IPv4LL default routes to be re-added if a DHCP lease expires.
Roy Marples [Fri, 2 Sep 2016 12:36:33 +0000 (12:36 +0000)]
Only log errors about getting address flags if the error is not address
unavailable.
Roy Marples [Fri, 2 Sep 2016 11:34:09 +0000 (11:34 +0000)]
Remove the need for statically sized receive buffers for IPv6 ND and DHCPv6
messages.
Roy Marples [Fri, 2 Sep 2016 10:42:09 +0000 (10:42 +0000)]
Provide better commentary.
Roy Marples [Fri, 2 Sep 2016 10:20:30 +0000 (10:20 +0000)]
Optimise recvmsg_realloc.
Roy Marples [Fri, 2 Sep 2016 09:01:21 +0000 (09:01 +0000)]
bytes -> len
Roy Marples [Fri, 2 Sep 2016 08:16:31 +0000 (08:16 +0000)]
If more than one iovec then realloc the last one.
Roy Marples [Fri, 2 Sep 2016 08:09:47 +0000 (08:09 +0000)]
Rework the recvmsg_realloc function to handle flags.
Commit also includes mistakenly added ifam_pid patch for BSD.
It does no harm being here, even though no BSD supports this yet.