]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
10 years agosolicitation spelling as pointed out by Russell Bell.
Roy Marples [Mon, 20 Oct 2014 09:38:34 +0000 (09:38 +0000)] 
solicitation spelling as pointed out by Russell Bell.

10 years agoApply documentation patch from Christos and re-release. v6.5.1
Roy Marples [Fri, 17 Oct 2014 21:23:01 +0000 (21:23 +0000)] 
Apply documentation patch from Christos and re-release.

10 years agoRelease dhcpcd-6.5.1
Roy Marples [Fri, 17 Oct 2014 21:08:26 +0000 (21:08 +0000)] 
Release dhcpcd-6.5.1

10 years agoDelay IPv4LL by a potential DHCP delay as well.
Roy Marples [Fri, 17 Oct 2014 20:56:21 +0000 (20:56 +0000)] 
Delay IPv4LL by a potential DHCP delay as well.

10 years agoFix the case where we lose carrier between IPv4 delay and starting a new
Roy Marples [Fri, 17 Oct 2014 19:45:25 +0000 (19:45 +0000)] 
Fix the case where we lose carrier between IPv4 delay and starting a new
state.

10 years agoDon't error about deleting addresses on departed interfaces.
Roy Marples [Fri, 17 Oct 2014 19:37:14 +0000 (19:37 +0000)] 
Don't error about deleting addresses on departed interfaces.

10 years agoFix deleting from the wrong interface.
Roy Marples [Fri, 17 Oct 2014 19:36:51 +0000 (19:36 +0000)] 
Fix deleting from the wrong interface.

10 years agoFix some valgrind errors.
Roy Marples [Fri, 17 Oct 2014 19:36:24 +0000 (19:36 +0000)] 
Fix some valgrind errors.

10 years agoOnly open the IP UDP port if we have added the address
Roy Marples [Fri, 17 Oct 2014 16:44:55 +0000 (16:44 +0000)] 
Only open the IP UDP port if we have added the address

10 years agoMove ARP eloop queue to DHCP.
Roy Marples [Fri, 17 Oct 2014 14:05:30 +0000 (14:05 +0000)] 
Move ARP eloop queue to DHCP.

10 years agoStart DHCPv6 when we already have a delegated state.
Roy Marples [Fri, 17 Oct 2014 13:47:05 +0000 (13:47 +0000)] 
Start DHCPv6 when we already have a delegated state.
Allow transition from INFORM to DHCPv6 stateful.

10 years agoAlways find delegates regardless of IPv6RS.
Roy Marples [Fri, 17 Oct 2014 13:46:19 +0000 (13:46 +0000)] 
Always find delegates regardless of IPv6RS.

10 years agoClear the our DAD flag when deleting an address.
Roy Marples [Fri, 17 Oct 2014 13:44:16 +0000 (13:44 +0000)] 
Clear the our DAD flag when deleting an address.

10 years agoHandle callouts to delegated addresses better.
Roy Marples [Fri, 17 Oct 2014 12:37:44 +0000 (12:37 +0000)] 
Handle callouts to delegated addresses better.

10 years agoPlace IPv4LL into the same queue as DHCP.
Roy Marples [Fri, 17 Oct 2014 10:35:57 +0000 (10:35 +0000)] 
Place IPv4LL into the same queue as DHCP.

10 years agoHandle psuedo interfaces better when preferring addresses.
Roy Marples [Thu, 16 Oct 2014 08:30:25 +0000 (08:30 +0000)] 
Handle psuedo interfaces better when preferring addresses.

10 years agoFix a dead assignment
Roy Marples [Thu, 16 Oct 2014 08:29:29 +0000 (08:29 +0000)] 
Fix a dead assignment

10 years agoFix invalid deletion from pseudo interfaces.
Roy Marples [Wed, 15 Oct 2014 19:05:17 +0000 (19:05 +0000)] 
Fix invalid deletion from pseudo interfaces.

10 years agoFix a memory error.
Roy Marples [Wed, 15 Oct 2014 18:25:59 +0000 (18:25 +0000)] 
Fix a memory error.

10 years agoEnsure we pass the delegated reason if we need to.
Roy Marples [Wed, 15 Oct 2014 18:09:25 +0000 (18:09 +0000)] 
Ensure we pass the delegated reason if we need to.

10 years agoCopy files correctly, fixes [bb001cca8d].
Roy Marples [Wed, 15 Oct 2014 16:09:27 +0000 (16:09 +0000)] 
Copy files correctly, fixes [bb001cca8d].

10 years agoCast away warning.
Roy Marples [Wed, 15 Oct 2014 16:02:05 +0000 (16:02 +0000)] 
Cast away warning.

10 years agoWork better with unknown prefix length requirements in the configuration.
Roy Marples [Wed, 15 Oct 2014 14:23:53 +0000 (14:23 +0000)] 
Work better with unknown prefix length requirements in the configuration.

10 years agoWhen receiving a RA, mark all addresses as stale. For each address
Roy Marples [Tue, 14 Oct 2014 23:42:14 +0000 (23:42 +0000)] 
When receiving a RA, mark all addresses as stale. For each address
created in the RA, remove the stale marking.
Addresses marked stale won't be re-added so will naturally expire.

10 years agoExport RA addresses in raN_addr, and the prefix in raN_prefix.
Roy Marples [Tue, 14 Oct 2014 20:06:45 +0000 (20:06 +0000)] 
Export RA addresses in raN_addr, and the prefix in raN_prefix.

10 years agoDescribe better the BSD IPv6 issue.
Roy Marples [Tue, 14 Oct 2014 11:55:29 +0000 (11:55 +0000)] 
Describe better the BSD IPv6 issue.

10 years agoRemove the IPv6 address poll warning from running dhcpcd,
Roy Marples [Tue, 14 Oct 2014 11:30:52 +0000 (11:30 +0000)] 
Remove the IPv6 address poll warning from running dhcpcd,
just keep it as a compile warning.

10 years agoFix compile on FreeBSD
Roy Marples [Tue, 14 Oct 2014 11:29:50 +0000 (11:29 +0000)] 
Fix compile on FreeBSD

10 years agoTreat ND6_LLINFO_NOSTATE as reachable as this is commonly hit when
Roy Marples [Mon, 13 Oct 2014 13:28:22 +0000 (13:28 +0000)] 
Treat ND6_LLINFO_NOSTATE as reachable as this is commonly hit when
first adding a route. From ND6_LLINFO_NOSTATE the kernel should update it
promptly to something more appropriate such as ND6_LLINFO_INCOMPLETE.

10 years agoRespect nodhcp6 earlier.
Roy Marples [Sun, 12 Oct 2014 19:58:46 +0000 (19:58 +0000)] 
Respect nodhcp6 earlier.

10 years agoFor the time being, linkaddr is FreeBSD only.
Roy Marples [Sat, 11 Oct 2014 00:44:59 +0000 (00:44 +0000)] 
For the time being, linkaddr is FreeBSD only.

10 years agoWork on OpenBSD sh, unset seems to add misc crap.
Roy Marples [Sat, 11 Oct 2014 00:44:20 +0000 (00:44 +0000)] 
Work on OpenBSD sh, unset seems to add misc crap.

10 years agoImprove FreeBSD support by using the actual AF_LINK address.
Roy Marples [Fri, 10 Oct 2014 20:35:13 +0000 (20:35 +0000)] 
Improve FreeBSD support by using the actual AF_LINK address.

10 years agoWrite the lease when bound, not when address applied.
Roy Marples [Fri, 10 Oct 2014 09:40:57 +0000 (09:40 +0000)] 
Write the lease when bound, not when address applied.
ARP check again when moving the same IP to a new interface.
More iface -> ifp changes.

10 years agoNow ARP checks all interfaces for false positives, we can check ARP again.
Roy Marples [Fri, 10 Oct 2014 09:13:32 +0000 (09:13 +0000)] 
Now ARP checks all interfaces for false positives, we can check ARP again.

10 years agoDiscard duplicate ARP messages from other interfaces with the same address on this...
Roy Marples [Fri, 10 Oct 2014 08:49:49 +0000 (08:49 +0000)] 
Discard duplicate ARP messages from other interfaces with the same address on this host.

10 years agoDon't allow bridge, ppp or ptp by default unless specified, also applies
Roy Marples [Fri, 10 Oct 2014 08:31:05 +0000 (08:31 +0000)] 
Don't allow bridge, ppp or ptp by default unless specified, also applies
to hotplugged interfaces.

10 years agoDon't wait for DAD to complete for addresses we have not added.
Roy Marples [Thu, 9 Oct 2014 20:14:15 +0000 (20:14 +0000)] 
Don't wait for DAD to complete for addresses we have not added.

10 years agoFix exporting ra values with multiple interfaces
Roy Marples [Thu, 9 Oct 2014 20:09:51 +0000 (20:09 +0000)] 
Fix exporting ra values with multiple interfaces

10 years agoFix IP sharing on Linux
Roy Marples [Thu, 9 Oct 2014 19:32:30 +0000 (19:32 +0000)] 
Fix IP sharing on Linux

10 years agoAllow the same IP address to be leased for different interfaces.
Roy Marples [Thu, 9 Oct 2014 18:59:30 +0000 (18:59 +0000)] 
Allow the same IP address to be leased for different interfaces.
The interface with the lowest metric gets the address.
When that interfaces loses the address, the next valid interface with the
lowest metric gets it.

10 years agoEnsure we have IPv6 allocated before processing a kernel deleted IPv6 route.
Roy Marples [Thu, 9 Oct 2014 10:18:23 +0000 (10:18 +0000)] 
Ensure we have IPv6 allocated before processing a kernel deleted IPv6 route.

10 years agoFix define, duh
Roy Marples [Wed, 8 Oct 2014 19:18:56 +0000 (19:18 +0000)] 
Fix define, duh

10 years agoRe-introduce our loop to poll interface flags when the interface does
Roy Marples [Wed, 8 Oct 2014 12:30:27 +0000 (12:30 +0000)] 
Re-introduce our loop to poll interface flags when the interface does
not support link states, but this time ensure we don't call IFF_UP inside
the loop. This now works nicely with PPP interfaces on NetBSD at least.

10 years agoPass the exiting flag to the pseudo interface so it can persist correctly.
Roy Marples [Wed, 8 Oct 2014 12:25:15 +0000 (12:25 +0000)] 
Pass the exiting flag to the pseudo interface so it can persist correctly.

10 years agoExplicity test for LINK_UP so we don't delegate to downed PPP interfaces.
Roy Marples [Wed, 8 Oct 2014 11:53:27 +0000 (11:53 +0000)] 
Explicity test for LINK_UP so we don't delegate to downed PPP interfaces.

10 years agoDon't work on bridge interfaces unless explicitly asked to.
Roy Marples [Wed, 8 Oct 2014 11:51:34 +0000 (11:51 +0000)] 
Don't work on bridge interfaces unless explicitly asked to.

10 years agoUse RTF_PINNED if available.
Roy Marples [Tue, 7 Oct 2014 12:27:46 +0000 (12:27 +0000)] 
Use RTF_PINNED if available.
Allows us to delete in-use subnet routes on FreeBSD.

10 years agoRelease dhcpcd-6.5.0 v6.5.0
Roy Marples [Mon, 6 Oct 2014 18:00:25 +0000 (18:00 +0000)] 
Release dhcpcd-6.5.0

10 years agoThis is no longer true.
Roy Marples [Mon, 6 Oct 2014 14:28:59 +0000 (14:28 +0000)] 
This is no longer true.

10 years agoCallout to handlecarrier when we don't have real carrier support
Roy Marples [Mon, 6 Oct 2014 12:34:59 +0000 (12:34 +0000)] 
Callout to handlecarrier when we don't have real carrier support
and rely on looking at IFF_UP and IFF_RUNNING.
This allows our hooks to know that dhcpcd thinks we have a carrier or not.

10 years agoCorrect wording
Roy Marples [Mon, 6 Oct 2014 12:15:43 +0000 (12:15 +0000)] 
Correct wording

10 years agoFix compile on Linux
Roy Marples [Mon, 6 Oct 2014 08:31:57 +0000 (08:31 +0000)] 
Fix compile on Linux

10 years agoOpenBSD dropped IPV6CTL_ACCEPT_RTADV but kept the define.
Roy Marples [Sun, 5 Oct 2014 20:55:39 +0000 (20:55 +0000)] 
OpenBSD dropped IPV6CTL_ACCEPT_RTADV but kept the define.
They also added IFXF_NOINET6 and IFXF_AUTOCONF6 which dhcpcd now disables
when it needs to so dhcpcd works with IPv6 on OpenBSD-5.6 again.

10 years agoAdjust link-local scope for KAME based stacks in all needed places.
Roy Marples [Sun, 5 Oct 2014 11:03:07 +0000 (11:03 +0000)] 
Adjust link-local scope for KAME based stacks in all needed places.

10 years agoFix compile on BSD.
Roy Marples [Sat, 4 Oct 2014 10:19:00 +0000 (10:19 +0000)] 
Fix compile on BSD.

10 years agoImprove the dev API a little.
Roy Marples [Sat, 4 Oct 2014 08:26:15 +0000 (08:26 +0000)] 
Improve the dev API a little.

10 years agoFree control memory on fork
Roy Marples [Sat, 4 Oct 2014 08:22:09 +0000 (08:22 +0000)] 
Free control memory on fork

10 years agoWrong month, duh.
Roy Marples [Fri, 3 Oct 2014 18:29:08 +0000 (18:29 +0000)] 
Wrong month, duh.

10 years agoRename dhcp6_prefix to delegated_dhcp6_prefix incase a user makes a
Roy Marples [Fri, 3 Oct 2014 17:54:06 +0000 (17:54 +0000)] 
Rename dhcp6_prefix to delegated_dhcp6_prefix incase a user makes a
DHCPv6 option just called prefix.
Send delegated interfaces to listeners as well.

10 years agoFix IPv6 address announcements from kernel generated link-local addresses.
Roy Marples [Fri, 3 Oct 2014 14:43:35 +0000 (14:43 +0000)] 
Fix IPv6 address announcements from kernel generated link-local addresses.

10 years agodhcpcd has been able to handle IPv6 routing on BSD for a while now.
Roy Marples [Fri, 3 Oct 2014 11:07:41 +0000 (11:07 +0000)] 
dhcpcd has been able to handle IPv6 routing on BSD for a while now.

10 years agoFix a segfault.
Roy Marples [Thu, 2 Oct 2014 15:20:07 +0000 (15:20 +0000)] 
Fix a segfault.

10 years agoReally fix double fork.
Roy Marples [Thu, 2 Oct 2014 13:38:18 +0000 (13:38 +0000)] 
Really fix double fork.

10 years agoFix double fork.
Roy Marples [Thu, 2 Oct 2014 13:24:22 +0000 (13:24 +0000)] 
Fix double fork.

10 years agoThe decode and print functions should not including the trailing NUL
Roy Marples [Thu, 2 Oct 2014 13:21:29 +0000 (13:21 +0000)] 
The decode and print functions should not including the trailing NUL
in their return values to match other functions.

10 years agoDon't drop delegated reject route when forking.
Roy Marples [Thu, 2 Oct 2014 11:07:00 +0000 (11:07 +0000)] 
Don't drop delegated reject route when forking.

10 years agoDon't daemonise on delegated address dad.
Roy Marples [Thu, 2 Oct 2014 10:54:02 +0000 (10:54 +0000)] 
Don't daemonise on delegated address dad.

10 years agoFix some errors
Roy Marples [Thu, 2 Oct 2014 10:51:32 +0000 (10:51 +0000)] 
Fix some errors

10 years agoRemove strcpy as it's "dangerous".
Roy Marples [Thu, 2 Oct 2014 10:07:59 +0000 (10:07 +0000)] 
Remove strcpy as it's "dangerous".
Can't use stpcpy for the same reason even though it's perfect for the job.

10 years agoMention the encoding in -V
Roy Marples [Thu, 2 Oct 2014 08:35:31 +0000 (08:35 +0000)] 
Mention the encoding in -V

10 years agoRemove vis based encoding - instead expand the DHCP option encoding to a
Roy Marples [Wed, 1 Oct 2014 18:32:03 +0000 (18:32 +0000)] 
Remove vis based encoding - instead expand the DHCP option encoding to a
natural string based on content except as noted:
  *  domain (RFC3397)/dname (string) is strict domain name allowance
     (ie, [alnum] with _- (but not at the start or end))
  *  string is now printable ascii (1-127) until invalid
  *  ascii is all ascii (1-127) until invalid
  *  raw is all chars (1-255) until NUL
  *  binhex is a hex representation of the option including embedded NULs
  *  ssid is still escpaed octal because it's expected to be human readable
     AND can technically be all NUL
  *  everything else has strict option -> value encoding

This removes all shell escaped encoding - dhcpcd will assume that IF the
--script option is a shell, it will quote variables correctly.
The stock dhcpcd-run-hooks does.

dhcpcd -V now prints how the variables will be decoded.

Changed some options in dhcpcd-definitions.conf to more sensible defaults.

10 years agoDocument the possible use of eval.
Roy Marples [Tue, 30 Sep 2014 14:01:22 +0000 (14:01 +0000)] 
Document the possible use of eval.

10 years agoDocument more shell escaped characters, how to strip the shell escaped
Roy Marples [Tue, 30 Sep 2014 12:43:13 +0000 (12:43 +0000)] 
Document more shell escaped characters, how to strip the shell escaped
characters only and how to decode the binary strings.

10 years agoRemove dead increament.
Roy Marples [Mon, 29 Sep 2014 18:35:46 +0000 (18:35 +0000)] 
Remove dead increament.

10 years agoRemove the fast loop trying to up an interface which does not report
Roy Marples [Mon, 29 Sep 2014 18:32:15 +0000 (18:32 +0000)] 
Remove the fast loop trying to up an interface which does not report
carrier.

10 years agoFix bounds check.
Roy Marples [Mon, 29 Sep 2014 13:24:09 +0000 (13:24 +0000)] 
Fix bounds check.

10 years agoDon't use a magic number for print_string flags.
Roy Marples [Mon, 29 Sep 2014 09:03:12 +0000 (09:03 +0000)] 
Don't use a magic number for print_string flags.
Export if_ssid= for non carrier reasons.

10 years agoFix compile
Roy Marples [Sun, 28 Sep 2014 21:04:23 +0000 (21:04 +0000)] 
Fix compile

10 years agoBe more safe, escape * ? [ # ? = % as well.
Roy Marples [Sun, 28 Sep 2014 20:50:43 +0000 (20:50 +0000)] 
Be more safe, escape * ? [ # ? = % as well.

10 years agoFix an unaligned access error on BeagleBone Black with FreeBSD.
Roy Marples [Sun, 28 Sep 2014 20:34:44 +0000 (20:34 +0000)] 
Fix an unaligned access error on BeagleBone Black with FreeBSD.
Thanks to Guy Yur for the patch.

10 years agoSome strings don't need to be shell escaped - for example when sending to
Roy Marples [Sun, 28 Sep 2014 20:26:49 +0000 (20:26 +0000)] 
Some strings don't need to be shell escaped - for example when sending to
syslog(2), so just use vis(3).

10 years agoReference dhcpcd-code(8) as well as unvis(1).
Roy Marples [Sun, 28 Sep 2014 20:02:20 +0000 (20:02 +0000)] 
Reference dhcpcd-code(8) as well as unvis(1).

10 years agoRelease dhcpcd-6.4.7 v6.4.7
Roy Marples [Sat, 27 Sep 2014 07:43:12 +0000 (07:43 +0000)] 
Release dhcpcd-6.4.7

10 years agoFix a compile problem on Linux with IPv6 disabled.
Roy Marples [Sat, 27 Sep 2014 07:37:15 +0000 (07:37 +0000)] 
Fix a compile problem on Linux with IPv6 disabled.

10 years agoFix an impossible clang analyser warning.
Roy Marples [Sat, 27 Sep 2014 02:22:34 +0000 (02:22 +0000)] 
Fix an impossible clang analyser warning.

10 years agoRelease dhcpcd-6.4.6 v6.4.6
Roy Marples [Sat, 27 Sep 2014 00:50:18 +0000 (00:50 +0000)] 
Release dhcpcd-6.4.6

10 years agoWe only supply svis(3) so rename the files as such.
Roy Marples [Sat, 27 Sep 2014 00:12:21 +0000 (00:12 +0000)] 
We only supply svis(3) so rename the files as such.

10 years agoClean up configure _vis files
Roy Marples [Fri, 26 Sep 2014 23:20:35 +0000 (23:20 +0000)] 
Clean up configure _vis files

10 years agoDocument $new_dhcp6_prefix
Roy Marples [Fri, 26 Sep 2014 22:42:01 +0000 (22:42 +0000)] 
Document $new_dhcp6_prefix

10 years agoCall dhcpcd-run-hooks correctly when delegated prefixes already exist.
Roy Marples [Fri, 26 Sep 2014 22:35:46 +0000 (22:35 +0000)] 
Call dhcpcd-run-hooks correctly when delegated prefixes already exist.

10 years agoFix a memory error when ia_* config exists but IPv6 is disabled.
Roy Marples [Fri, 26 Sep 2014 21:50:52 +0000 (21:50 +0000)] 
Fix a memory error when ia_* config exists but IPv6 is disabled.

10 years agoReport delegated addresses, fixes [2887c4de47].
Roy Marples [Fri, 26 Sep 2014 21:22:14 +0000 (21:22 +0000)] 
Report delegated addresses, fixes [2887c4de47].

10 years agoCheck we are writing to a string before checking for enough space.
Roy Marples [Fri, 26 Sep 2014 21:13:17 +0000 (21:13 +0000)] 
Check we are writing to a string before checking for enough space.

10 years agoSanitise the following characters using svis(3) with VIS_CTYLE and VIS_OCTAL:
Roy Marples [Fri, 26 Sep 2014 20:07:07 +0000 (20:07 +0000)] 
Sanitise the following characters using svis(3) with VIS_CTYLE and VIS_OCTAL:
   | ^ & ; < > ( ) $ ` \ " ' <tab> <newline>
This allows a non buggy unvis(1) to decode it 100% and stays compatible with
how dhcpcd used to handle encoding on most platforms.
For systems that supply svis(3) there is a code reduction, for systems that
do not, a slight code increase.

This change mitigates systems affected by bash CVE-2014-6271 and CVE-2014-7169.

10 years agoEnsure servername and bootfile are safely exported.
Roy Marples [Thu, 25 Sep 2014 22:29:01 +0000 (22:29 +0000)] 
Ensure servername and bootfile are safely exported.

10 years agoDocument DELEGATED6.
Roy Marples [Wed, 24 Sep 2014 13:05:50 +0000 (13:05 +0000)] 
Document DELEGATED6.

10 years agoWhitespace
Roy Marples [Wed, 24 Sep 2014 13:03:11 +0000 (13:03 +0000)] 
Whitespace

10 years agoIf a lease has no timers, expire it right away.
Roy Marples [Wed, 24 Sep 2014 12:23:30 +0000 (12:23 +0000)] 
If a lease has no timers, expire it right away.

10 years agoUse ctx options rather than ifp for lease dumping.
Roy Marples [Wed, 24 Sep 2014 10:15:36 +0000 (10:15 +0000)] 
Use ctx options rather than ifp for lease dumping.