]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
10 years agoCheck fclose(3) writes correctly, thanks to Bob.
Roy Marples [Fri, 12 Jun 2015 09:54:09 +0000 (09:54 +0000)] 
Check fclose(3) writes correctly, thanks to Bob.

10 years agoSet af_waiting if any interface or global is waiting.
Roy Marples [Tue, 9 Jun 2015 20:00:39 +0000 (20:00 +0000)] 
Set af_waiting if any interface or global is waiting.

10 years agoRemove if_oneup and replace with if_afwaited and af_waited.
Roy Marples [Tue, 9 Jun 2015 19:47:53 +0000 (19:47 +0000)] 
Remove if_oneup and replace with if_afwaited and af_waited.
If present, they will show the address family waiting for.

10 years agoDescribe which IP address family we are waiting for.
Roy Marples [Tue, 9 Jun 2015 18:50:17 +0000 (18:50 +0000)] 
Describe which IP address family we are waiting for.

10 years agoLog IPv4 DAD completing when the kernel handles DAD.
Roy Marples [Tue, 9 Jun 2015 16:43:20 +0000 (16:43 +0000)] 
Log IPv4 DAD completing when the kernel handles DAD.

10 years agoRemove the pseudo interface created for prefix delegation and mix different
Roy Marples [Fri, 5 Jun 2015 22:06:05 +0000 (22:06 +0000)] 
Remove the pseudo interface created for prefix delegation and mix different
IA options in one DHCP state as recommended by RFC 7550.

Hopefully this will simplify support a great deal.

10 years agoReject any NA/RA message with a hoplimit not equal to 255 as per RFC 4861 7.1.2.
Roy Marples [Fri, 5 Jun 2015 14:55:08 +0000 (14:55 +0000)] 
Reject any NA/RA message with a hoplimit not equal to 255 as per RFC 4861 7.1.2.

10 years agoAdd an option to skip the initial randomised protocol delay.
Roy Marples [Wed, 3 Jun 2015 10:34:15 +0000 (10:34 +0000)] 
Add an option to skip the initial randomised protocol delay.

10 years agoEven if the script is /dev/null or NULL, always send the scripted environment
Roy Marples [Wed, 3 Jun 2015 10:13:37 +0000 (10:13 +0000)] 
Even if the script is /dev/null or NULL, always send the scripted environment
to our listeners.

10 years agoDisable IP address waiting for pseudo interfaces, fixes [1972d664c2].
Roy Marples [Sun, 31 May 2015 08:19:34 +0000 (08:19 +0000)] 
Disable IP address waiting for pseudo interfaces, fixes [1972d664c2].

10 years agoSend and release if we have an address to send to.
Roy Marples [Fri, 29 May 2015 20:05:04 +0000 (20:05 +0000)] 
Send and release if we have an address to send to.

10 years agoSet the magic cookie on our faked DHCP messages so we correctly get
Roy Marples [Fri, 29 May 2015 13:42:28 +0000 (13:42 +0000)] 
Set the magic cookie on our faked DHCP messages so we correctly get
the subnet.
Fixes [ea294abc09].

10 years agoUse strtoi(3) instead of sscanf(3) to grab CIDR from an address.
Roy Marples [Fri, 29 May 2015 13:00:58 +0000 (13:00 +0000)] 
Use strtoi(3) instead of sscanf(3) to grab CIDR from an address.

10 years agoReport the new nd_ options.
Roy Marples [Mon, 25 May 2015 00:16:11 +0000 (00:16 +0000)] 
Report the new nd_ options.

10 years agoOnly blank out wait options if we are parsing a valid block for us.
Roy Marples [Sat, 23 May 2015 13:09:22 +0000 (13:09 +0000)] 
Only blank out wait options if we are parsing a valid block for us.
Another fix for [1972d664c2].

10 years agoFix ARP checking.
Roy Marples [Sat, 23 May 2015 11:38:13 +0000 (11:38 +0000)] 
Fix ARP checking.

10 years agoEnsure that new_block is zero before use, fixes [1972d664c2].
Roy Marples [Sat, 23 May 2015 08:36:34 +0000 (08:36 +0000)] 
Ensure that new_block is zero before use, fixes [1972d664c2].

10 years agoMove the Is The Route a Host Route check to when we extract the static routes
Roy Marples [Sat, 23 May 2015 08:26:15 +0000 (08:26 +0000)] 
Move the Is The Route a Host Route check to when we extract the static routes
instead of checking all derived routes.
Fixes [0d526c8558].

10 years agoFix waiting for ip address, [1972d664c2].
Roy Marples [Wed, 20 May 2015 10:25:10 +0000 (10:25 +0000)] 
Fix waiting for ip address, [1972d664c2].

10 years agoUse xz instead of bzip2 to create the distribution.
Roy Marples [Mon, 18 May 2015 11:21:50 +0000 (11:21 +0000)] 
Use xz instead of bzip2 to create the distribution.

10 years agoRelease dhcpcd-6.9.0 v6.9.0
Roy Marples [Sat, 16 May 2015 23:07:35 +0000 (23:07 +0000)] 
Release dhcpcd-6.9.0

10 years agoEnsure we have a state when prefering another address.
Roy Marples [Sat, 16 May 2015 22:06:45 +0000 (22:06 +0000)] 
Ensure we have a state when prefering another address.

10 years agoAdd an assert to fix an impossible clang analyzer condition
Roy Marples [Sat, 16 May 2015 21:39:56 +0000 (21:39 +0000)] 
Add an assert to fix an impossible clang analyzer condition

10 years agoFix a control socketm error.
Roy Marples [Sat, 16 May 2015 21:16:59 +0000 (21:16 +0000)] 
Fix a control socketm error.

10 years agoFix some casts.
Roy Marples [Sat, 16 May 2015 21:01:23 +0000 (21:01 +0000)] 
Fix some casts.

10 years agoImprove IN_IFF_TENTATIVE with ip sharing.
Roy Marples [Sat, 16 May 2015 20:42:05 +0000 (20:42 +0000)] 
Improve IN_IFF_TENTATIVE with ip sharing.

10 years agoMake this easier to read.
Roy Marples [Sat, 16 May 2015 10:11:00 +0000 (10:11 +0000)] 
Make this easier to read.

10 years agoDon't send DHCP messages when we don't have a carrier.
Roy Marples [Fri, 15 May 2015 22:05:17 +0000 (22:05 +0000)] 
Don't send DHCP messages when we don't have a carrier.

10 years agoCheck a DHCP state exists when deleting an address from an interface.
Roy Marples [Fri, 15 May 2015 22:02:39 +0000 (22:02 +0000)] 
Check a DHCP state exists when deleting an address from an interface.

10 years agoFix compile on FreeBSD
Roy Marples [Fri, 15 May 2015 21:08:14 +0000 (21:08 +0000)] 
Fix compile on FreeBSD

10 years agoOpenBSD fixes.
Roy Marples [Fri, 15 May 2015 19:41:33 +0000 (19:41 +0000)] 
OpenBSD fixes.

10 years agoFix building without INET or INET6.
Roy Marples [Fri, 15 May 2015 15:23:42 +0000 (15:23 +0000)] 
Fix building without INET or INET6.

10 years agoFix another analyzer error.
Roy Marples [Fri, 15 May 2015 15:10:26 +0000 (15:10 +0000)] 
Fix another analyzer error.

10 years agoFix an analyzer error.
Roy Marples [Fri, 15 May 2015 14:58:04 +0000 (14:58 +0000)] 
Fix an analyzer error.

10 years agoFor now, ignore ND DNS lifetimes unless they are absent or zero, in
Roy Marples [Fri, 15 May 2015 14:32:54 +0000 (14:32 +0000)] 
For now, ignore ND DNS lifetimes unless they are absent or zero, in
which case they are removed from consideration.

10 years agoFor each ND, output the time of acquisition and the current time in seconds.
Roy Marples [Fri, 15 May 2015 13:47:35 +0000 (13:47 +0000)] 
For each ND, output the time of acquisition and the current time in seconds.

10 years agoAdd new variable of type bitflags:flags
Roy Marples [Fri, 15 May 2015 10:01:24 +0000 (10:01 +0000)] 
Add new variable of type bitflags:flags
where the flags ABCDEFGH, A is 10000000, B is 01000000, etc.
Variables with the name reserved are no longer processed.

10 years agoFix compile on NetBSD.
Roy Marples [Thu, 14 May 2015 20:18:58 +0000 (20:18 +0000)] 
Fix compile on NetBSD.

10 years agogcc cleanups
Roy Marples [Thu, 14 May 2015 20:13:18 +0000 (20:13 +0000)] 
gcc cleanups

10 years agoHandle ND options in the same way we handle DHCP and DHCPv6 options.
Roy Marples [Thu, 14 May 2015 19:46:21 +0000 (19:46 +0000)] 
Handle ND options in the same way we handle DHCP and DHCPv6 options.

10 years agoFix compile on Linux.
Roy Marples [Thu, 14 May 2015 13:45:13 +0000 (13:45 +0000)] 
Fix compile on Linux.

10 years agoFix waiting on non interface ip, [2095791c47].
Roy Marples [Thu, 14 May 2015 09:20:26 +0000 (09:20 +0000)] 
Fix waiting on non interface ip, [2095791c47].

10 years agoAllow waitip to work per interface.
Roy Marples [Thu, 14 May 2015 09:17:37 +0000 (09:17 +0000)] 
Allow waitip to work per interface.
Remove ipwaited from dhcpcd-run-hooks as it's now redundant.
Fixes [2095791c47].

10 years agoImprove eloop api so we don't force a delete write parameter when
Roy Marples [Thu, 14 May 2015 07:35:49 +0000 (07:35 +0000)] 
Improve eloop api so we don't force a delete write parameter when
deleting events.

10 years agohmmmm, seems this isn't needed anymore ...
Roy Marples [Wed, 13 May 2015 02:00:55 +0000 (02:00 +0000)] 
hmmmm, seems this isn't needed anymore ...

10 years agoEnsure adding an event does not have an fd of -1
Roy Marples [Wed, 13 May 2015 01:53:01 +0000 (01:53 +0000)] 
Ensure adding an event does not have an fd of -1

10 years agoDisable asserts for non debug builds.
Roy Marples [Wed, 13 May 2015 01:22:58 +0000 (01:22 +0000)] 
Disable asserts for non debug builds.

10 years agoEnsure oldset is empty before sigprocmask call ... unsure why this is needed.
Roy Marples [Wed, 13 May 2015 01:12:47 +0000 (01:12 +0000)] 
Ensure oldset is empty before sigprocmask call ... unsure why this is needed.

10 years agoEnsure kqueue/epoll fd is open on init.
Roy Marples [Wed, 13 May 2015 00:53:45 +0000 (00:53 +0000)] 
Ensure kqueue/epoll fd is open on init.

10 years agoSprinkle some asserts
Roy Marples [Wed, 13 May 2015 00:23:43 +0000 (00:23 +0000)] 
Sprinkle some asserts

10 years agosetting signals should require an explicit len rather than NULL termination.
Roy Marples [Tue, 12 May 2015 23:47:25 +0000 (23:47 +0000)] 
setting signals should require an explicit len rather than NULL termination.

10 years agoFix compile on BSD
Roy Marples [Tue, 12 May 2015 20:07:34 +0000 (20:07 +0000)] 
Fix compile on BSD

10 years agoUse ppoll as pollts if available.
Roy Marples [Tue, 12 May 2015 20:04:28 +0000 (20:04 +0000)] 
Use ppoll as pollts if available.

10 years agoRemove compat for polling, dhcpcd now requires pselect as a minimum fallback.
Roy Marples [Tue, 12 May 2015 20:03:36 +0000 (20:03 +0000)] 
Remove compat for polling, dhcpcd now requires pselect as a minimum fallback.

10 years agoAdd a pollts wrapper in eloop.c directly so it really should be stand alone
Roy Marples [Tue, 12 May 2015 19:55:45 +0000 (19:55 +0000)] 
Add a pollts wrapper in eloop.c directly so it really should be stand alone
now!

10 years agoImprove eloop loading sys/queue.h
Roy Marples [Tue, 12 May 2015 19:42:44 +0000 (19:42 +0000)] 
Improve eloop loading sys/queue.h

10 years agoMake eloop entirely independant from dhcpcd.
Roy Marples [Tue, 12 May 2015 17:24:29 +0000 (17:24 +0000)] 
Make eloop entirely independant from dhcpcd.

10 years agoeloop_ctx -> eloop
Roy Marples [Tue, 12 May 2015 14:53:38 +0000 (14:53 +0000)] 
eloop_ctx -> eloop

10 years agoMove signal handling into eloop with just the callback in dhcpcd.
Roy Marples [Tue, 12 May 2015 14:14:32 +0000 (14:14 +0000)] 
Move signal handling into eloop with just the callback in dhcpcd.
This allows a cleaner platform agnostic signal setup in dhcpcd itself.

10 years agoReplace get_monotonic usage with the standard clock_gettime.
Roy Marples [Tue, 12 May 2015 08:30:21 +0000 (08:30 +0000)] 
Replace get_monotonic usage with the standard clock_gettime.

10 years agoFix prior
Roy Marples [Sat, 9 May 2015 10:11:51 +0000 (10:11 +0000)] 
Fix prior

10 years agoRemove dhcpcd specifics from eloop to make more portable.
Roy Marples [Sat, 9 May 2015 10:09:34 +0000 (10:09 +0000)] 
Remove dhcpcd specifics from eloop to make more portable.

10 years agoNote we cannot set static DHCPv6 values.
Roy Marples [Sat, 9 May 2015 06:12:08 +0000 (06:12 +0000)] 
Note we cannot set static DHCPv6 values.

10 years agoCheck if we have an IPv6 context before expiring RA's.
Roy Marples [Sat, 9 May 2015 06:02:49 +0000 (06:02 +0000)] 
Check if we have an IPv6 context before expiring RA's.

10 years agoFix IPv6 prefix underflow when confirming deprecated but valid leases.
Roy Marples [Wed, 6 May 2015 15:21:56 +0000 (15:21 +0000)] 
Fix IPv6 prefix underflow when confirming deprecated but valid leases.

10 years agoRelease dhcpcd-6.8.2 v6.8.2
Roy Marples [Sat, 2 May 2015 14:07:59 +0000 (14:07 +0000)] 
Release dhcpcd-6.8.2

10 years agoFix compile on FreeBSD.
Roy Marples [Sat, 2 May 2015 14:00:37 +0000 (14:00 +0000)] 
Fix compile on FreeBSD.

10 years agoKNF
Roy Marples [Fri, 1 May 2015 20:13:46 +0000 (20:13 +0000)] 
KNF

10 years agoFix compile on non NetBSD-8
Roy Marples [Fri, 1 May 2015 20:08:57 +0000 (20:08 +0000)] 
Fix compile on non NetBSD-8

10 years agoFix some compiler warnings.
Roy Marples [Fri, 1 May 2015 16:06:39 +0000 (16:06 +0000)] 
Fix some compiler warnings.

10 years agoOn carrier down, rebuild routes and expire RA's if keeping IP addressses.
Roy Marples [Fri, 1 May 2015 15:52:34 +0000 (15:52 +0000)] 
On carrier down, rebuild routes and expire RA's if keeping IP addressses.
On carrier up, set RA's to expire comletely after a few seconds.
If no valid RA's are available, kill DHCPv6.

10 years agoDelete duplicated addresses.
Roy Marples [Fri, 1 May 2015 14:02:36 +0000 (14:02 +0000)] 
Delete duplicated addresses.

10 years agoFix reporting of non existant DHCPv6 lease.
Roy Marples [Fri, 1 May 2015 12:55:06 +0000 (12:55 +0000)] 
Fix reporting of non existant DHCPv6 lease.

10 years agoFix compile on Linux.
Roy Marples [Fri, 1 May 2015 12:40:05 +0000 (12:40 +0000)] 
Fix compile on Linux.

10 years agoIf config file changed, drop leases and re-disover.
Roy Marples [Fri, 1 May 2015 12:39:06 +0000 (12:39 +0000)] 
If config file changed, drop leases and re-disover.
Fix minor issues with IN_IFF_TENTATIVE.

10 years agoMove address learning into a separate function for future use.
Roy Marples [Fri, 1 May 2015 12:34:07 +0000 (12:34 +0000)] 
Move address learning into a separate function for future use.

10 years agoAdd initial support for keeping addresses at carrier down for supported platforms.
Roy Marples [Fri, 1 May 2015 09:53:45 +0000 (09:53 +0000)] 
Add initial support for keeping addresses at carrier down for supported platforms.

10 years agoFix compile and warnings on Linux for prior patch.
Roy Marples [Fri, 1 May 2015 09:52:04 +0000 (09:52 +0000)] 
Fix compile and warnings on Linux for prior patch.

10 years agoSupport IN_IFF_TENTATIVE and IN_IFF_DUPLICATED on NetBSD.
Roy Marples [Fri, 1 May 2015 09:41:54 +0000 (09:41 +0000)] 
Support IN_IFF_TENTATIVE and IN_IFF_DUPLICATED on NetBSD.

10 years agoRemove this unused function.
Roy Marples [Fri, 1 May 2015 08:12:19 +0000 (08:12 +0000)] 
Remove this unused function.

10 years agoLet arp_new take an address so we never have duplicate
Roy Marples [Fri, 1 May 2015 08:10:16 +0000 (08:10 +0000)] 
Let arp_new take an address so we never have duplicate
ARP states.

10 years agoMake code cleaner with UNUSED
Roy Marples [Thu, 30 Apr 2015 10:25:16 +0000 (10:25 +0000)] 
Make code cleaner with UNUSED

10 years agoEnsure errno is set if we dont find an interface.
Roy Marples [Thu, 30 Apr 2015 10:18:45 +0000 (10:18 +0000)] 
Ensure errno is set if we dont find an interface.

10 years agoMake finding interfaces take an interface list rather than a dhcpcd_ctx.
Roy Marples [Thu, 30 Apr 2015 10:16:06 +0000 (10:16 +0000)] 
Make finding interfaces take an interface list rather than a dhcpcd_ctx.

10 years agoMove carrier state higher up the interface preference for sorting.
Roy Marples [Fri, 24 Apr 2015 09:21:47 +0000 (09:21 +0000)] 
Move carrier state higher up the interface preference for sorting.

10 years agoAdd dhcpcd_drop function to reduce code complexity.
Roy Marples [Fri, 24 Apr 2015 09:18:42 +0000 (09:18 +0000)] 
Add dhcpcd_drop function to reduce code complexity.

10 years agoFix some more -Wconversion issues.
Roy Marples [Tue, 21 Apr 2015 16:20:04 +0000 (16:20 +0000)] 
Fix some more -Wconversion issues.

10 years agoGive up on _BSD_SOURCE and use _GNU_SOURCE for Linux.
Roy Marples [Mon, 20 Apr 2015 09:02:58 +0000 (09:02 +0000)] 
Give up on _BSD_SOURCE and use _GNU_SOURCE for Linux.
This is requires for newer Linux headers as there is no easy way to get at the
in6_pktinfo structure, so we have to fallback to the glibc variant which
requires _GNU_SOURCE being set.
This does have the advantage of no longer sprinkling _GNU_SOURCE around and
no longer having to cast ipi.ipi_ifindex but may break compile on older Linux.

11 years agoCopy out some route types.
Roy Marples [Thu, 16 Apr 2015 16:08:54 +0000 (16:08 +0000)] 
Copy out some route types.

11 years agoBSD handles a subnet route for addresses of /32.
Roy Marples [Thu, 16 Apr 2015 16:08:24 +0000 (16:08 +0000)] 
BSD handles a subnet route for addresses of /32.

11 years agoEnsure static routes are in multiples of 8 and the destination is not the default...
Roy Marples [Thu, 16 Apr 2015 15:31:28 +0000 (15:31 +0000)] 
Ensure static routes are in multiples of 8 and the destination is not the default route as noted in RFC2132 5.8

11 years agoStore a host route as the kernel would like it, rather than varying forms of
Roy Marples [Wed, 15 Apr 2015 22:02:15 +0000 (22:02 +0000)] 
Store a host route as the kernel would like it, rather than varying forms of
how it's set in a DHCP message.

11 years agoFix routing generation when we receive a host route over CSR.
Roy Marples [Wed, 15 Apr 2015 21:09:40 +0000 (21:09 +0000)] 
Fix routing generation when we receive a host route over CSR.

11 years agoFix a segfault when finding a route without an interface.
Roy Marples [Sun, 12 Apr 2015 08:57:13 +0000 (08:57 +0000)] 
Fix a segfault when finding a route without an interface.
Thanks to Paul Walrath.

11 years agoOnly take into account useable IPv6 public addresses.
Roy Marples [Tue, 7 Apr 2015 21:16:31 +0000 (21:16 +0000)] 
Only take into account useable IPv6 public addresses.

11 years agoNo point in sending Maximum Message Size DHCP option for BOOTP messages.
Roy Marples [Tue, 7 Apr 2015 08:41:18 +0000 (08:41 +0000)] 
No point in sending Maximum Message Size DHCP option for BOOTP messages.
More for [c59e71d5fa].

11 years agoThe bootp option will stop sending the DHCP Message Type option.
Roy Marples [Mon, 6 Apr 2015 13:07:19 +0000 (13:07 +0000)] 
The bootp option will stop sending the DHCP Message Type option.
This allows dhcpcd it interact with BOOTP servers only if both are on
the same network. All other DHCP options still work.
Fixes [c59e71d5fa].

11 years agoRemove sockaddr_storage reference in sockaddr unions as the other addresses
Roy Marples [Sun, 5 Apr 2015 21:50:53 +0000 (21:50 +0000)] 
Remove sockaddr_storage reference in sockaddr unions as the other addresses
should be big enough.

11 years agoCheck the magic cookie when retreiving an option.
Roy Marples [Sun, 5 Apr 2015 16:28:54 +0000 (16:28 +0000)] 
Check the magic cookie when retreiving an option.

11 years agoIf we receieve an RA without a public prefix but with the Managed flag set,
Roy Marples [Sat, 4 Apr 2015 21:40:47 +0000 (21:40 +0000)] 
If we receieve an RA without a public prefix but with the Managed flag set,
ignore the RA until we recieve a DHCPv6 lease with a public address at
which point it is applied.