]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoRemove dead store.
Roy Marples [Wed, 2 Jul 2014 11:10:46 +0000 (11:10 +0000)] 
Remove dead store.

11 years agoMinor optimisation
Roy Marples [Wed, 2 Jul 2014 10:57:18 +0000 (10:57 +0000)] 
Minor optimisation

11 years agoNo point in delaying a static configuration
Roy Marples [Wed, 2 Jul 2014 10:51:31 +0000 (10:51 +0000)] 
No point in delaying a static configuration

11 years agoAdd a comment to describe why we deny the ability to assign prefixes
Roy Marples [Wed, 2 Jul 2014 08:23:28 +0000 (08:23 +0000)] 
Add a comment to describe why we deny the ability to assign prefixes
to the requesting interface [ac7063e671].

11 years agoSet addr to zero if unset.
Roy Marples [Tue, 1 Jul 2014 21:14:59 +0000 (21:14 +0000)] 
Set addr to zero if unset.

11 years agoFix link handling where kernel reported flags in LINK_UP may not be valid
Roy Marples [Tue, 1 Jul 2014 21:06:07 +0000 (21:06 +0000)] 
Fix link handling where kernel reported flags in LINK_UP may not be valid
when we actually process them.

11 years agoSupport http://datatracker.ietf.org/doc/draft-ietf-dhc-dhcpv6-stateful-issues.
Roy Marples [Tue, 1 Jul 2014 20:34:19 +0000 (20:34 +0000)] 
Support http://datatracker.ietf.org/doc/draft-ietf-dhc-dhcpv6-stateful-issues.
It's not an RFC yet, but it seems it's needed for Prefix Delegation to work
on ComCast where a IA_NA is required as well.

11 years agoStart the correct interface reference for added devices.
Roy Marples [Mon, 30 Jun 2014 15:55:28 +0000 (15:55 +0000)] 
Start the correct interface reference for added devices.

11 years agoImprove startup with regards to carrier checking and adding a link-local
Roy Marples [Mon, 30 Jun 2014 15:43:58 +0000 (15:43 +0000)] 
Improve startup with regards to carrier checking and adding a link-local
IPv6 address.

11 years agoDon't log errors about restoring RA for departed interfaces.
Roy Marples [Mon, 30 Jun 2014 12:08:00 +0000 (12:08 +0000)] 
Don't log errors about restoring RA for departed interfaces.

11 years agoAdd debugging messages for interface arrival/departure.
Roy Marples [Mon, 30 Jun 2014 11:28:14 +0000 (11:28 +0000)] 
Add debugging messages for interface arrival/departure.
Only init state and run preinit for new interfaces.

11 years agoFix compile issue.
Roy Marples [Mon, 30 Jun 2014 11:08:19 +0000 (11:08 +0000)] 
Fix compile issue.

11 years agoRevert [26bc10be24] as some compile can't output to /dev/null.
Roy Marples [Mon, 30 Jun 2014 09:44:07 +0000 (09:44 +0000)] 
Revert [26bc10be24] as some compile can't output to /dev/null.

11 years agoFix gcc unused value error
Roy Marples [Sun, 29 Jun 2014 02:58:19 +0000 (02:58 +0000)] 
Fix gcc unused value error

11 years agoAdd the ability to dump DHCPv6 leases.
Roy Marples [Sun, 22 Jun 2014 13:05:05 +0000 (13:05 +0000)] 
Add the ability to dump DHCPv6 leases.
Control DHCPv4 vs DHCPv6 dumping via the family option.

11 years agoSimplfy configure CC test. Thanks to Thomas De Schampheleire.
Roy Marples [Sun, 22 Jun 2014 10:06:53 +0000 (10:06 +0000)] 
Simplfy configure CC test. Thanks to Thomas De Schampheleire.

11 years agoTest that the CC command works and makes an exectuable rather
Roy Marples [Sat, 21 Jun 2014 15:46:31 +0000 (15:46 +0000)] 
Test that the CC command works and makes an exectuable rather
than using the type command.
Thanks to Thomas De Schampheleire.

11 years agoYou can't request a prefix length with for a normal address.
Roy Marples [Sat, 21 Jun 2014 12:45:55 +0000 (12:45 +0000)] 
You can't request a prefix length with for a normal address.
You can't request a specific temporary address.

11 years agoAllow the request of a DHCPv6 address or prefix, a prefix length must be specified.
Roy Marples [Sat, 21 Jun 2014 11:42:36 +0000 (11:42 +0000)] 
Allow the request of a DHCPv6 address or prefix, a prefix length must be specified.

11 years agoSkip arpping directives if we have a profile but not parsing one.
Roy Marples [Fri, 20 Jun 2014 22:32:44 +0000 (22:32 +0000)] 
Skip arpping directives if we have a profile but not parsing one.

11 years agoIf just given a domain and no search list, make the search list the domain.
Roy Marples [Wed, 18 Jun 2014 21:12:39 +0000 (21:12 +0000)] 
If just given a domain and no search list, make the search list the domain.
This allows correct formatting when building resolv.conf.

11 years agoFreeBSD doesn't like %R, go back to Li
Roy Marples [Mon, 16 Jun 2014 09:57:55 +0000 (09:57 +0000)] 
FreeBSD doesn't like %R, go back to Li

11 years agoFix import
Roy Marples [Sat, 14 Jun 2014 21:06:25 +0000 (21:06 +0000)] 
Fix import

11 years agoRelease dhcpcd-6.4.0 v6.4.0
Roy Marples [Sat, 14 Jun 2014 20:13:12 +0000 (20:13 +0000)] 
Release dhcpcd-6.4.0

11 years agoFix compile warning
Roy Marples [Sat, 7 Jun 2014 21:05:19 +0000 (21:05 +0000)] 
Fix compile warning

11 years agoFix a potential garbage jump
Roy Marples [Sat, 7 Jun 2014 21:02:29 +0000 (21:02 +0000)] 
Fix a potential garbage jump

11 years agoRemove old options no longer used
Roy Marples [Fri, 6 Jun 2014 20:15:33 +0000 (20:15 +0000)] 
Remove old options no longer used

11 years agoRestarting ntp/yp are not critical and their initialisation continues
Roy Marples [Fri, 6 Jun 2014 20:08:07 +0000 (20:08 +0000)] 
Restarting ntp/yp are not critical and their initialisation continues
in the background as well so we may as well background the restart commands
for faster dhcpcd performance.

11 years agoNo argument for gateway
Roy Marples [Fri, 6 Jun 2014 19:22:54 +0000 (19:22 +0000)] 
No argument for gateway

11 years agoAdd gateway option to enable the gateway or an interface/profile.
Roy Marples [Fri, 6 Jun 2014 19:19:29 +0000 (19:19 +0000)] 
Add gateway option to enable the gateway or an interface/profile.
Ensure the option and require options disable the nooption option - last wins.

11 years agoJust check for an revent, the handler will deal with it correctly.
Roy Marples [Fri, 6 Jun 2014 17:31:55 +0000 (17:31 +0000)] 
Just check for an revent, the handler will deal with it correctly.

11 years agoDefault to private stable addresses via dhcpcd.conf instead of the binary
Roy Marples [Thu, 5 Jun 2014 20:23:19 +0000 (20:23 +0000)] 
Default to private stable addresses via dhcpcd.conf instead of the binary
so that upgraders aren't adversely affected.

11 years agoAllow the use of libmd in static or /usr builds
Roy Marples [Thu, 5 Jun 2014 17:42:21 +0000 (17:42 +0000)] 
Allow the use of libmd in static or /usr builds

11 years agoNo need for this file
Roy Marples [Thu, 5 Jun 2014 14:24:21 +0000 (14:24 +0000)] 
No need for this file

11 years agoRemove test files
Roy Marples [Thu, 5 Jun 2014 14:21:27 +0000 (14:21 +0000)] 
Remove test files

11 years agoFix compile on FreeBSD
Roy Marples [Thu, 5 Jun 2014 14:16:33 +0000 (14:16 +0000)] 
Fix compile on FreeBSD

11 years agoFix be64enc test on NetBSD.
Roy Marples [Thu, 5 Jun 2014 13:56:16 +0000 (13:56 +0000)] 
Fix be64enc test on NetBSD.

11 years agoFix configure
Roy Marples [Thu, 5 Jun 2014 13:54:38 +0000 (13:54 +0000)] 
Fix configure

11 years agobe32enc is missing on OpenBSD, so provide a configure test.
Roy Marples [Thu, 5 Jun 2014 13:53:20 +0000 (13:53 +0000)] 
be32enc is missing on OpenBSD, so provide a configure test.
Fix compile on OpenBSD.

11 years agoEnsure we init before forking, but run the preinit scripts afterwards
Roy Marples [Thu, 5 Jun 2014 13:03:49 +0000 (13:03 +0000)] 
Ensure we init before forking, but run the preinit scripts afterwards

11 years agoIf we can turn off IPv6 auto link-addr in the kernel, lets do so
Roy Marples [Thu, 5 Jun 2014 12:33:18 +0000 (12:33 +0000)] 
If we can turn off IPv6 auto link-addr in the kernel, lets do so
to ensure we have the best chance of generating our private link-addr.

11 years agoEnsure OWN is set by SLAAC private before initing.
Roy Marples [Thu, 5 Jun 2014 11:38:04 +0000 (11:38 +0000)] 
Ensure OWN is set by SLAAC private before initing.
Add a link-local address before running any PREINIT script
as well as at start incase a 3rd party removed it.
Move kernel tweaks to RA to DEBUG messages.

11 years agoAdd an IPv6 link-local address before upping the interface if needed.
Roy Marples [Wed, 4 Jun 2014 23:54:15 +0000 (23:54 +0000)] 
Add an IPv6 link-local address before upping the interface if needed.
Bring an interface up when we start it and not during discovery.
As such, stop waiting on carrier for a second if we did.

11 years agoDon't set local-link addresses as no prefix route.
Roy Marples [Wed, 4 Jun 2014 23:34:39 +0000 (23:34 +0000)] 
Don't set local-link addresses as no prefix route.
Disable autoconf if we're owning IPv6.

11 years agoDefault SLAAC to use RFC7271 addresses.
Roy Marples [Wed, 4 Jun 2014 20:27:40 +0000 (20:27 +0000)] 
Default SLAAC to use RFC7271 addresses.
Create an IPv6 link-local address if non exists at startup using the
configured SLAAC method.

11 years agoClarify comments.
Roy Marples [Tue, 3 Jun 2014 21:20:49 +0000 (21:20 +0000)] 
Clarify comments.

11 years agoFix compile on Linux
Roy Marples [Tue, 3 Jun 2014 21:09:42 +0000 (21:09 +0000)] 
Fix compile on Linux

11 years agoCheck against reserved IPv6 addresses.
Roy Marples [Tue, 3 Jun 2014 20:52:42 +0000 (20:52 +0000)] 
Check against reserved IPv6 addresses.
Start using be*enc BSD functions and supply own if missing in common.h.

11 years agoWarn when SO_REUSEPORT fails instead of bailing to accomodate dodgy Linux headers.
Roy Marples [Tue, 3 Jun 2014 14:03:14 +0000 (14:03 +0000)] 
Warn when SO_REUSEPORT fails instead of bailing to accomodate dodgy Linux headers.

11 years agoOnly one place should decide how netiface and netid are formed
Roy Marples [Tue, 3 Jun 2014 12:49:48 +0000 (12:49 +0000)] 
Only one place should decide how netiface and netid are formed
for generating stable private addresses.
Ensure that dhcpcd.secret is readable only by dhcpcd.

11 years agoDon't export empty RA options
Roy Marples [Tue, 3 Jun 2014 09:32:01 +0000 (09:32 +0000)] 
Don't export empty RA options

11 years agoLog error condition if a new or changed Router Advertisment to avoid
Roy Marples [Mon, 2 Jun 2014 23:59:05 +0000 (23:59 +0000)] 
Log error condition if a new or changed Router Advertisment to avoid
spamming the log.

11 years agoRevert prior patch and just continue instead of logging more errors. Same effect.
Roy Marples [Mon, 2 Jun 2014 23:42:52 +0000 (23:42 +0000)] 
Revert prior patch and just continue instead of logging more errors. Same effect.

11 years agoLog each malloc failure because we log individual failures so we don't see
Roy Marples [Mon, 2 Jun 2014 23:30:50 +0000 (23:30 +0000)] 
Log each malloc failure because we log individual failures so we don't see
any Success error messages on an invalid condition.

11 years agoFix compile on Linux
Roy Marples [Mon, 2 Jun 2014 17:10:13 +0000 (17:10 +0000)] 
Fix compile on Linux

11 years agoUse SHA256Init on OpenBSD .... grrr
Roy Marples [Mon, 2 Jun 2014 16:31:37 +0000 (16:31 +0000)] 
Use SHA256Init on OpenBSD .... grrr

11 years agoFix compile on FreeBSD
Roy Marples [Mon, 2 Jun 2014 15:00:24 +0000 (15:00 +0000)] 
Fix compile on FreeBSD

11 years agoImplement Stable Private Addresses for SLAAC as per RFC7217.
Roy Marples [Mon, 2 Jun 2014 14:48:33 +0000 (14:48 +0000)] 
Implement Stable Private Addresses for SLAAC as per RFC7217.
Add a SHA256 implementation by Collin Percival if one in libc/libmd not found.

11 years agoWups, not ready for this code yet.
Roy Marples [Fri, 30 May 2014 22:08:30 +0000 (22:08 +0000)] 
Wups, not ready for this code yet.

11 years agoFix compiler warning
Roy Marples [Fri, 30 May 2014 22:03:50 +0000 (22:03 +0000)] 
Fix compiler warning

11 years agoFix configure error
Roy Marples [Fri, 30 May 2014 22:02:16 +0000 (22:02 +0000)] 
Fix configure error

11 years agoLoad config.{h,mk} when building tests. Fixes [1c11c59282].
Roy Marples [Fri, 30 May 2014 21:47:14 +0000 (21:47 +0000)] 
Load config.{h,mk} when building tests. Fixes [1c11c59282].

11 years ago-4 and -6 are now mutually exclusive and when running on a single interface
Roy Marples [Thu, 29 May 2014 12:52:27 +0000 (12:52 +0000)] 
-4 and -6 are now mutually exclusive and when running on a single interface
per protocol pidfiles are created.
This means that other control options suchs as -x and -n will require the
-4 or -6 option as well.

11 years agoCheck naming rules before calling dev_initialized.
Roy Marples [Thu, 29 May 2014 11:12:09 +0000 (11:12 +0000)] 
Check naming rules before calling dev_initialized.

11 years agoOnly process IPv6 neighbour messages from the link socket if we have inited
Roy Marples [Thu, 29 May 2014 06:43:54 +0000 (06:43 +0000)] 
Only process IPv6 neighbour messages from the link socket if we have inited
our internal IPv6 state.

11 years agoFix dev warning.
Roy Marples [Sat, 24 May 2014 20:11:42 +0000 (20:11 +0000)] 
Fix dev warning.

11 years agoShould use arc4random_uniform when wanting a randon number between
Roy Marples [Sat, 24 May 2014 19:58:50 +0000 (19:58 +0000)] 
Should use arc4random_uniform when wanting a randon number between
1 and N.
Improve the compat arc4random function a little and re-stir on fork.

11 years agoAdd a compat syslog function if the libc syslog does not support LOG_PERROR.
Roy Marples [Sat, 24 May 2014 13:08:29 +0000 (13:08 +0000)] 
Add a compat syslog function if the libc syslog does not support LOG_PERROR.
Add a non working if-sun.c stub.
Define IN6_IFF_TENTATIVE and friends to zero so IPv6 at least compiles on Solaris.
Warn that Solaris support presently does not work.

11 years agoSource now compiles on Solaris, just missing the if-sun.c support so
Roy Marples [Wed, 21 May 2014 23:07:52 +0000 (23:07 +0000)] 
Source now compiles on Solaris, just missing the if-sun.c support so
linking fails.

11 years agoSockets would be opened with PF_*, not AF_*.
Roy Marples [Tue, 20 May 2014 08:54:00 +0000 (08:54 +0000)] 
Sockets would be opened with PF_*, not AF_*.

11 years agoOnly remove the interface from DHCP consideration if the error
Roy Marples [Tue, 20 May 2014 08:36:12 +0000 (08:36 +0000)] 
Only remove the interface from DHCP consideration if the error
sending a packet is not a network error.

11 years agoIf a DHCPv6 lease expires as well as all IPv6 routers who want DHCPv6, don't restart...
Roy Marples [Mon, 19 May 2014 00:49:14 +0000 (00:49 +0000)] 
If a DHCPv6 lease expires as well as all IPv6 routers who want DHCPv6, don't restart discover.

11 years agoAlthough dhcpcd now works fine with non blocking sockets, we never ever want to block...
Roy Marples [Mon, 19 May 2014 00:32:04 +0000 (00:32 +0000)] 
Although dhcpcd now works fine with non blocking sockets, we never ever want to block either.
So restore the the NON blocking flags.

11 years agoOnly remove the interface from the list once all callouts have been
Roy Marples [Fri, 16 May 2014 15:03:28 +0000 (15:03 +0000)] 
Only remove the interface from the list once all callouts have been
completed.

11 years agoDon't set probe state here.
Roy Marples [Fri, 16 May 2014 15:02:58 +0000 (15:02 +0000)] 
Don't set probe state here.

11 years agoOnly send interfaces which have a reason.
Roy Marples [Thu, 15 May 2014 12:02:03 +0000 (12:02 +0000)] 
Only send interfaces which have a reason.

11 years agocontrolgroup option changes group ownership of the control socket.
Roy Marples [Fri, 9 May 2014 12:09:05 +0000 (12:09 +0000)] 
controlgroup option changes group ownership of the control socket.

11 years agoEnsure that ND6_IFF_PERFORMNUD is set.
Roy Marples [Thu, 8 May 2014 23:55:33 +0000 (23:55 +0000)] 
Ensure that ND6_IFF_PERFORMNUD is set.

11 years agoFix compile issue
Roy Marples [Thu, 8 May 2014 23:38:15 +0000 (23:38 +0000)] 
Fix compile issue

11 years agoSupport RTM_GETNEIGH on Linux as well as the polling for NUD changes on BSD.
Roy Marples [Thu, 8 May 2014 23:35:30 +0000 (23:35 +0000)] 
Support RTM_GETNEIGH on Linux as well as the polling for NUD changes on BSD.
Fixes [bb6153d18b].

11 years agoPoll kernel neighbour reachability (SIOCGNBRINFO_IN6) for each router
Roy Marples [Wed, 7 May 2014 13:31:32 +0000 (13:31 +0000)] 
Poll kernel neighbour reachability (SIOCGNBRINFO_IN6) for each router
instead of sending and listening for Neighbour Soliciation/Advertisement
packets. The kernel is privy to a lot more reachability information than
userland is.
Fixes [bb6153d18b].

11 years agoRun NOCARRIER before dropping protocols.
Roy Marples [Wed, 7 May 2014 09:22:26 +0000 (09:22 +0000)] 
Run NOCARRIER before dropping protocols.

11 years agoThese are not DHCP states.
Roy Marples [Tue, 6 May 2014 18:15:52 +0000 (18:15 +0000)] 
These are not DHCP states.

11 years agoAdd the interface to our list before initing state.
Roy Marples [Tue, 6 May 2014 18:14:43 +0000 (18:14 +0000)] 
Add the interface to our list before initing state.

11 years agoAlways send a carrier as it's no longer encapsulated in the IPv4 stack.
Roy Marples [Tue, 6 May 2014 14:42:24 +0000 (14:42 +0000)] 
Always send a carrier as it's no longer encapsulated in the IPv4 stack.
When stopping and not departed, run with the STOPPED reason but do
not process it in hooks.

11 years agoWhen dropping, move the new config onto the old before running the script.
Roy Marples [Tue, 6 May 2014 14:39:31 +0000 (14:39 +0000)] 
When dropping, move the new config onto the old before running the script.

11 years agoWhen rebooting, directly call send_request to preserve state.
Roy Marples [Tue, 6 May 2014 12:42:39 +0000 (12:42 +0000)] 
When rebooting, directly call send_request to preserve state.

11 years agoFix sending DHCPv6
Roy Marples [Mon, 5 May 2014 21:21:31 +0000 (21:21 +0000)] 
Fix sending DHCPv6

11 years agoFix new dhcp environment options
Roy Marples [Mon, 5 May 2014 20:18:14 +0000 (20:18 +0000)] 
Fix new dhcp environment options

11 years agoFix writing interfaces to control socket.
Roy Marples [Sun, 4 May 2014 22:48:43 +0000 (22:48 +0000)] 
Fix writing interfaces to control socket.

11 years agoFix compile.
Roy Marples [Sat, 3 May 2014 21:18:20 +0000 (21:18 +0000)] 
Fix compile.

11 years agoRFC2131 section 4.4.1 states the client SHOULD wait a random time between
Roy Marples [Sat, 3 May 2014 19:56:15 +0000 (19:56 +0000)] 
RFC2131 section 4.4.1 states the client SHOULD wait a random time between
one and ten seconds to desynchronize the use of DHCP at startup.
Instead we wait a random time between zero and one second to mirror
the more modern IPv6RS and DHCPv6 standards unless overridden by
defining RFC2131_STRICT.

11 years agoRespect RFC4861 MAX_RTR_SOLICITATION_DELAY as specified in section 6.3.7.
Roy Marples [Sat, 3 May 2014 19:53:22 +0000 (19:53 +0000)] 
Respect RFC4861 MAX_RTR_SOLICITATION_DELAY as specified in section 6.3.7.

11 years agoCheck secondaries value before writing it as /proc could be read-only.
Roy Marples [Sat, 3 May 2014 10:17:48 +0000 (10:17 +0000)] 
Check secondaries value before writing it as /proc could be read-only.

11 years agoRemove accidental commit.
Roy Marples [Sat, 3 May 2014 00:12:19 +0000 (00:12 +0000)] 
Remove accidental commit.

11 years agoMinor optimisation
Roy Marples [Sat, 3 May 2014 00:11:15 +0000 (00:11 +0000)] 
Minor optimisation

11 years agoPut POLLHUP back
Roy Marples [Sat, 3 May 2014 00:08:12 +0000 (00:08 +0000)] 
Put POLLHUP back

11 years agoSet EOF correctly
Roy Marples [Sat, 3 May 2014 00:02:14 +0000 (00:02 +0000)] 
Set EOF correctly

11 years agoChange the readrawsocket API a little so that we know when EOF is reached.
Roy Marples [Fri, 2 May 2014 23:54:29 +0000 (23:54 +0000)] 
Change the readrawsocket API a little so that we know when EOF is reached.
This allows us to remove the non blocking option from our sockets due to the way BPF works.

11 years agoLog any errors sending the interface afer a getinterfaces call.
Roy Marples [Fri, 2 May 2014 20:57:21 +0000 (20:57 +0000)] 
Log any errors sending the interface afer a getinterfaces call.