]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoNo need to know the ra for the route.
Roy Marples [Tue, 3 Sep 2013 15:17:19 +0000 (15:17 +0000)] 
No need to know the ra for the route.

11 years agoRFC 5942 Section 5 states DHCPv6 address should not create prefixes
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.

11 years agoCheck kernel for autoconf support.
Roy Marples [Tue, 3 Sep 2013 09:28:37 +0000 (09:28 +0000)] 
Check kernel for autoconf support.

12 years agoAdd 4 and 6 arguments to the waitip command so that you can specify
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.

12 years agoAdd the persistent option to the default dhcpcd.conf
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

12 years agoFix the persistent option.
Roy Marples [Sun, 25 Aug 2013 10:22:48 +0000 (10:22 +0000)] 
Fix the persistent option.

12 years agoFix kFreeBSD compile.
Roy Marples [Tue, 20 Aug 2013 15:59:51 +0000 (15:59 +0000)] 
Fix kFreeBSD compile.
Thanks to Petr Salinger.

12 years agoFix compile
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

12 years agoReduce code size by merging IPv6 ND with RS.
Roy Marples [Tue, 20 Aug 2013 10:29:43 +0000 (10:29 +0000)] 
Reduce code size by merging IPv6 ND with RS.

12 years agoReword a little.
Roy Marples [Mon, 19 Aug 2013 09:38:38 +0000 (09:38 +0000)] 
Reword a little.

12 years agoExtend dhcpcd manual page to reflect actual behavior.
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.

12 years agoAdd the cloned static route, not the original
Roy Marples [Mon, 19 Aug 2013 09:09:32 +0000 (09:09 +0000)] 
Add the cloned static route, not the original

12 years agoTry and fix bringing up virtual interfaces on BSD
Roy Marples [Sun, 18 Aug 2013 15:35:40 +0000 (15:35 +0000)] 
Try and fix bringing up virtual interfaces on BSD

12 years agoClean up an un-used argument for non ipv6 builds.
Roy Marples [Sun, 18 Aug 2013 15:33:53 +0000 (15:33 +0000)] 
Clean up an un-used argument for non ipv6 builds.

12 years agoFix build without IPv6
Roy Marples [Sat, 17 Aug 2013 10:00:07 +0000 (10:00 +0000)] 
Fix build without IPv6

12 years agoActually validate the search list.
Roy Marples [Tue, 6 Aug 2013 11:34:08 +0000 (11:34 +0000)] 
Actually validate the search list.

12 years agoRelease dhcpcd-6.0.5 v6.0.5
Roy Marples [Fri, 2 Aug 2013 20:12:22 +0000 (20:12 +0000)] 
Release dhcpcd-6.0.5

12 years agoSlackware uses /etc/rc.d/rc.$service instead of just $service,
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.

12 years agoIf we don't have resolvconf, don't print a search line in
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.

12 years agoIf the DNS search list is a direct match for the domain then
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

12 years agoFix domain option in DHCP messages
Roy Marples [Thu, 1 Aug 2013 09:48:14 +0000 (09:48 +0000)] 
Fix domain option in DHCP messages

12 years agoRelease dhcpcd-6.0.4 v6.0.4
Roy Marples [Mon, 29 Jul 2013 20:24:48 +0000 (20:24 +0000)] 
Release dhcpcd-6.0.4

12 years agoWe shouldn't force a hostname if no old hostname
Roy Marples [Sun, 28 Jul 2013 10:53:59 +0000 (10:53 +0000)] 
We shouldn't force a hostname if no old hostname

12 years agoIf we are lacking a domain option, derive one from the hostname if
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.

12 years agoAdd an option to respect whatever the server says for the hostname.
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.

12 years agoFix last patch after testing
Roy Marples [Thu, 25 Jul 2013 15:39:38 +0000 (15:39 +0000)] 
Fix last patch after testing

12 years agoAdd the option hostname_short, which will force the sending of the
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.

12 years agoUse Mt for email address.
Roy Marples [Tue, 23 Jul 2013 16:45:46 +0000 (16:45 +0000)] 
Use Mt for email address.
Thanks to Thomas Klausner.

12 years agoStop sending FQDN by default.
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.

12 years agoFix DHCPv6 FQDN hostname assignment, broken last patch.
Roy Marples [Mon, 22 Jul 2013 17:01:57 +0000 (17:01 +0000)] 
Fix DHCPv6 FQDN hostname assignment, broken last patch.

12 years agoAdjust option order returned.
Roy Marples [Sun, 21 Jul 2013 11:21:24 +0000 (11:21 +0000)] 
Adjust option order returned.

12 years agoRename the script option fqdn_name to fqdn for DHCPv4 replies to
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.

12 years agoClarify the duid option due to DHCPv6.
Roy Marples [Fri, 19 Jul 2013 21:14:28 +0000 (21:14 +0000)] 
Clarify the duid option due to DHCPv6.

12 years agoRelease dhcpcd-6.0.3 v6.0.3
Roy Marples [Fri, 19 Jul 2013 09:42:36 +0000 (09:42 +0000)] 
Release dhcpcd-6.0.3

12 years agoBy default we should not set a fully qualified hostname.
Roy Marples [Tue, 2 Jul 2013 14:02:17 +0000 (14:02 +0000)] 
By default we should not set a fully qualified hostname.

12 years agoOnly start DHCPv6 if the RA is new or has changed.
Roy Marples [Tue, 2 Jul 2013 13:45:27 +0000 (13:45 +0000)] 
Only start DHCPv6 if the RA is new or has changed.

12 years agoFix prior patch
Roy Marples [Mon, 1 Jul 2013 19:34:54 +0000 (19:34 +0000)] 
Fix prior patch

12 years agoFix dhcpcd owning the RA if the kernel has disabled RA but there
Roy Marples [Mon, 1 Jul 2013 19:23:19 +0000 (19:23 +0000)] 
Fix dhcpcd owning the RA if the kernel has disabled RA but there
is no directive in dhcpcd.conf

12 years agoCater for non RFC conformant domains in the hostname field.
Roy Marples [Fri, 28 Jun 2013 16:42:29 +0000 (16:42 +0000)] 
Cater for non RFC conformant domains in the hostname field.

12 years agoIncase CFLAGS is set, we should still set std v6.0.2
Roy Marples [Tue, 25 Jun 2013 09:04:10 +0000 (09:04 +0000)] 
Incase CFLAGS is set, we should still set std

12 years agoRelease dhcpcd-6.0.2
Roy Marples [Tue, 25 Jun 2013 08:50:08 +0000 (08:50 +0000)] 
Release dhcpcd-6.0.2

12 years agoDetect link address changes on Linux.
Roy Marples [Tue, 25 Jun 2013 08:31:11 +0000 (08:31 +0000)] 
Detect link address changes on Linux.
Only NetBSD emits RTM_CHGADDR for link address changes.
Sadly no other BSD emits anything for link address changes so we have
to do a full discovery on carrier up.

When a link address does change, simply carry on as we are, no need
to drop any existing lease as the carrier change will do that for us.

12 years agoRelease dhcpcd-6.0.1 v6.0.1
Roy Marples [Sat, 22 Jun 2013 09:16:37 +0000 (09:16 +0000)] 
Release dhcpcd-6.0.1

12 years agoFix a compile issue on Big Endian machines.
Roy Marples [Sat, 22 Jun 2013 09:15:35 +0000 (09:15 +0000)] 
Fix a compile issue on Big Endian machines.
Don't use magic numbers for DHCPv6 FQDN bits.

12 years agoRelease dhcpcd-6.0.0! v6.0.0
Roy Marples [Fri, 21 Jun 2013 18:58:09 +0000 (18:58 +0000)] 
Release dhcpcd-6.0.0!

12 years agoWe don't print the FQDN flags.
Roy Marples [Fri, 21 Jun 2013 18:17:52 +0000 (18:17 +0000)] 
We don't print the FQDN flags.

12 years agoAdd RCSID and CVS headers when importing to NetBSD.
Roy Marples [Thu, 20 Jun 2013 10:35:16 +0000 (10:35 +0000)] 
Add RCSID and CVS headers when importing to NetBSD.

12 years agoThe loopback route should also use the metric.
Roy Marples [Wed, 19 Jun 2013 16:32:22 +0000 (16:32 +0000)] 
The loopback route should also use the metric.

12 years agoAdd loopback support for Linux.
Roy Marples [Wed, 19 Jun 2013 16:11:31 +0000 (16:11 +0000)] 
Add loopback support for Linux.

12 years agoAdd a route from the IPv4 address to the loopback address.
Roy Marples [Wed, 19 Jun 2013 16:02:19 +0000 (16:02 +0000)] 
Add a route from the IPv4 address to the loopback address.
This allows for machine-internal communications to this address
can use the large loopback mtu.

12 years agoNote that ipv6ra_own doesn't work well on any BSD system.
Roy Marples [Wed, 19 Jun 2013 13:35:28 +0000 (13:35 +0000)] 
Note that ipv6ra_own doesn't work well on any BSD system.

12 years agoArrived interfaces should share the same commandline options.
Roy Marples [Wed, 19 Jun 2013 10:06:54 +0000 (10:06 +0000)] 
Arrived interfaces should share the same commandline options.

12 years agoReduce the buggy PPP wait to 1 second.
Roy Marples [Wed, 19 Jun 2013 09:41:30 +0000 (09:41 +0000)] 
Reduce the buggy PPP wait to 1 second.

12 years agoWhen adding or changing routes, always supply IFP and IFA so we match
Roy Marples [Wed, 19 Jun 2013 09:36:52 +0000 (09:36 +0000)] 
When adding or changing routes, always supply IFP and IFA so we match
kernel messages 100%.
Restore purging kernel IPv6 routers.

12 years agoRestore linkaddr compat support for KFreeBSD
Roy Marples [Wed, 19 Jun 2013 09:17:15 +0000 (09:17 +0000)] 
Restore linkaddr compat support for KFreeBSD

12 years agoFix operation on NetBSD
Roy Marples [Wed, 19 Jun 2013 08:57:23 +0000 (08:57 +0000)] 
Fix operation on NetBSD

12 years agoWe may not have a state when we drop delegates
Roy Marples [Tue, 18 Jun 2013 22:20:52 +0000 (22:20 +0000)] 
We may not have a state when we drop delegates

12 years agoAdd a delay to initial Rebind IA_PD message.
Roy Marples [Tue, 18 Jun 2013 09:17:28 +0000 (09:17 +0000)] 
Add a delay to initial Rebind IA_PD message.
Delay initial DHCPv6 messages a futher 2 seconds for POINTOPOINT links to
try and ensure dhcpcd receives a reply.
Process link events last so that dhcpcd can process any rejection messages.
When a delegating interface stops, the delegates addresses will be removed.

12 years agoFix a crash with departing interfaces.
Roy Marples [Wed, 12 Jun 2013 18:24:16 +0000 (18:24 +0000)] 
Fix a crash with departing interfaces.
Fix more needless spam when an interface departs.

12 years agoEnsure we read the full lease.
Roy Marples [Wed, 12 Jun 2013 15:21:05 +0000 (15:21 +0000)] 
Ensure we read the full lease.

12 years agoAdd initial delays as per RFC3315, 17.1.2, 18.1.2 and 18.1.5.
Roy Marples [Wed, 12 Jun 2013 15:01:59 +0000 (15:01 +0000)] 
Add initial delays as per RFC3315, 17.1.2, 18.1.2 and 18.1.5.

When rebooting an interface, re-request information or abort
the current transaction and re-discover.

12 years agoEnsure we have the correct type to send in our saved lease as the
Roy Marples [Wed, 12 Jun 2013 10:58:28 +0000 (10:58 +0000)] 
Ensure we have the correct type to send in our saved lease as the
user could change from IA_PD to IA_NA.
Re-send INFORM_REQUEST at each ROUTERADVERT.
Save some code by sharing the drop addrs loop.

12 years agoDrop delegated addresses when we enter the discover phase.
Roy Marples [Tue, 11 Jun 2013 22:49:07 +0000 (22:49 +0000)] 
Drop delegated addresses when we enter the discover phase.
Don't request expired IAs.

12 years agoWhen releasing, remove the delegated addresses.
Roy Marples [Tue, 11 Jun 2013 10:13:19 +0000 (10:13 +0000)] 
When releasing, remove the delegated addresses.

12 years agoIf we get an invalid reply when rebinding a PD we should re-enter
Roy Marples [Tue, 11 Jun 2013 08:55:58 +0000 (08:55 +0000)] 
If we get an invalid reply when rebinding a PD we should re-enter
the discover phase.

12 years agoFix a crash.
Roy Marples [Tue, 11 Jun 2013 06:22:02 +0000 (06:22 +0000)] 
Fix a crash.

12 years agoDon't run INFORM6 twice.
Roy Marples [Mon, 10 Jun 2013 22:13:44 +0000 (22:13 +0000)] 
Don't run INFORM6 twice.

12 years agoIf we fail to rebind a PD, drop the delegations.
Roy Marples [Mon, 10 Jun 2013 21:54:00 +0000 (21:54 +0000)] 
If we fail to rebind a PD, drop the delegations.

12 years agoIA_FORCED is explicitly set now
Roy Marples [Mon, 10 Jun 2013 20:31:52 +0000 (20:31 +0000)] 
IA_FORCED is explicitly set now

12 years agoImprove logging
Roy Marples [Mon, 10 Jun 2013 20:31:34 +0000 (20:31 +0000)] 
Improve logging

12 years agoDisable flushing ra stuff for the time being.
Roy Marples [Mon, 10 Jun 2013 16:08:58 +0000 (16:08 +0000)] 
Disable flushing ra stuff for the time being.

12 years agoFix def
Roy Marples [Mon, 10 Jun 2013 09:10:18 +0000 (09:10 +0000)] 
Fix def

12 years agoFix compile on FreeBSD
Roy Marples [Mon, 10 Jun 2013 01:43:28 +0000 (01:43 +0000)] 
Fix compile on FreeBSD

12 years agoDon't disable kernel RA when in IPv4 only.
Roy Marples [Mon, 10 Jun 2013 01:15:59 +0000 (01:15 +0000)] 
Don't disable kernel RA when in IPv4 only.

12 years agoPurge prefix list and routers at start of IPv6 for BSD.
Roy Marples [Mon, 10 Jun 2013 00:56:54 +0000 (00:56 +0000)] 
Purge prefix list and routers at start of IPv6 for BSD.
Remove link_addr compact function as we now had a LL address list.
Fix INET and INET6 seperate compiles.

12 years agoRFC 3633 says that IA_PD should send a rebind, but at like a
Roy Marples [Sun, 9 Jun 2013 21:51:52 +0000 (21:51 +0000)] 
RFC 3633 says that IA_PD should send a rebind, but at like a
confirm, so add a timeout to it to re-enter the discover phase.

12 years agoDon't delete the subnet route if we don't own IPv6RA routes.
Roy Marples [Sun, 9 Jun 2013 10:57:16 +0000 (10:57 +0000)] 
Don't delete the subnet route if we don't own IPv6RA routes.

12 years agoOnly run LL callbacks from LL addresses
Roy Marples [Sun, 9 Jun 2013 10:04:46 +0000 (10:04 +0000)] 
Only run LL callbacks from LL addresses

12 years agoDon't try to delete non existant addresses
Roy Marples [Sun, 9 Jun 2013 08:45:24 +0000 (08:45 +0000)] 
Don't try to delete non existant addresses

12 years agoOnly wait for DAD to complete for RA addresses marked for autoconf.
Roy Marples [Sun, 9 Jun 2013 08:37:01 +0000 (08:37 +0000)] 
Only wait for DAD to complete for RA addresses marked for autoconf.
Thanks to Jayce Lee.

12 years agoBecause not all OS's send RTM_NEWADDR for a refreshed RA we need
Roy Marples [Sun, 9 Jun 2013 07:31:08 +0000 (07:31 +0000)] 
Because not all OS's send RTM_NEWADDR for a refreshed RA we need
to manage a list of all IPv6 addresses on an interface so that we
can know if we need to wait for DAD to complete or not.

12 years agoIf wpa_supplicant is not running when rebinding, start it for
Roy Marples [Fri, 7 Jun 2013 20:51:44 +0000 (20:51 +0000)] 
If wpa_supplicant is not running when rebinding, start it for
wireless interfaces.

12 years agoAdd a wpa_supplicant hook script.
Roy Marples [Fri, 7 Jun 2013 20:03:28 +0000 (20:03 +0000)] 
Add a wpa_supplicant hook script.

This script starts wpa_supplicant on a wireless interface if not
already running and /etc/wpa_supplicant.conf exists, stops it
when the interface departs and sends wpa_supplicant a reconfigure
command.

If dhcpcd is running in master mode, you can use `dhcpcd -n eth0'
it instruct wpa_supplicant to reload its configuration file.

12 years agoMove signal handling into dhcpcd.c
Roy Marples [Fri, 7 Jun 2013 12:44:19 +0000 (12:44 +0000)] 
Move signal handling into dhcpcd.c
Log the PID of the signal caller
Move syslog functions out of the signal handler if we're not
exiting as it's not safe.
Close existing IPv4 sockets when restarting an interface.
Fix control handling keeping current flags and accepting new ones.

12 years agoDon't log an error if deleting from a departed interface
Roy Marples [Thu, 6 Jun 2013 19:08:10 +0000 (19:08 +0000)] 
Don't log an error if deleting from a departed interface

12 years agoDon't log carrier lost if carrier was UNKNOWN.
Roy Marples [Thu, 6 Jun 2013 18:39:12 +0000 (18:39 +0000)] 
Don't log carrier lost if carrier was UNKNOWN.

12 years agoEnsure we have options before calling getopt_long(3).
Roy Marples [Thu, 6 Jun 2013 18:15:33 +0000 (18:15 +0000)] 
Ensure we have options before calling getopt_long(3).

12 years agoAdd DEPARTED reason for when an interface is removed.
Roy Marples [Thu, 6 Jun 2013 12:38:15 +0000 (12:38 +0000)] 
Add DEPARTED reason for when an interface is removed.

12 years agoDon't error if the interface goes away.
Roy Marples [Thu, 6 Jun 2013 12:38:14 +0000 (12:38 +0000)] 
Don't error if the interface goes away.

12 years agoQuote space in RFC to stop unfortunate line splitting.
Roy Marples [Thu, 6 Jun 2013 12:38:14 +0000 (12:38 +0000)] 
Quote space in RFC to stop unfortunate line splitting.

12 years agoPrefer --prefix over $PREFIX
Roy Marples [Thu, 6 Jun 2013 00:31:00 +0000 (00:31 +0000)] 
Prefer --prefix over $PREFIX

12 years agoAdd support for Rapid Commit, RFC3315 and RFC4039.
Roy Marples [Wed, 5 Jun 2013 23:57:03 +0000 (23:57 +0000)] 
Add support for Rapid Commit, RFC3315 and RFC4039.

12 years agoAdd support for NTP servers, RFC 4075
Roy Marples [Wed, 5 Jun 2013 20:48:09 +0000 (20:48 +0000)] 
Add support for NTP servers, RFC 4075

12 years agoMap DHCPv4 options to DHCPv6 where applicable.
Roy Marples [Wed, 5 Jun 2013 20:13:14 +0000 (20:13 +0000)] 
Map DHCPv4 options to DHCPv6 where applicable.
This makes for an easier configuration.
Send the FQDN option by default.

12 years agoFix disabled FQDN and allocation
Roy Marples [Wed, 5 Jun 2013 17:36:49 +0000 (17:36 +0000)] 
Fix disabled FQDN and allocation

12 years agoSilence bogus gcc messages.
Roy Marples [Wed, 5 Jun 2013 17:19:07 +0000 (17:19 +0000)] 
Silence bogus gcc messages.

12 years agoEnsure our derived hostname is NULL terminated.
Roy Marples [Wed, 5 Jun 2013 16:35:54 +0000 (16:35 +0000)] 
Ensure our derived hostname is NULL terminated.

12 years agoAdd DHPCv6 FQDN support (RFC4704)
Roy Marples [Wed, 5 Jun 2013 16:23:24 +0000 (16:23 +0000)] 
Add DHPCv6 FQDN support (RFC4704)
Improve hostname support in general, so we are aware of hostname changes.
When setting the hostname, prefer the FQDN name or append a domain.

12 years agoSupport the DHCPv6 unicast option.
Roy Marples [Wed, 5 Jun 2013 10:37:45 +0000 (10:37 +0000)] 
Support the DHCPv6 unicast option.

12 years agoHandle routers expiring a bit more cleanly and less spammy.
Roy Marples [Tue, 4 Jun 2013 15:33:13 +0000 (15:33 +0000)] 
Handle routers expiring a bit more cleanly and less spammy.