]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Wed, 26 Nov 2014 11:35:38 +0000 (11:35 +0000)]
With a fake added lease, we cannot assume the subnet is correct for the address, so treat as it's not there for sending DHCP messages.
Roy Marples [Wed, 26 Nov 2014 11:25:39 +0000 (11:25 +0000)]
Enter reboot state with a fake lease.
Roy Marples [Wed, 26 Nov 2014 10:41:32 +0000 (10:41 +0000)]
Flags fake routes so we can change them when we renew our lease.
Roy Marples [Wed, 26 Nov 2014 03:35:09 +0000 (03:35 +0000)]
If the IP address is still on the interface when reading a lease,
fake add the routes so the lease can be cleaned up if needed.
Roy Marples [Tue, 25 Nov 2014 21:08:34 +0000 (21:08 +0000)]
Fix wording.
Roy Marples [Tue, 25 Nov 2014 21:08:10 +0000 (21:08 +0000)]
Whitespace
Roy Marples [Tue, 25 Nov 2014 20:40:00 +0000 (20:40 +0000)]
Zero length UDP packets are not an error condition on the socket.
Thanks to Michał Kępień.
Roy Marples [Mon, 24 Nov 2014 11:03:28 +0000 (11:03 +0000)]
When not daemonising, don't exit on timeout.
Roy Marples [Mon, 24 Nov 2014 10:54:46 +0000 (10:54 +0000)]
Whitespace
Roy Marples [Tue, 18 Nov 2014 12:06:08 +0000 (12:06 +0000)]
If allowinterfaces is not specified, allow all configured interfaces
to work, such as loopback and ppp.
Roy Marples [Tue, 18 Nov 2014 11:47:45 +0000 (11:47 +0000)]
Disable IPv6RS if a loopback, pointopoint or not a multicast interface.
Roy Marples [Tue, 18 Nov 2014 11:28:14 +0000 (11:28 +0000)]
If we don't have a hwlen and no clientid has been set,
force a DUID based ClientID.
Roy Marples [Tue, 18 Nov 2014 11:07:37 +0000 (11:07 +0000)]
Check for IFF_LOOPBACK and IFF_POINTOPOINT early to avoid needless
malloc/free.
If family is not ARPHRD_ETHER, check if interface is allowed add
more tests to famlies we support.
Roy Marples [Tue, 18 Nov 2014 10:55:44 +0000 (10:55 +0000)]
Loopback interfaces have routes scoped to the host only.
Roy Marples [Tue, 18 Nov 2014 10:51:00 +0000 (10:51 +0000)]
If we don't have a hardware address, fallback to creating
a default IAID from the interface name and index as we used to.
Roy Marples [Tue, 18 Nov 2014 08:54:19 +0000 (08:54 +0000)]
This comment no longer applies.
Roy Marples [Tue, 18 Nov 2014 04:23:40 +0000 (04:23 +0000)]
Reload global config when running per interface commands.
This matches the signal behaviour.
Roy Marples [Sun, 16 Nov 2014 18:43:02 +0000 (18:43 +0000)]
Only free other ARP states if not assinging an IPv4LL address.
Roy Marples [Sun, 16 Nov 2014 18:42:01 +0000 (18:42 +0000)]
Log which IP address we are ARPing
Roy Marples [Fri, 14 Nov 2014 11:45:09 +0000 (11:45 +0000)]
Release dhcpcd-6.6.2
Roy Marples [Fri, 14 Nov 2014 07:16:49 +0000 (07:16 +0000)]
Add a guard to IPv4LL probed in case of an ARP race.
Roy Marples [Thu, 13 Nov 2014 18:45:04 +0000 (18:45 +0000)]
Backup and restore any DHCP lease offered during the binding
of the IPv4LL address.
Roy Marples [Tue, 11 Nov 2014 11:26:32 +0000 (11:26 +0000)]
Stop clang complaing about a more complex variant on a long standing TAILQ bug.
Roy Marples [Tue, 11 Nov 2014 10:33:28 +0000 (10:33 +0000)]
If we don't include sys/queue.h directly the clang analyzer complains
about using freed memory.
That seems to be a workaround for this upstream bug:
http://llvm.org/bugs/show_bug.cgi?id=18222
Roy Marples [Tue, 11 Nov 2014 10:02:17 +0000 (10:02 +0000)]
Align config.h contents better
Roy Marples [Tue, 11 Nov 2014 09:17:06 +0000 (09:17 +0000)]
When closing the IPv4LL state, close any timers as well.
Roy Marples [Mon, 10 Nov 2014 19:23:52 +0000 (19:23 +0000)]
Reset DHCP state when the interface is departing.
Roy Marples [Mon, 10 Nov 2014 19:23:22 +0000 (19:23 +0000)]
Remove all interface timers when stopping.
Roy Marples [Mon, 10 Nov 2014 19:22:43 +0000 (19:22 +0000)]
eloop queue 0 is all queues, respect it.
Roy Marples [Mon, 10 Nov 2014 17:30:29 +0000 (17:30 +0000)]
Remove the direct include for cdefs.h - it's not needed for supported
platforms.
Roy Marples [Mon, 10 Nov 2014 16:56:32 +0000 (16:56 +0000)]
TAILQ is now inlcuded via config.h either via sys/queue.h or compat/queue.h.
This allows dhcpcd to compile on systems that do not even supply sys/queue.h,
such as the musl C library.
Thanks to Juan RP.
Roy Marples [Fri, 7 Nov 2014 21:08:48 +0000 (21:08 +0000)]
Remove dead store
Roy Marples [Fri, 7 Nov 2014 20:56:47 +0000 (20:56 +0000)]
Remove RCSIDs from dhcpcd, they belong in the upstream project only.
Roy Marples [Fri, 7 Nov 2014 20:03:19 +0000 (20:03 +0000)]
Release dhcpcd-6.6.1
Roy Marples [Fri, 7 Nov 2014 18:57:35 +0000 (18:57 +0000)]
When stopping interfaces, skip past pseudo interfaces instead of finding
the master as only the masters are sorted correctly.
Roy Marples [Fri, 7 Nov 2014 09:59:53 +0000 (09:59 +0000)]
Support old Linux kernels where IFLA_AF_SPEC may not exist.
Roy Marples [Mon, 3 Nov 2014 11:58:10 +0000 (11:58 +0000)]
If the IPv6 LL address is duplicated and using SLAAC private addressing,
increament the DAD counter and get a new address.
Otherwise return a suitable error.
Roy Marples [Mon, 3 Nov 2014 11:50:11 +0000 (11:50 +0000)]
Fix disabling IPv6 on start error.
Roy Marples [Wed, 29 Oct 2014 00:53:02 +0000 (00:53 +0000)]
Release dhcpcd-6.6.0
Roy Marples [Sat, 25 Oct 2014 09:54:11 +0000 (09:54 +0000)]
Reset DHCP state when carrier goes down.
Roy Marples [Sat, 25 Oct 2014 09:52:21 +0000 (09:52 +0000)]
Set IPv4LL ARP state to NULL if freeing it.
Roy Marples [Fri, 24 Oct 2014 20:30:38 +0000 (20:30 +0000)]
When we transition from REQUEST to DISCOVER in a reboot, start
IPv4LL at the same time as discover to ensure we have an address quicker.
Roy Marples [Fri, 24 Oct 2014 19:30:24 +0000 (19:30 +0000)]
Free other ARP states in a better way.
Roy Marples [Fri, 24 Oct 2014 19:25:04 +0000 (19:25 +0000)]
When binding a non IPv4LL address, kill the IPV4LL state.
Roy Marples [Fri, 24 Oct 2014 19:24:29 +0000 (19:24 +0000)]
We should not use a DHCP lease for IPV4LL.
Roy Marples [Fri, 24 Oct 2014 12:24:27 +0000 (12:24 +0000)]
Close arp explicity as well.
Roy Marples [Fri, 24 Oct 2014 11:00:03 +0000 (11:00 +0000)]
Improve IPv4LL -> DHCP state transitions
Roy Marples [Fri, 24 Oct 2014 09:14:16 +0000 (09:14 +0000)]
Fix transition from IPv4LL to a valid DHCP state.
Roy Marples [Thu, 23 Oct 2014 20:24:29 +0000 (20:24 +0000)]
Is really 5
Roy Marples [Thu, 23 Oct 2014 19:58:36 +0000 (19:58 +0000)]
Add a helper function to report conflicts to shrink the binary.
Roy Marples [Thu, 23 Oct 2014 19:50:37 +0000 (19:50 +0000)]
Fix timeout
Roy Marples [Thu, 23 Oct 2014 19:07:35 +0000 (19:07 +0000)]
Rework the ARP code so that we can have multiple ARP states.
Split the ARP resolution code to dhcp or ipv4ll where it belongs.
This allows us to probe IPv4LL while still DISCOVERing a DHCP lease.
Roy Marples [Wed, 22 Oct 2014 08:59:01 +0000 (08:59 +0000)]
Treat IPv4LL as fallback and start DHCP discovery even if the prior lease
was IPv4LL when rebooting.
Roy Marples [Wed, 22 Oct 2014 08:54:09 +0000 (08:54 +0000)]
If not doing DHCP or DHCP6, disable the DNS requirement in the RA to fork.
Roy Marples [Wed, 22 Oct 2014 04:17:25 +0000 (04:17 +0000)]
Simplfy
Roy Marples [Tue, 21 Oct 2014 22:55:30 +0000 (22:55 +0000)]
RFC 3927 Section 2.1 states that the random number generator should be
seeded with a known value derived from the IEEE 802 MAC address and that
the first 256 and last 256 addresses are reserved for future use.
Roy Marples [Tue, 21 Oct 2014 22:35:09 +0000 (22:35 +0000)]
Don't reset the last failed address needlessly.
Roy Marples [Tue, 21 Oct 2014 18:33:44 +0000 (18:33 +0000)]
Fix off by one MAX_CONFLICTS error.
Roy Marples [Tue, 21 Oct 2014 18:16:28 +0000 (18:16 +0000)]
PREINIT, UNKNOWN and CARRIER are not up or down states.
Roy Marples [Tue, 21 Oct 2014 13:04:06 +0000 (13:04 +0000)]
Check local interfaces for a duplicate IPv4LL address before ARP.
Roy Marples [Tue, 21 Oct 2014 11:06:36 +0000 (11:06 +0000)]
Only reset the IPv4LL conflict counter after we have finished
announcing our address or we bind a non IPv4LL address.
Roy Marples [Tue, 21 Oct 2014 10:23:08 +0000 (10:23 +0000)]
Reset defend when adding address.
Roy Marples [Mon, 20 Oct 2014 19:15:36 +0000 (19:15 +0000)]
Fix recovering from a failed defeat of an IPv4LL address.
Roy Marples [Mon, 20 Oct 2014 15:50:32 +0000 (15:50 +0000)]
Log the address IPv4LL defends.
Roy Marples [Mon, 20 Oct 2014 09:38:34 +0000 (09:38 +0000)]
solicitation spelling as pointed out by Russell Bell.
Roy Marples [Fri, 17 Oct 2014 21:23:01 +0000 (21:23 +0000)]
Apply documentation patch from Christos and re-release.
Roy Marples [Fri, 17 Oct 2014 21:08:26 +0000 (21:08 +0000)]
Release dhcpcd-6.5.1
Roy Marples [Fri, 17 Oct 2014 20:56:21 +0000 (20:56 +0000)]
Delay IPv4LL by a potential DHCP delay as well.
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.
Roy Marples [Fri, 17 Oct 2014 19:37:14 +0000 (19:37 +0000)]
Don't error about deleting addresses on departed interfaces.
Roy Marples [Fri, 17 Oct 2014 19:36:51 +0000 (19:36 +0000)]
Fix deleting from the wrong interface.
Roy Marples [Fri, 17 Oct 2014 19:36:24 +0000 (19:36 +0000)]
Fix some valgrind errors.
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
Roy Marples [Fri, 17 Oct 2014 14:05:30 +0000 (14:05 +0000)]
Move ARP eloop queue to DHCP.
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.
Roy Marples [Fri, 17 Oct 2014 13:46:19 +0000 (13:46 +0000)]
Always find delegates regardless of IPv6RS.
Roy Marples [Fri, 17 Oct 2014 13:44:16 +0000 (13:44 +0000)]
Clear the our DAD flag when deleting an address.
Roy Marples [Fri, 17 Oct 2014 12:37:44 +0000 (12:37 +0000)]
Handle callouts to delegated addresses better.
Roy Marples [Fri, 17 Oct 2014 10:35:57 +0000 (10:35 +0000)]
Place IPv4LL into the same queue as DHCP.
Roy Marples [Thu, 16 Oct 2014 08:30:25 +0000 (08:30 +0000)]
Handle psuedo interfaces better when preferring addresses.
Roy Marples [Thu, 16 Oct 2014 08:29:29 +0000 (08:29 +0000)]
Fix a dead assignment
Roy Marples [Wed, 15 Oct 2014 19:05:17 +0000 (19:05 +0000)]
Fix invalid deletion from pseudo interfaces.
Roy Marples [Wed, 15 Oct 2014 18:25:59 +0000 (18:25 +0000)]
Fix a memory error.
Roy Marples [Wed, 15 Oct 2014 18:09:25 +0000 (18:09 +0000)]
Ensure we pass the delegated reason if we need to.
Roy Marples [Wed, 15 Oct 2014 16:09:27 +0000 (16:09 +0000)]
Copy files correctly, fixes [
bb001cca8d ].
Roy Marples [Wed, 15 Oct 2014 16:02:05 +0000 (16:02 +0000)]
Cast away warning.
Roy Marples [Wed, 15 Oct 2014 14:23:53 +0000 (14:23 +0000)]
Work better with unknown prefix length requirements in the configuration.
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.
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.
Roy Marples [Tue, 14 Oct 2014 11:55:29 +0000 (11:55 +0000)]
Describe better the BSD IPv6 issue.
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.
Roy Marples [Tue, 14 Oct 2014 11:29:50 +0000 (11:29 +0000)]
Fix compile on FreeBSD
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.
Roy Marples [Sun, 12 Oct 2014 19:58:46 +0000 (19:58 +0000)]
Respect nodhcp6 earlier.
Roy Marples [Sat, 11 Oct 2014 00:44:59 +0000 (00:44 +0000)]
For the time being, linkaddr is FreeBSD only.
Roy Marples [Sat, 11 Oct 2014 00:44:20 +0000 (00:44 +0000)]
Work on OpenBSD sh, unset seems to add misc crap.
Roy Marples [Fri, 10 Oct 2014 20:35:13 +0000 (20:35 +0000)]
Improve FreeBSD support by using the actual AF_LINK address.
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.
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.
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.