]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
9 years agoFix mandoc lintian error, thanks to JS Junior.
Roy Marples [Tue, 15 Sep 2015 10:17:01 +0000 (10:17 +0000)] 
Fix mandoc lintian error, thanks to JS Junior.

9 years agoFix compile on kFreeBSD thanks to JS Junior.
Roy Marples [Tue, 15 Sep 2015 10:13:53 +0000 (10:13 +0000)] 
Fix compile on kFreeBSD thanks to JS Junior.

9 years agoAdd an assert here as it's currently failing when moving a lease from one interface...
Roy Marples [Sun, 13 Sep 2015 09:32:20 +0000 (09:32 +0000)] 
Add an assert here as it's currently failing when moving a lease from one interface to another.

9 years agoAdd a note about OpenBSD always adding it's own lladdr
Roy Marples [Sun, 13 Sep 2015 08:14:26 +0000 (08:14 +0000)] 
Add a note about OpenBSD always adding it's own lladdr

9 years agoChange the BSD IPv6 interface setup order to ensure we have a better chance of eensur...
Roy Marples [Sun, 13 Sep 2015 07:46:01 +0000 (07:46 +0000)] 
Change the BSD IPv6 interface setup order to ensure we have a better chance of eensuring any LLADDR we add doesn't cause a duplicate by the kernel.

9 years agoFix compile on FreeBSD.
Roy Marples [Sat, 12 Sep 2015 20:51:56 +0000 (20:51 +0000)] 
Fix compile on FreeBSD.

9 years agoMake CAN_ADD_LLADDR work on BSD.
Roy Marples [Sat, 12 Sep 2015 20:37:01 +0000 (20:37 +0000)] 
Make CAN_ADD_LLADDR work on BSD.

9 years agoIf we can toggle the automatic creation of the lladdr by the kernel then
Roy Marples [Sat, 12 Sep 2015 20:21:02 +0000 (20:21 +0000)] 
If we can toggle the automatic creation of the lladdr by the kernel then
we can remove the lladdr at carrier down and only add it at carrier up.
This allows us to ensure the lladdr undergoes DaD and we can randomise it
per SSID if we need to.

9 years agoWe need to check kernel IPv6 setup for the interface if doing any IPv6, not just RS.
Roy Marples [Sat, 12 Sep 2015 20:19:31 +0000 (20:19 +0000)] 
We need to check kernel IPv6 setup for the interface if doing any IPv6, not just RS.

9 years agoRemove some unreachable code.
Roy Marples [Sat, 12 Sep 2015 13:53:58 +0000 (13:53 +0000)] 
Remove some unreachable code.

9 years agoFix compile on Bitrig
Roy Marples [Sat, 12 Sep 2015 13:14:27 +0000 (13:14 +0000)] 
Fix compile on Bitrig

9 years agoRemove correct configure test file
Roy Marples [Sat, 12 Sep 2015 12:28:01 +0000 (12:28 +0000)] 
Remove correct configure test file

9 years agoTest for error condition rather than a success of 0 when setting routes.
Roy Marples [Fri, 11 Sep 2015 18:22:35 +0000 (18:22 +0000)] 
Test for error condition rather than a success of 0 when setting routes.

9 years agoRemove the custom SixRD decode function and replace with a generic
Roy Marples [Thu, 10 Sep 2015 08:41:37 +0000 (08:41 +0000)] 
Remove the custom SixRD decode function and replace with a generic
definition.
This does mean any 3rd party hook scripts using this will need to be changed.

9 years agoAdd IPv4 address selection from route code so platform handlers don't
Roy Marples [Thu, 10 Sep 2015 08:32:37 +0000 (08:32 +0000)] 
Add IPv4 address selection from route code so platform handlers don't
have to work it out.

9 years agoFix prior for IPv6 old routes.
Roy Marples [Wed, 9 Sep 2015 08:50:47 +0000 (08:50 +0000)] 
Fix prior for IPv6 old routes.

9 years agoWhen deleting an old route and it doesn't have an interface then use
Roy Marples [Tue, 8 Sep 2015 16:29:02 +0000 (16:29 +0000)] 
When deleting an old route and it doesn't have an interface then use
the interface of the new route for context.

9 years agoFix the REBIND reason.
Roy Marples [Tue, 8 Sep 2015 13:14:22 +0000 (13:14 +0000)] 
Fix the REBIND reason.

9 years agoRework arp_free and arp_free_but to share a common function.
Roy Marples [Tue, 8 Sep 2015 12:23:19 +0000 (12:23 +0000)] 
Rework arp_free and arp_free_but to share a common function.
Less code and works around a clang static analyzer bug.

9 years agoRevert this part of prior patch.
Roy Marples [Tue, 8 Sep 2015 12:22:38 +0000 (12:22 +0000)] 
Revert this part of prior patch.

9 years agoifp may not be set, but ctx will be.
Roy Marples [Tue, 8 Sep 2015 10:32:45 +0000 (10:32 +0000)] 
ifp may not be set, but ctx will be.

9 years agoMove defines checks after all includes to make Android happy.
Roy Marples [Tue, 8 Sep 2015 08:33:52 +0000 (08:33 +0000)] 
Move defines checks after all includes to make Android happy.

9 years agoI was wrong about Linux allowing userland to mark addresses as temporary,
Roy Marples [Mon, 7 Sep 2015 18:14:31 +0000 (18:14 +0000)] 
I was wrong about Linux allowing userland to mark addresses as temporary,
this just does not work.
Instead we can only mark addresses such that the kernel will generate and
manage temporary address from.
This means that that a large chunk of the temporary address management
code can be disabled on Linux, resulting in a smaller binary.
Fixes [8f4197ed4d] and [f40b0f329a].

9 years agoInstead of forcing a #define for IFLA_AF_SPEC, add a configure check to
Roy Marples [Mon, 7 Sep 2015 16:12:57 +0000 (16:12 +0000)] 
Instead of forcing a #define for IFLA_AF_SPEC, add a configure check to
ensure it exists.

9 years agoIf we failed to release, we may not have a state when finishing the release.
Roy Marples [Mon, 7 Sep 2015 14:45:44 +0000 (14:45 +0000)] 
If we failed to release, we may not have a state when finishing the release.

9 years agoAdd support for Chrony, fixes [03943daba7].
Roy Marples [Mon, 7 Sep 2015 10:58:04 +0000 (10:58 +0000)] 
Add support for Chrony, fixes [03943daba7].

9 years agoRelease dhcpcd-6.9.3 v6.9.3
Roy Marples [Fri, 4 Sep 2015 11:41:18 +0000 (11:41 +0000)] 
Release dhcpcd-6.9.3

9 years agoWhen adding a static address on non IN_IFF_* systems we should still ARP
Roy Marples [Thu, 3 Sep 2015 15:06:43 +0000 (15:06 +0000)] 
When adding a static address on non IN_IFF_* systems we should still ARP
check.

9 years agoFix compile on Linux
Roy Marples [Thu, 3 Sep 2015 14:42:16 +0000 (14:42 +0000)] 
Fix compile on Linux

9 years agoFix rebinding statically assinged IPv4 addresses.
Roy Marples [Thu, 3 Sep 2015 12:54:37 +0000 (12:54 +0000)] 
Fix rebinding statically assinged IPv4 addresses.

9 years agoNow that we set MTU for routes instead of using a hook script,
Roy Marples [Mon, 31 Aug 2015 10:26:49 +0000 (10:26 +0000)] 
Now that we set MTU for routes instead of using a hook script,
we need to read static interface_mtu (or static mtu) and use that if
available.

9 years agoTest prefix as well as variable name when setting static variables.
Roy Marples [Mon, 31 Aug 2015 09:06:37 +0000 (09:06 +0000)] 
Test prefix as well as variable name when setting static variables.
Fixes [e0893837e6].

While here, simplify a condition.

10 years agoFix compile on systems lacking SOCK_CLOEXEC.
Roy Marples [Sun, 23 Aug 2015 16:12:18 +0000 (16:12 +0000)] 
Fix compile on systems lacking SOCK_CLOEXEC.

10 years agoSilence a bogus gcc warning
Roy Marples [Sat, 22 Aug 2015 12:52:08 +0000 (12:52 +0000)] 
Silence a bogus gcc warning

10 years agoRemove unused variable.
Roy Marples [Fri, 21 Aug 2015 13:23:40 +0000 (13:23 +0000)] 
Remove unused variable.

10 years agoFix compile on OpenBSD v6.9.2
Roy Marples [Fri, 21 Aug 2015 10:11:59 +0000 (10:11 +0000)] 
Fix compile on OpenBSD

10 years agoRelease dhcpcd-6.9.2
Roy Marples [Fri, 21 Aug 2015 10:07:54 +0000 (10:07 +0000)] 
Release dhcpcd-6.9.2

10 years agoDocument removed mtu hook and installed dump hook.
Roy Marples [Fri, 21 Aug 2015 10:06:31 +0000 (10:06 +0000)] 
Document removed mtu hook and installed dump hook.

10 years agoReference old DHCPv6 FQDN when processing the hostname.
Roy Marples [Fri, 14 Aug 2015 22:24:21 +0000 (22:24 +0000)] 
Reference old DHCPv6 FQDN when processing the hostname.

10 years agoDon't delete dhcpcd assigned IPv6 link-local addresses when releasing
Roy Marples [Fri, 14 Aug 2015 22:10:58 +0000 (22:10 +0000)] 
Don't delete dhcpcd assigned IPv6 link-local addresses when releasing
leases.
Fixes [cc55ecae33].

10 years agoDescribe adding an IPv6 temporary address.
Roy Marples [Fri, 14 Aug 2015 21:57:02 +0000 (21:57 +0000)] 
Describe adding an IPv6 temporary address.

10 years agoBuild new_domain_name from other sources if blank before checking it's blank
Roy Marples [Fri, 14 Aug 2015 12:35:19 +0000 (12:35 +0000)] 
Build new_domain_name from other sources if blank before checking it's blank
to remove any prior config.
Fixes [a3aebc3b79]
Thanks to Paul Walrath.

10 years agoDon't do platform init or setting interface MTU if too small when
Roy Marples [Tue, 11 Aug 2015 09:24:41 +0000 (09:24 +0000)] 
Don't do platform init or setting interface MTU if too small when
testing or dumping leases.

10 years agoOnly set maximum message size if we can get the MTU of the interface.
Roy Marples [Tue, 11 Aug 2015 09:23:26 +0000 (09:23 +0000)] 
Only set maximum message size if we can get the MTU of the interface.

10 years agoFix reading prior lease without authenticaton set.
Roy Marples [Fri, 7 Aug 2015 12:58:10 +0000 (12:58 +0000)] 
Fix reading prior lease without authenticaton set.

10 years agoFix IPv4LL on NetBSD when wifi reconfigures.
Roy Marples [Fri, 7 Aug 2015 12:54:21 +0000 (12:54 +0000)] 
Fix IPv4LL on NetBSD when wifi reconfigures.

10 years agoFix compile on BSD.
Roy Marples [Fri, 7 Aug 2015 09:17:26 +0000 (09:17 +0000)] 
Fix compile on BSD.

10 years agoAdd IPv4LL subnet routes like the kernel does.
Roy Marples [Fri, 7 Aug 2015 08:49:07 +0000 (08:49 +0000)] 
Add IPv4LL subnet routes like the kernel does.
Build the routing table before applying routes, fixes [a3de5dcae1].

10 years agoUse the new xsocket function on Linux as well.
Roy Marples [Thu, 6 Aug 2015 16:28:29 +0000 (16:28 +0000)] 
Use the new xsocket function on Linux as well.

10 years agoOpen sockets once instead of open/close each for each ioctl.
Roy Marples [Thu, 6 Aug 2015 13:07:15 +0000 (13:07 +0000)] 
Open sockets once instead of open/close each for each ioctl.

10 years agoRemove the old 10-mtu hook if we can.
Roy Marples [Thu, 6 Aug 2015 12:53:55 +0000 (12:53 +0000)] 
Remove the old 10-mtu hook if we can.

10 years agoIf we add authentication, ensure saved lease has it.
Roy Marples [Thu, 6 Aug 2015 12:52:56 +0000 (12:52 +0000)] 
If we add authentication, ensure saved lease has it.

10 years agoCheck correct auth bits.
Roy Marples [Thu, 6 Aug 2015 12:49:47 +0000 (12:49 +0000)] 
Check correct auth bits.

10 years agoSimplify the socket code by adding a custom function instead of
Roy Marples [Tue, 4 Aug 2015 08:32:40 +0000 (08:32 +0000)] 
Simplify the socket code by adding a custom function instead of
having the same #ifdef mess for systems without SOCK_CLOEXEC.
Thanks to Christos.

10 years agonoauthrequired also allows unauthenticated FORCERENEW and RECONFIGURE
Roy Marples [Sat, 1 Aug 2015 08:38:42 +0000 (08:38 +0000)] 
noauthrequired also allows unauthenticated FORCERENEW and RECONFIGURE
messages.

10 years agoUpdate MTU on IPv6 routes if needed as well.
Roy Marples [Wed, 29 Jul 2015 10:05:14 +0000 (10:05 +0000)] 
Update MTU on IPv6 routes if needed as well.

10 years agoExtract the route MTU for Linux.
Roy Marples [Tue, 28 Jul 2015 21:32:13 +0000 (21:32 +0000)] 
Extract the route MTU for Linux.

10 years agoMove route state into it's own flag.
Roy Marples [Tue, 28 Jul 2015 13:58:31 +0000 (13:58 +0000)] 
Move route state into it's own flag.
Instead of setting the interface MTU directly, set the MTU for each of the
routes derived from the DHCP message in the same way we do for IPv6 RA.

10 years agoOnly apply interface MTU on DHCP messages, or static IPv4 configuration.
Roy Marples [Mon, 27 Jul 2015 09:31:35 +0000 (09:31 +0000)] 
Only apply interface MTU on DHCP messages, or static IPv4 configuration.

10 years agoIgnore interface address changes we made on Linux.
Roy Marples [Sun, 26 Jul 2015 14:35:27 +0000 (14:35 +0000)] 
Ignore interface address changes we made on Linux.
Fixes [0f72e262e9].

10 years agoFree offer on drop.
Roy Marples [Fri, 24 Jul 2015 21:53:56 +0000 (21:53 +0000)] 
Free offer on drop.

10 years agoOnly read the DHCP lease when doing DHCP.
Roy Marples [Fri, 24 Jul 2015 21:51:02 +0000 (21:51 +0000)] 
Only read the DHCP lease when doing DHCP.

10 years agoWhen dropping IPv4LL state, remove the address and rebuild routes before
Roy Marples [Fri, 24 Jul 2015 20:47:08 +0000 (20:47 +0000)] 
When dropping IPv4LL state, remove the address and rebuild routes before
calling dhcpcd-run-hooks.
Ensure that the IPv4LL random state is only used when picking addresses
and the original state is restored.

10 years agoIf we only have IPv4LL addresses, add a default route to the link so that
Roy Marples [Fri, 24 Jul 2015 10:22:50 +0000 (10:22 +0000)] 
If we only have IPv4LL addresses, add a default route to the link so that
we stand a chance at communicating with non IPv4LL addresses on the same link.

10 years agoRemove un-used variable.
Roy Marples [Wed, 22 Jul 2015 12:25:54 +0000 (12:25 +0000)] 
Remove un-used variable.

10 years agoClarify the automatic mapping of DHCPv4 to DHCPv6 options.
Roy Marples [Wed, 22 Jul 2015 10:24:37 +0000 (10:24 +0000)] 
Clarify the automatic mapping of DHCPv4 to DHCPv6 options.

10 years agoWhen ending IPv4LL, only rebuild routes if we dropped an address.
Roy Marples [Wed, 22 Jul 2015 10:11:44 +0000 (10:11 +0000)] 
When ending IPv4LL, only rebuild routes if we dropped an address.

10 years agoIgnore the RA if there are no public addresses on the interface.
Roy Marples [Wed, 22 Jul 2015 10:07:39 +0000 (10:07 +0000)] 
Ignore the RA if there are no public addresses on the interface.
Fixes [f44b3b4817].

10 years agoBackout commit [f20a30175f] as the behaviour can be trigged on Linux as well.
Roy Marples [Wed, 22 Jul 2015 09:59:32 +0000 (09:59 +0000)] 
Backout commit [f20a30175f] as the behaviour can be trigged on Linux as well.

10 years agoAdd another fix for compiling on old systems.
Roy Marples [Sat, 18 Jul 2015 10:31:19 +0000 (10:31 +0000)] 
Add another fix for compiling on old systems.

10 years agoeloop itself now contains a pselect wrapper.
Roy Marples [Sat, 18 Jul 2015 10:28:50 +0000 (10:28 +0000)] 
eloop itself now contains a pselect wrapper.

10 years agoAdd a #define to compile ignoring the RA without a public address.
Roy Marples [Mon, 13 Jul 2015 19:05:33 +0000 (19:05 +0000)] 
Add a #define to compile ignoring the RA without a public address.
This is set for BSD systems at present so that working systems such as Linux
work by default as designed.
Fixes [f44b3b4817].

10 years agoAdd a noup directive to stop master mode bringing an interface up.
Roy Marples [Mon, 13 Jul 2015 17:40:54 +0000 (17:40 +0000)] 
Add a noup directive to stop master mode bringing an interface up.
Fixes [96c6bf4e5f].

10 years agoMinor optimisation.
Roy Marples [Fri, 10 Jul 2015 08:43:59 +0000 (08:43 +0000)] 
Minor optimisation.

10 years agoOnly run the IPv4LL script on drop when actually dropping an IPv4LL address.
Roy Marples [Thu, 9 Jul 2015 13:51:26 +0000 (13:51 +0000)] 
Only run the IPv4LL script on drop when actually dropping an IPv4LL address.

10 years agoRelease dhcpcd-6.9.1 v6.9.1
Roy Marples [Thu, 9 Jul 2015 09:29:43 +0000 (09:29 +0000)] 
Release dhcpcd-6.9.1

10 years agoDocument many interface assignment from a delegated prefix.
Roy Marples [Thu, 9 Jul 2015 09:27:36 +0000 (09:27 +0000)] 
Document many interface assignment from a delegated prefix.

10 years agoRemove pointless comment.
Roy Marples [Sat, 4 Jul 2015 22:09:51 +0000 (22:09 +0000)] 
Remove pointless comment.

10 years agoRefer to the domain name encoding as RFC1035 rather than the RFC for the
Roy Marples [Sat, 4 Jul 2015 13:33:24 +0000 (13:33 +0000)] 
Refer to the domain name encoding as RFC1035 rather than the RFC for the
DHCP option which first required it.

10 years agoAllow static to work for pre-existing addresses without a config.
Roy Marples [Sat, 4 Jul 2015 12:33:22 +0000 (12:33 +0000)] 
Allow static to work for pre-existing addresses without a config.

10 years agoWhen sending to an address, ensure we have a socket.
Roy Marples [Sat, 4 Jul 2015 12:13:53 +0000 (12:13 +0000)] 
When sending to an address, ensure we have a socket.

10 years agoDHCPv6 elapsed time is centiseconds, not seconds.
Roy Marples [Fri, 3 Jul 2015 23:35:56 +0000 (23:35 +0000)] 
DHCPv6 elapsed time is centiseconds, not seconds.
Start the measurement from when the first message is actually sent rather
than when DHCPv6 started.

10 years agoFix DHCPv6 elapsed time.
Roy Marples [Fri, 3 Jul 2015 22:12:37 +0000 (22:12 +0000)] 
Fix DHCPv6 elapsed time.

10 years agoCompile on OpenBSD again.
Roy Marples [Fri, 3 Jul 2015 22:00:28 +0000 (22:00 +0000)] 
Compile on OpenBSD again.

10 years agoDescribe the persistent option better with regards to exit.
Roy Marples [Fri, 3 Jul 2015 20:46:10 +0000 (20:46 +0000)] 
Describe the persistent option better with regards to exit.

10 years agoRFC2132 notes that the Vendor Class identifier option is a string.
Roy Marples [Thu, 2 Jul 2015 16:29:38 +0000 (16:29 +0000)] 
RFC2132 notes that the Vendor Class identifier option is a string.

10 years agoUpdate comment about FQDN encoding
Roy Marples [Thu, 2 Jul 2015 15:58:29 +0000 (15:58 +0000)] 
Update comment about FQDN encoding

10 years agoUse constants defined in arpa/nameser.h rather than magic numbers.
Roy Marples [Thu, 2 Jul 2015 15:51:29 +0000 (15:51 +0000)] 
Use constants defined in arpa/nameser.h rather than magic numbers.

10 years agoNote that the FDQN has to support domain encoding rather than ASCII.
Roy Marples [Thu, 2 Jul 2015 15:33:01 +0000 (15:33 +0000)] 
Note that the FDQN has to support domain encoding rather than ASCII.

10 years agoDocument why we say some RFC1035 label types are not supported.
Roy Marples [Thu, 2 Jul 2015 15:32:30 +0000 (15:32 +0000)] 
Document why we say some RFC1035 label types are not supported.

10 years agoFix testing reporting the DHCP lease.
Roy Marples [Thu, 2 Jul 2015 13:04:15 +0000 (13:04 +0000)] 
Fix testing reporting the DHCP lease.

10 years agoIf we load a saved lease we are trying to rebind, set ciaddr correctly.
Roy Marples [Wed, 1 Jul 2015 19:36:32 +0000 (19:36 +0000)] 
If we load a saved lease we are trying to rebind, set ciaddr correctly.

10 years agoSend the IPv4LL interface to listeners.
Roy Marples [Mon, 29 Jun 2015 15:31:33 +0000 (15:31 +0000)] 
Send the IPv4LL interface to listeners.
Send the expired IP in the old_ prefix.

10 years agoClarify IPV4LL.
Roy Marples [Mon, 29 Jun 2015 15:06:21 +0000 (15:06 +0000)] 
Clarify IPV4LL.

10 years agoAdd an ipv4ll suffix just in case
Roy Marples [Mon, 29 Jun 2015 15:04:37 +0000 (15:04 +0000)] 
Add an ipv4ll suffix just in case

10 years agoAdd an option to keep arp state when deleting addresses, which is needed
Roy Marples [Mon, 29 Jun 2015 15:03:31 +0000 (15:03 +0000)] 
Add an option to keep arp state when deleting addresses, which is needed
for IPv4LL.
Call IPV4LL instead of EXPIRE when removing the IPV4LL address,
which is similar to how ROUTERADVERT works.

10 years agoSet interface is up when running IPV4LL scripts.
Roy Marples [Mon, 29 Jun 2015 13:09:57 +0000 (13:09 +0000)] 
Set interface is up when running IPV4LL scripts.

10 years agoReplace custom uptime() with clock_gettime(2) calls for more accurate
Roy Marples [Mon, 29 Jun 2015 12:39:44 +0000 (12:39 +0000)] 
Replace custom uptime() with clock_gettime(2) calls for more accurate
time handling.

10 years agoRemove pointless warning
Roy Marples [Sat, 27 Jun 2015 18:52:10 +0000 (18:52 +0000)] 
Remove pointless warning

10 years agoFix compile
Roy Marples [Fri, 26 Jun 2015 20:17:14 +0000 (20:17 +0000)] 
Fix compile