]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Wed, 27 Nov 2013 21:35:45 +0000 (21:35 +0000)]
Check length before accessing memory to silence valgrind.
Roy Marples [Wed, 27 Nov 2013 21:14:43 +0000 (21:14 +0000)]
Fix a crash where we don't care about option length.
Roy Marples [Wed, 27 Nov 2013 21:14:19 +0000 (21:14 +0000)]
Fix debug options and default CFLAGS
Roy Marples [Wed, 27 Nov 2013 20:21:17 +0000 (20:21 +0000)]
Add support for user defined options with embedded and encapsulated options.
Install dhcpcd-embedded.conf to LIBEXECDIR which is read before dhcpcd.conf.
The idea is that this dhcpcd-embedded.conf is maintained only by me to support
RFC DHCP/DHCPv6 options that require known embedded or ncapsulated options
which are not easily added to our option structures in dhcp.c and dhcp6.c.
Eventually we may move the whole structure here so that a smaller binary
is produced and the definitions are easier to maintain.
Roy Marples [Sat, 23 Nov 2013 14:10:00 +0000 (14:10 +0000)]
Fix virtual interfaces without a hardware address.
Roy Marples [Thu, 21 Nov 2013 08:40:59 +0000 (08:40 +0000)]
Note avenue for discussion making PD work with other IA's
Roy Marples [Wed, 20 Nov 2013 17:36:41 +0000 (17:36 +0000)]
When running for a single interface, don't set WAITIP if we are
backgrounding immediatley.
Roy Marples [Wed, 20 Nov 2013 11:37:25 +0000 (11:37 +0000)]
When releasing, we need to de-configure the interface as well.
Roy Marples [Tue, 19 Nov 2013 09:43:54 +0000 (09:43 +0000)]
NUL != NULL, so use the correct literal.
Thanks to Joerg Sonnenberger.
Roy Marples [Sat, 16 Nov 2013 11:55:27 +0000 (11:55 +0000)]
Linux has had address loopback routes since 2.2
I can't find an easy test for this, so just skip it.
Roy Marples [Fri, 15 Nov 2013 16:55:07 +0000 (16:55 +0000)]
Don't log ClientID if using DUID as that's already logged.
Roy Marples [Fri, 15 Nov 2013 16:44:46 +0000 (16:44 +0000)]
Change IAID to default from the last 4 bytes of the MAC address.
Rationale in the commit, but in a nutshell it allows for a stable
IAID between reboots without persistent storage and across
different OS's who name or number it differently to each other.
Roy Marples [Fri, 15 Nov 2013 13:43:41 +0000 (13:43 +0000)]
Allow IAID to be configured in DHCPv4 clientid.
Use this as the default for DHCPv6 IA's as well.
Rename if_iaid to if_ia as it's really an IA containing an IAID.
Roy Marples [Thu, 14 Nov 2013 15:48:07 +0000 (15:48 +0000)]
Build fixes for only INET and only INET6
Roy Marples [Thu, 14 Nov 2013 10:29:14 +0000 (10:29 +0000)]
Avoid pointer gymnastics.
Thanks to Christos Zoulas.
Roy Marples [Thu, 14 Nov 2013 10:20:32 +0000 (10:20 +0000)]
CID
1102809 : Fix uninitialised variable.
Thanks to Christos Zoulas.
Roy Marples [Thu, 14 Nov 2013 10:02:29 +0000 (10:02 +0000)]
White space, ordering and man corrections.
Thanks to Thomas Klausner.
Roy Marples [Tue, 12 Nov 2013 17:30:43 +0000 (17:30 +0000)]
Implement RFC4242, Information Refresh Time Option for DHCPv6.
Roy Marples [Tue, 12 Nov 2013 17:09:29 +0000 (17:09 +0000)]
Warn if dev is started more than once.
Roy Marples [Tue, 12 Nov 2013 15:00:22 +0000 (15:00 +0000)]
Cleanup IPv4 fd opening and closing.
Roy Marples [Sun, 10 Nov 2013 11:17:40 +0000 (11:17 +0000)]
Set blank CFLAGS/CPPFLAGS and then append user CFLAGS/CPPFLAGS.
This allows us to pass them to the configure tests and keep our
sed to extract them portable.
Roy Marples [Sun, 10 Nov 2013 10:32:01 +0000 (10:32 +0000)]
Fix typo adding CPPFLAGS to XCC.
Thanks to Michael Forney.
Roy Marples [Fri, 8 Nov 2013 18:28:44 +0000 (18:28 +0000)]
Fix processing of inet4 addr in vendor options and terminate correctly.
Roy Marples [Fri, 8 Nov 2013 09:56:54 +0000 (09:56 +0000)]
Preserve vendor encapsulated options
Roy Marples [Fri, 8 Nov 2013 09:37:44 +0000 (09:37 +0000)]
Move the kernel reporting DAD warning to ipv6nd.c to avoid compile spam
Roy Marples [Thu, 10 Oct 2013 10:09:48 +0000 (10:09 +0000)]
Fix renewal of Prefix Delegation.
Only spam the log if a lease has a new address or changes the vltime
of an existing address.
Roy Marples [Thu, 10 Oct 2013 09:22:44 +0000 (09:22 +0000)]
Add noipv4 and noipv6 options.
Roy Marples [Sun, 6 Oct 2013 16:35:43 +0000 (16:35 +0000)]
Warn about missing interfaces which require prefix delegation.
Also if a non OK status code is given without any addresses display it
instead of the fact there are missing addresses.
Roy Marples [Sat, 5 Oct 2013 16:28:33 +0000 (16:28 +0000)]
If we timeout, remove any waitip config so that we daemonise
correctly.
Roy Marples [Wed, 2 Oct 2013 08:11:05 +0000 (08:11 +0000)]
Fix a small memory leak
Roy Marples [Wed, 2 Oct 2013 08:00:09 +0000 (08:00 +0000)]
Remove the IPv6 forwarding router check as valid use cases exist
where you would want IPv6 RS/RA on a router.
Roy Marples [Fri, 27 Sep 2013 06:23:31 +0000 (06:23 +0000)]
We should abort if no specified interfaces are found.
Roy Marples [Fri, 27 Sep 2013 06:15:32 +0000 (06:15 +0000)]
Don't stop dev management on fork
Roy Marples [Sat, 21 Sep 2013 19:50:49 +0000 (19:50 +0000)]
Clarify the timeout behaviour if in master mode or per interface.
Roy Marples [Sat, 21 Sep 2013 14:47:17 +0000 (14:47 +0000)]
Test for wpa_supplicant.conf in /etc/wpa_supplicant as well
Roy Marples [Sat, 21 Sep 2013 14:31:06 +0000 (14:31 +0000)]
Pass the correct run directory to dhcpcd-run-hooks
Roy Marples [Fri, 20 Sep 2013 10:27:24 +0000 (10:27 +0000)]
Release dhcpcd-6.1.0
Roy Marples [Sat, 14 Sep 2013 08:50:41 +0000 (08:50 +0000)]
Allow dev to recieve errors from managers handle_device.
Roy Marples [Thu, 12 Sep 2013 22:11:04 +0000 (22:11 +0000)]
Fix warning
Roy Marples [Thu, 12 Sep 2013 21:43:17 +0000 (21:43 +0000)]
It seems that some older udev versions support filtering but not
per device initialization checks.
Add a test for this.
Roy Marples [Thu, 12 Sep 2013 21:35:33 +0000 (21:35 +0000)]
Start dev after link for a more sane interface rename.
Only start dev in master mode.
Roy Marples [Thu, 12 Sep 2013 21:13:41 +0000 (21:13 +0000)]
Dev module start now returns an fd to monitor so the eloop additions
can go into dev.c
Create a new struct to pass dhcpcd handle_interface to dev plugins
This allows us to build the dhcpcd binary normally and save a few k
disk space.
Roy Marples [Thu, 12 Sep 2013 17:16:51 +0000 (17:16 +0000)]
Fix dev building again
Roy Marples [Thu, 12 Sep 2013 17:08:34 +0000 (17:08 +0000)]
Fix building with a dev manager
Roy Marples [Thu, 12 Sep 2013 16:46:41 +0000 (16:46 +0000)]
Support older udev versions where we need to rely on udev-settle.
Roy Marples [Thu, 12 Sep 2013 15:43:20 +0000 (15:43 +0000)]
Instead of linking directly to libudev, create a plugin system for /dev
management. This allows dhcpcd to work even if udev removed and adds the
ability to change from udev to something else in the future.
Roy Marples [Tue, 10 Sep 2013 09:56:11 +0000 (09:56 +0000)]
Instead of just renaming the interface on Linux, take the FreeBSD
approach and remove the old and create a new one.
This simple change allows the the allow/deny rules to be followed.
Roy Marples [Tue, 10 Sep 2013 08:52:45 +0000 (08:52 +0000)]
Check if udev has actually initialized the interface rather than just detecting if udev has a device node for it.
Roy Marples [Mon, 9 Sep 2013 23:09:29 +0000 (23:09 +0000)]
Fix compile warning on BSD
Roy Marples [Mon, 9 Sep 2013 20:22:12 +0000 (20:22 +0000)]
Fix interface renaming and carrier reporting when using udev
Roy Marples [Mon, 9 Sep 2013 20:21:03 +0000 (20:21 +0000)]
Improve udev handling a little.
Roy Marples [Mon, 9 Sep 2013 18:17:54 +0000 (18:17 +0000)]
Only start on settled devices.
Roy Marples [Mon, 9 Sep 2013 16:28:05 +0000 (16:28 +0000)]
Fix udev filter test.
Roy Marples [Mon, 9 Sep 2013 16:14:06 +0000 (16:14 +0000)]
Add udev support for interface arrival and departure.
This is because udev likes to rename the interface, which it can't
do if dhcpcd grabs it first.
Roy Marples [Sat, 7 Sep 2013 23:16:36 +0000 (23:16 +0000)]
Fix requesting >1 DHCPv6 address
Roy Marples [Sat, 7 Sep 2013 11:13:05 +0000 (11:13 +0000)]
Don't bother managing a /128 prefix.
Roy Marples [Fri, 6 Sep 2013 15:50:25 +0000 (15:50 +0000)]
Plug a leak
Roy Marples [Fri, 6 Sep 2013 15:24:42 +0000 (15:24 +0000)]
No need for this include now.
Roy Marples [Fri, 6 Sep 2013 15:23:22 +0000 (15:23 +0000)]
Try and fix removal of the ip address when using INFORM.
Roy Marples [Fri, 6 Sep 2013 15:21:26 +0000 (15:21 +0000)]
Fix linux support for new RTM handling.
Roy Marples [Fri, 6 Sep 2013 09:38:24 +0000 (09:38 +0000)]
It seems that FreeBSD will send RTM_DELADDR + RTM_NEWADDR when
replacing an existing IPv4 address with the same values.
As such, we need to maintain a list of configured IPv4 addresses
for each interface so we know when to add it and when to skip it
to avoid receiving bogus RTM_DELADDR messages from ourself.
Roy Marples [Fri, 6 Sep 2013 09:38:23 +0000 (09:38 +0000)]
Fix DAD support when we need to listen on the wire.
Roy Marples [Fri, 6 Sep 2013 09:38:23 +0000 (09:38 +0000)]
Ignore all messages raised by dhcpcd.
Roy Marples [Thu, 5 Sep 2013 13:27:52 +0000 (13:27 +0000)]
Fix initial carrier status
Roy Marples [Thu, 5 Sep 2013 08:39:38 +0000 (08:39 +0000)]
Fix build without INET6
Roy Marples [Wed, 4 Sep 2013 16:27:56 +0000 (16:27 +0000)]
Clarify waitup arguments.
Roy Marples [Wed, 4 Sep 2013 00:32:38 +0000 (00:32 +0000)]
Fix comparison
Roy Marples [Tue, 3 Sep 2013 15:17:19 +0000 (15:17 +0000)]
No need to know the ra for the route.
Roy Marples [Tue, 3 Sep 2013 11:30:10 +0000 (11:30 +0000)]
RFC 5942 Section 5 states DHCPv6 address should not create prefixes
based on the assigned address.
Roy Marples [Tue, 3 Sep 2013 09:28:37 +0000 (09:28 +0000)]
Check kernel for autoconf support.
Roy Marples [Sat, 31 Aug 2013 16:48:39 +0000 (16:48 +0000)]
Add 4 and 6 arguments to the waitip command so that you can specify
which protocols to wait for.
Roy Marples [Mon, 26 Aug 2013 12:20:53 +0000 (12:20 +0000)]
Add the persistent option to the default dhcpcd.conf
Document how this can affect connected clients at shutdown, such as SSH
Roy Marples [Sun, 25 Aug 2013 10:22:48 +0000 (10:22 +0000)]
Fix the persistent option.
Roy Marples [Tue, 20 Aug 2013 15:59:51 +0000 (15:59 +0000)]
Fix kFreeBSD compile.
Thanks to Petr Salinger.
Roy Marples [Tue, 20 Aug 2013 10:36:49 +0000 (10:36 +0000)]
Fix compile
Don't warn about BSD kernels not reporting DAD if not building IPv6
Roy Marples [Tue, 20 Aug 2013 10:29:43 +0000 (10:29 +0000)]
Reduce code size by merging IPv6 ND with RS.
Roy Marples [Mon, 19 Aug 2013 09:38:38 +0000 (09:38 +0000)]
Reword a little.
Roy Marples [Mon, 19 Aug 2013 09:28:10 +0000 (09:28 +0000)]
Extend dhcpcd manual page to reflect actual behavior.
Thanks to Ondrej Grover.
Roy Marples [Mon, 19 Aug 2013 09:09:32 +0000 (09:09 +0000)]
Add the cloned static route, not the original
Roy Marples [Sun, 18 Aug 2013 15:35:40 +0000 (15:35 +0000)]
Try and fix bringing up virtual interfaces on BSD
Roy Marples [Sun, 18 Aug 2013 15:33:53 +0000 (15:33 +0000)]
Clean up an un-used argument for non ipv6 builds.
Roy Marples [Sat, 17 Aug 2013 10:00:07 +0000 (10:00 +0000)]
Fix build without IPv6
Roy Marples [Tue, 6 Aug 2013 11:34:08 +0000 (11:34 +0000)]
Actually validate the search list.
Roy Marples [Fri, 2 Aug 2013 20:12:22 +0000 (20:12 +0000)]
Release dhcpcd-6.0.5
Roy Marples [Fri, 2 Aug 2013 09:10:38 +0000 (09:10 +0000)]
Slackware uses /etc/rc.d/rc.$service instead of just $service,
so configure doesn't find those. This patch overrides the
defaults for SERVICEEXISTS, SERVICECMD, and SERVICESTATUS.
Thanks to Robby Workman.
Roy Marples [Thu, 1 Aug 2013 21:26:27 +0000 (21:26 +0000)]
If we don't have resolvconf, don't print a search line in
resolv.conf(5) if it matches the domain.
Roy Marples [Thu, 1 Aug 2013 10:03:27 +0000 (10:03 +0000)]
If the DNS search list is a direct match for the domain then
don't bother writing the search option to resolv.conf
Roy Marples [Thu, 1 Aug 2013 09:48:14 +0000 (09:48 +0000)]
Fix domain option in DHCP messages
Roy Marples [Mon, 29 Jul 2013 20:24:48 +0000 (20:24 +0000)]
Release dhcpcd-6.0.4
Roy Marples [Sun, 28 Jul 2013 10:53:59 +0000 (10:53 +0000)]
We shouldn't force a hostname if no old hostname
Roy Marples [Sun, 28 Jul 2013 10:36:24 +0000 (10:36 +0000)]
If we are lacking a domain option, derive one from the hostname if
we can.
Roy Marples [Sun, 28 Jul 2013 10:22:18 +0000 (10:22 +0000)]
Add an option to respect whatever the server says for the hostname.
Change the default back to FQDN as per RFC4702 section 3.1.
Roy Marples [Thu, 25 Jul 2013 15:39:38 +0000 (15:39 +0000)]
Fix last patch after testing
Roy Marples [Thu, 25 Jul 2013 15:10:16 +0000 (15:10 +0000)]
Add the option hostname_short, which will force the sending of the
short hostname so DDNS will always work, even if the hostname domain
is different from the DHCP servers.
Change hostname_fqdn to true/false/unset value.
unset means use what the DHCP server supplies
(DHCPv4/DHCPv6 maybe inconsistent depending on server setup)
true/false force the hostname to be either a FQDN or a short name.
Roy Marples [Tue, 23 Jul 2013 16:45:46 +0000 (16:45 +0000)]
Use Mt for email address.
Thanks to Thomas Klausner.
Roy Marples [Mon, 22 Jul 2013 19:05:54 +0000 (19:05 +0000)]
Stop sending FQDN by default.
Instead, if sending the hostname in DHCPv4, send a FQDN in DHCPv6.
This allows for a cleaner configuration file and fixes some DDNS problems
with upstream servers.
Roy Marples [Mon, 22 Jul 2013 17:01:57 +0000 (17:01 +0000)]
Fix DHCPv6 FQDN hostname assignment, broken last patch.
Roy Marples [Sun, 21 Jul 2013 11:21:24 +0000 (11:21 +0000)]
Adjust option order returned.
Roy Marples [Sun, 21 Jul 2013 09:57:27 +0000 (09:57 +0000)]
Rename the script option fqdn_name to fqdn for DHCPv4 replies to
match DHCPv6 as it makes name sense.
Request the FQDN option by default as well as sending it.
Roy Marples [Fri, 19 Jul 2013 21:14:28 +0000 (21:14 +0000)]
Clarify the duid option due to DHCPv6.