]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoTypos
Roy Marples [Mon, 14 Jul 2014 15:43:00 +0000 (15:43 +0000)] 
Typos

11 years agoFix import v6.4.2
Roy Marples [Mon, 14 Jul 2014 13:58:24 +0000 (13:58 +0000)] 
Fix import

11 years agoRelease dhcpcd-6.4.2
Roy Marples [Mon, 14 Jul 2014 13:43:33 +0000 (13:43 +0000)] 
Release dhcpcd-6.4.2

11 years agoFix gcc build errors.
Roy Marples [Mon, 14 Jul 2014 12:55:19 +0000 (12:55 +0000)] 
Fix gcc build errors.

11 years agoRelease dhcpcd-6.4.1 v6.4.1
Roy Marples [Mon, 14 Jul 2014 11:30:15 +0000 (11:30 +0000)] 
Release dhcpcd-6.4.1

11 years agoUse __NetBSD_Version__ macro instead of __NetBSD_Prereq__
Roy Marples [Sun, 13 Jul 2014 22:01:01 +0000 (22:01 +0000)] 
Use __NetBSD_Version__ macro instead of __NetBSD_Prereq__

11 years agoReduce use of s6_addr
Roy Marples [Fri, 11 Jul 2014 13:24:29 +0000 (13:24 +0000)] 
Reduce use of s6_addr

11 years agoUse structures to better bescribe IA and PD options.
Roy Marples [Fri, 11 Jul 2014 10:13:52 +0000 (10:13 +0000)] 
Use structures to better bescribe IA and PD options.

11 years agoEnsure we have enough data for prefix exclude length in the option.
Roy Marples [Wed, 9 Jul 2014 10:51:20 +0000 (10:51 +0000)] 
Ensure we have enough data for prefix exclude length in the option.
We don't request the excluded prefix itself, just what it is.
Ensure the excluded prefix is not applied to downstream interfaces.
Hopefully fixes [ac7063e671].

11 years agoOnly create a pseudo interface for PD when we have other IA types as well.
Roy Marples [Wed, 9 Jul 2014 04:41:23 +0000 (04:41 +0000)] 
Only create a pseudo interface for PD when we have other IA types as well.

11 years agoEnsure iaid was previously set before testing equality.
Roy Marples [Wed, 9 Jul 2014 04:40:53 +0000 (04:40 +0000)] 
Ensure iaid was previously set before testing equality.

11 years agoPseudo interfaces also have an address list, do loop through all of them.
Roy Marples [Tue, 8 Jul 2014 19:29:45 +0000 (19:29 +0000)] 
Pseudo interfaces also have an address list, do loop through all of them.
Describe reject routes better.

11 years agoFix delegated prefix handling and improve DAD checking.
Roy Marples [Tue, 8 Jul 2014 19:28:52 +0000 (19:28 +0000)] 
Fix delegated prefix handling and improve DAD checking.

11 years agoifclass= separates psuedo interfaces to avoid option collision.
Roy Marples [Tue, 8 Jul 2014 19:25:21 +0000 (19:25 +0000)] 
ifclass= separates psuedo interfaces to avoid option collision.

11 years agoTypo
Roy Marples [Tue, 8 Jul 2014 08:41:08 +0000 (08:41 +0000)] 
Typo

11 years agoHandle truncated saved leases.
Roy Marples [Tue, 8 Jul 2014 07:56:39 +0000 (07:56 +0000)] 
Handle truncated saved leases.
Fixes [7704dc4ae0]

11 years agoFix a null reference
Roy Marples [Mon, 7 Jul 2014 18:10:18 +0000 (18:10 +0000)] 
Fix a null reference

11 years agoRemove forced error
Roy Marples [Mon, 7 Jul 2014 17:45:36 +0000 (17:45 +0000)] 
Remove forced error

11 years agoDon't report DUID or IAID or the pseudo interface.
Roy Marples [Mon, 7 Jul 2014 17:23:16 +0000 (17:23 +0000)] 
Don't report DUID or IAID or the pseudo interface.

11 years agoFix some memory error with prior patch.
Roy Marples [Mon, 7 Jul 2014 16:42:30 +0000 (16:42 +0000)] 
Fix some memory error with prior patch.

11 years agoTypo
Roy Marples [Mon, 7 Jul 2014 14:44:06 +0000 (14:44 +0000)] 
Typo

11 years agoWhen requesting a IA_PD and another IA type, create a psuedo interface
Roy Marples [Mon, 7 Jul 2014 14:41:18 +0000 (14:41 +0000)] 
When requesting a IA_PD and another IA type, create a psuedo interface
to handle the IA_PD.
ia_pd_mix config option disables this and mixes IA_PD in the single session as
per draft-ietf-dhc-dhcpv6-stateful-issues-06.

11 years agoThere are no pd's in the config if we're not dealing with them.
Roy Marples [Mon, 7 Jul 2014 10:01:24 +0000 (10:01 +0000)] 
There are no pd's in the config if we're not dealing with them.

11 years agoFix const
Roy Marples [Mon, 7 Jul 2014 09:36:17 +0000 (09:36 +0000)] 
Fix const

11 years agoFix Prefix Exclude encoding/decoding.
Roy Marples [Mon, 7 Jul 2014 09:21:35 +0000 (09:21 +0000)] 
Fix Prefix Exclude encoding/decoding.

11 years agoWe should use NBBY rather than a magic 8.
Roy Marples [Sat, 5 Jul 2014 19:47:22 +0000 (19:47 +0000)] 
We should use NBBY rather than a magic 8.

11 years agoFix fallback test
Roy Marples [Sat, 5 Jul 2014 15:40:01 +0000 (15:40 +0000)] 
Fix fallback test

11 years agoRemove dead store.
Roy Marples [Fri, 4 Jul 2014 20:46:24 +0000 (20:46 +0000)] 
Remove dead store.

11 years agoSpecify the Prefix Exclude option.
Roy Marples [Fri, 4 Jul 2014 20:20:48 +0000 (20:20 +0000)] 
Specify the Prefix Exclude option.

11 years agoSupport RFC6603 to fix [ac7063e671].
Roy Marples [Fri, 4 Jul 2014 19:44:15 +0000 (19:44 +0000)] 
Support RFC6603 to fix [ac7063e671].

11 years agoAdd --pfxdlgonly and --nopfxdlg options to spawn separate dhcpcd instances
Roy Marples [Fri, 4 Jul 2014 11:53:56 +0000 (11:53 +0000)] 
Add --pfxdlgonly and --nopfxdlg options to spawn separate dhcpcd instances
to allow for RFC conformance when you need to configure a Prefix Delegation
and a Normal Address for DHCPv6 on the same interface.

11 years agoPrint user defined options via -V
Roy Marples [Thu, 3 Jul 2014 23:11:00 +0000 (23:11 +0000)] 
Print user defined options via -V

11 years agoAccept \n as end of command on the control interface.
Roy Marples [Thu, 3 Jul 2014 14:23:32 +0000 (14:23 +0000)] 
Accept \n as end of command on the control interface.

11 years agoFix a potential segfault when reloading configurations.
Roy Marples [Thu, 3 Jul 2014 10:07:35 +0000 (10:07 +0000)] 
Fix a potential segfault when reloading configurations.
Thanks to Eelco Dolstra for the patch.

11 years agoFix dumping DHCPv6 leases. This broke when we ignored IAIDs we didn't ask for.
Roy Marples [Thu, 3 Jul 2014 09:47:42 +0000 (09:47 +0000)] 
Fix dumping DHCPv6 leases. This broke when we ignored IAIDs we didn't ask for.

11 years agoFix defining new options in dhcpcd.conf and requesting them.
Roy Marples [Wed, 2 Jul 2014 18:59:19 +0000 (18:59 +0000)] 
Fix defining new options in dhcpcd.conf and requesting them.

11 years agoFix compile.
Roy Marples [Wed, 2 Jul 2014 13:24:55 +0000 (13:24 +0000)] 
Fix compile.

11 years agoStop restoring kernel flags to their state before dhcpcd ran.
Roy Marples [Wed, 2 Jul 2014 13:15:18 +0000 (13:15 +0000)] 
Stop restoring kernel flags to their state before dhcpcd ran.
As multiple dhcpcd daemons could be in use to facilitate separate sessions
per DHCPv6 IA resetting them at exist could break the others.

11 years agoRef RFC7217
Roy Marples [Wed, 2 Jul 2014 12:57:50 +0000 (12:57 +0000)] 
Ref RFC7217

11 years agoFix some more compiler errors
Roy Marples [Wed, 2 Jul 2014 11:42:08 +0000 (11:42 +0000)] 
Fix some more compiler errors

11 years agoFix a compile error
Roy Marples [Wed, 2 Jul 2014 11:20:04 +0000 (11:20 +0000)] 
Fix a compile error

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.