]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
12 years agoRemove more headers
Roy Marples [Tue, 21 May 2013 16:05:36 +0000 (16:05 +0000)] 
Remove more headers

12 years agoRemove includes to try and fix ppc 64 linux compile.
Roy Marples [Tue, 21 May 2013 15:38:52 +0000 (15:38 +0000)] 
Remove includes to try and fix ppc 64 linux compile.

12 years agoAdd timeout desc for 0
Roy Marples [Tue, 21 May 2013 13:47:38 +0000 (13:47 +0000)] 
Add timeout desc for 0

12 years agoRemove include to try and fix ppc 64 linux compile.
Roy Marples [Tue, 21 May 2013 13:25:37 +0000 (13:25 +0000)] 
Remove include to try and fix ppc 64 linux compile.

12 years agoDon't warn about invalid xid if we're already bound.
Roy Marples [Tue, 21 May 2013 12:34:06 +0000 (12:34 +0000)] 
Don't warn about invalid xid if we're already bound.

12 years agoDon't actually remove unreachable routers and prefixes from the routing table.
Roy Marples [Tue, 21 May 2013 09:24:49 +0000 (09:24 +0000)] 
Don't actually remove unreachable routers and prefixes from the routing table.
Instead we just change the interface if they are reachable via another one.

12 years agoUse macros instead of memcmp
Roy Marples [Sat, 18 May 2013 15:37:27 +0000 (15:37 +0000)] 
Use macros instead of memcmp

12 years agoGet local link address flags for supported OS's.
Roy Marples [Sat, 18 May 2013 15:30:55 +0000 (15:30 +0000)] 
Get local link address flags for supported OS's.
Just in-case they are tentative.

12 years agoFix an alignment error
Roy Marples [Fri, 17 May 2013 23:24:07 +0000 (23:24 +0000)] 
Fix an alignment error

12 years agoFix logic
Roy Marples [Fri, 17 May 2013 23:21:56 +0000 (23:21 +0000)] 
Fix logic

12 years agoDon't log an error when deleting IPv6 addresses that doesn't exist.
Roy Marples [Fri, 17 May 2013 23:17:44 +0000 (23:17 +0000)] 
Don't log an error when deleting IPv6 addresses that doesn't exist.

12 years agoStore IPv6 link local addresses per interface.
Roy Marples [Fri, 17 May 2013 23:09:36 +0000 (23:09 +0000)] 
Store IPv6 link local addresses per interface.
Listen to kernel messages to account them.
If we don't have a local link address, delay IPv6RS as it just
won#t work until we have a local link address.

12 years agoShorten executing message to avoid oerflowing 80 chars
Roy Marples [Fri, 17 May 2013 07:50:51 +0000 (07:50 +0000)] 
Shorten executing message to avoid oerflowing 80 chars

12 years agoSet scope for DHCPv6
Roy Marples [Thu, 16 May 2013 19:02:14 +0000 (19:02 +0000)] 
Set scope for DHCPv6

12 years agoIgnore emacs files
Roy Marples [Thu, 16 May 2013 18:52:23 +0000 (18:52 +0000)] 
Ignore emacs files

12 years agoSet scope_id correctly.
Roy Marples [Thu, 16 May 2013 16:29:54 +0000 (16:29 +0000)] 
Set scope_id correctly.

12 years agoELOOP_QUEUE 0 is now all queues
Roy Marples [Thu, 16 May 2013 14:42:18 +0000 (14:42 +0000)] 
ELOOP_QUEUE 0 is now all queues
This allows DHCPv6 and IPv6RS to remove DAD callbacks from the IPv6NS queue.

12 years agoTest BSD kernels for a specific version so we can listen to either
Roy Marples [Thu, 16 May 2013 14:28:42 +0000 (14:28 +0000)] 
Test BSD kernels for a specific version so we can listen to either
RTM_NEWADDR for duplicates, or directly on the wire with a maximum
timeout.

Warn about this noisily as there is no reason why the kernel cannot be
easily patched to support this.

12 years agoFix RA router ordering
Roy Marples [Thu, 16 May 2013 13:30:06 +0000 (13:30 +0000)] 
Fix RA router ordering

12 years agoWhen dropping states, delete any timeouts for DAD callbacks.
Roy Marples [Thu, 16 May 2013 13:09:27 +0000 (13:09 +0000)] 
When dropping states, delete any timeouts for DAD callbacks.

12 years agoFix compile on Linux
Roy Marples [Thu, 16 May 2013 10:54:20 +0000 (10:54 +0000)] 
Fix compile on Linux

12 years agoFix compile on FreeBSD
Roy Marples [Thu, 16 May 2013 10:48:03 +0000 (10:48 +0000)] 
Fix compile on FreeBSD

12 years agoMove DAD messages to LOG_INFO.
Roy Marples [Thu, 16 May 2013 10:36:08 +0000 (10:36 +0000)] 
Move DAD messages to LOG_INFO.

12 years agoCheck address flags for tentative and duplicates bits for sanity.
Roy Marples [Thu, 16 May 2013 10:31:21 +0000 (10:31 +0000)] 
Check address flags for tentative and duplicates bits for sanity.
Handle the actual trigger to callout dhcpcd-run-hooks in the DAD callback
instead of on receipt of RTM_NEWADDR directly. This is more code, but it allows
us to use our own DAD engine if we need to.

12 years agoRemoved unused vars
Roy Marples [Wed, 15 May 2013 23:56:24 +0000 (23:56 +0000)] 
Removed unused vars

12 years agoFix compile on FreeBSD
Roy Marples [Wed, 15 May 2013 11:34:17 +0000 (11:34 +0000)] 
Fix compile on FreeBSD

12 years agoAdd netlink code to listen to AF_INET6 RTM_NEWADDR messages for Linux. v5.99.6
Roy Marples [Wed, 15 May 2013 11:17:36 +0000 (11:17 +0000)] 
Add netlink code to listen to AF_INET6 RTM_NEWADDR messages for Linux.

12 years agoUse the kernel DAD for IPv6 addresses and finish the action once each
Roy Marples [Wed, 15 May 2013 10:27:36 +0000 (10:27 +0000)] 
Use the kernel DAD for IPv6 addresses and finish the action once each
address DAD completes. BSD kernels will require a patch as noted within
the README. The linux netlink part still needs to be written.

12 years agoMore compile fixes.
Roy Marples [Fri, 3 May 2013 14:43:51 +0000 (14:43 +0000)] 
More compile fixes.

12 years agoMore PPC __unused compile fixes.
Roy Marples [Fri, 3 May 2013 14:41:19 +0000 (14:41 +0000)] 
More PPC __unused compile fixes.

12 years agoFix syslogging a little.
Roy Marples [Fri, 3 May 2013 14:19:17 +0000 (14:19 +0000)] 
Fix syslogging a little.

12 years agoInit memory cleanly.
Roy Marples [Fri, 3 May 2013 14:17:24 +0000 (14:17 +0000)] 
Init memory cleanly.

12 years agoAdd new hook script.
Roy Marples [Fri, 3 May 2013 13:45:21 +0000 (13:45 +0000)] 
Add new hook script.

12 years agoAdd RFC4833 support for TimeZone options.
Roy Marples [Fri, 3 May 2013 13:38:54 +0000 (13:38 +0000)] 
Add RFC4833 support for TimeZone options.

12 years agoAdd IPv6 DAD detection.
Roy Marples [Fri, 3 May 2013 12:11:49 +0000 (12:11 +0000)] 
Add IPv6 DAD detection.

Sadly, it seems that userland cannot send from the unspecified address.
This means that for RFC conformancy, we have to rely on the kernel
performing DAD.

12 years agoWork around silly __unused problem some more on Linux.
Roy Marples [Thu, 25 Apr 2013 06:09:38 +0000 (06:09 +0000)] 
Work around silly __unused problem some more on Linux.

12 years agoChange from _unused to __unused to match NetBSD cdefs and avoid
Roy Marples [Wed, 24 Apr 2013 09:38:18 +0000 (09:38 +0000)] 
Change from _unused to __unused to match NetBSD cdefs and avoid
a compiler failure on linux-headers-3.7

12 years agoNote that reboot 0 helps for mobile hosts.
Roy Marples [Fri, 5 Apr 2013 16:40:31 +0000 (16:40 +0000)] 
Note that reboot 0 helps for mobile hosts.

12 years agoDHCPv6 now respects the reboot 0 option.
Roy Marples [Fri, 5 Apr 2013 14:55:50 +0000 (14:55 +0000)] 
DHCPv6 now respects the reboot 0 option.

12 years agoNote that we support RFC 5227
Roy Marples [Fri, 5 Apr 2013 09:47:33 +0000 (09:47 +0000)] 
Note that we support RFC 5227

12 years agoWe no longer use the RELEASE hook command
Roy Marples [Fri, 5 Apr 2013 00:09:16 +0000 (00:09 +0000)] 
We no longer use the RELEASE hook command

12 years agoMove dhcp_release into dhcp_drop
Roy Marples [Thu, 4 Apr 2013 23:57:12 +0000 (23:57 +0000)] 
Move dhcp_release into dhcp_drop

12 years agoSend a RELEASE if the link is up
Roy Marples [Thu, 4 Apr 2013 23:30:14 +0000 (23:30 +0000)] 
Send a RELEASE if the link is up

12 years agoDestroy lease file if releasing.
Roy Marples [Thu, 4 Apr 2013 23:29:54 +0000 (23:29 +0000)] 
Destroy lease file if releasing.

12 years agoDon't crash when disabling IPv6
Roy Marples [Thu, 4 Apr 2013 23:25:31 +0000 (23:25 +0000)] 
Don't crash when disabling IPv6

12 years agoFix a memory leak
Roy Marples [Thu, 4 Apr 2013 22:07:48 +0000 (22:07 +0000)] 
Fix a memory leak

12 years agoAdd RELEASE support to DHCPv6
Roy Marples [Thu, 4 Apr 2013 21:59:02 +0000 (21:59 +0000)] 
Add RELEASE support to DHCPv6

12 years agoFix RELEASE support.
Roy Marples [Thu, 4 Apr 2013 21:58:51 +0000 (21:58 +0000)] 
Fix RELEASE support.

12 years agoBetter sanity for working out if our SLA id overflows the PD length + interface id.
Roy Marples [Thu, 4 Apr 2013 20:31:05 +0000 (20:31 +0000)] 
Better sanity for working out if our SLA id overflows the PD length + interface id.

12 years agoWhite space police
Roy Marples [Thu, 4 Apr 2013 20:31:04 +0000 (20:31 +0000)] 
White space police

12 years agoEnsure we check options bounds correctly.
Roy Marples [Thu, 4 Apr 2013 20:31:04 +0000 (20:31 +0000)] 
Ensure we check options bounds correctly.

12 years agoThe interface to delegate to is optional
Roy Marples [Tue, 2 Apr 2013 19:50:50 +0000 (19:50 +0000)] 
The interface to delegate to is optional

12 years agoStop ipv6only enabling RS support.
Roy Marples [Tue, 2 Apr 2013 16:49:36 +0000 (16:49 +0000)] 
Stop ipv6only enabling RS support.

12 years agoFix linux default subnet route metric on linux again.
Roy Marples [Tue, 2 Apr 2013 07:30:13 +0000 (07:30 +0000)] 
Fix linux default subnet route metric on linux again.

12 years agoWhite space brigade
Roy Marples [Tue, 2 Apr 2013 07:01:11 +0000 (07:01 +0000)] 
White space brigade

12 years agoFix incorrectly expiring routers on multi-homed systems.
Roy Marples [Tue, 2 Apr 2013 06:50:33 +0000 (06:50 +0000)] 
Fix incorrectly expiring routers on multi-homed systems.

12 years agoFix IA
Roy Marples [Mon, 1 Apr 2013 12:24:39 +0000 (12:24 +0000)] 
Fix IA

12 years agoFix default sla_len
Roy Marples [Mon, 1 Apr 2013 12:19:58 +0000 (12:19 +0000)] 
Fix default sla_len

12 years agoAdd DHCPv6 Prefix Delegation support, RFC3633.
Roy Marples [Mon, 1 Apr 2013 12:15:47 +0000 (12:15 +0000)] 
Add DHCPv6 Prefix Delegation support, RFC3633.
Add DHCPv6 Temporary Address support, RFC3315.

12 years agoRespect xidhwaddr option for DHCPv6
Roy Marples [Thu, 28 Mar 2013 06:38:27 +0000 (06:38 +0000)] 
Respect xidhwaddr option for DHCPv6

12 years agoAdd the noalias directive to so that when adding an IPv4 addresss
Roy Marples [Wed, 27 Mar 2013 16:36:56 +0000 (16:36 +0000)] 
Add the noalias directive to so that when adding an IPv4 addresss
dhcpcd will overwrite a pre-existing address.

NetBSD PR/47699

12 years agoAcquire another address faster after NAKing ARP failure.
Roy Marples [Wed, 27 Mar 2013 15:43:48 +0000 (15:43 +0000)] 
Acquire another address faster after NAKing ARP failure.

12 years agoCreate lease files so they are user writeable.
Roy Marples [Wed, 27 Mar 2013 15:19:48 +0000 (15:19 +0000)] 
Create lease files so they are user writeable.

12 years agoRemove pointless double assignment
Roy Marples [Tue, 26 Mar 2013 15:28:41 +0000 (15:28 +0000)] 
Remove pointless double assignment

12 years agoDon't spam warning about CSR all the time.
Roy Marples [Tue, 26 Mar 2013 11:40:44 +0000 (11:40 +0000)] 
Don't spam warning about CSR all the time.

12 years agoFix configure --without-pollts
Roy Marples [Tue, 26 Mar 2013 10:48:28 +0000 (10:48 +0000)] 
Fix configure --without-pollts

12 years agoFix rebooting.
Roy Marples [Tue, 26 Mar 2013 10:42:30 +0000 (10:42 +0000)] 
Fix rebooting.

12 years agoWarn when a route cannot be added because it already exists.
Roy Marples [Tue, 26 Mar 2013 10:39:46 +0000 (10:39 +0000)] 
Warn when a route cannot be added because it already exists.

12 years agoFix compile for systems without pollts/ppoll or pselect.
Roy Marples [Tue, 26 Mar 2013 10:39:06 +0000 (10:39 +0000)] 
Fix compile for systems without pollts/ppoll or pselect.

12 years agoAvoid a potential malloc when handling signals.
Roy Marples [Tue, 26 Mar 2013 08:51:34 +0000 (08:51 +0000)] 
Avoid a potential malloc when handling signals.

12 years agoDefault to using a DUID + IAID for DHCPv4 Client ID.
Roy Marples [Tue, 26 Mar 2013 06:39:58 +0000 (06:39 +0000)] 
Default to using a DUID + IAID for DHCPv4 Client ID.

Disable requesting the MTU by default as some interface drivers still
incorrectly reset themselves when changing the MTU.

12 years agoEnsure routes are initialised correctly, fixes #265.
Roy Marples [Sun, 17 Mar 2013 13:00:03 +0000 (13:00 +0000)] 
Ensure routes are initialised correctly, fixes #265.
If we fail to malloc any part of a route, clear all the routes.

12 years agoChange arp errno to match what we use in dhcpcd.
Roy Marples [Tue, 19 Feb 2013 16:59:58 +0000 (16:59 +0000)] 
Change arp errno to match what we use in dhcpcd.

12 years agoFix last commit.
Roy Marples [Tue, 19 Feb 2013 16:32:02 +0000 (16:32 +0000)] 
Fix last commit.

12 years agoAvoid a potential buffer overflow.
Roy Marples [Tue, 19 Feb 2013 16:22:04 +0000 (16:22 +0000)] 
Avoid a potential buffer overflow.

12 years agoMove IPv6 RA checking and disabling kernel RA higher up the chain.
Roy Marples [Tue, 19 Feb 2013 16:05:12 +0000 (16:05 +0000)] 
Move IPv6 RA checking and disabling kernel RA higher up the chain.

12 years agoFix a crash.
Roy Marples [Tue, 19 Feb 2013 15:43:29 +0000 (15:43 +0000)] 
Fix a crash.

12 years agoFix compile on BSD
Roy Marples [Tue, 19 Feb 2013 15:28:21 +0000 (15:28 +0000)] 
Fix compile on BSD

12 years agoUse TAILQ macros for IPv4 routes.
Roy Marples [Tue, 19 Feb 2013 15:23:53 +0000 (15:23 +0000)] 
Use TAILQ macros for IPv4 routes.

12 years agoUse a TAILQ macro for our interface list.
Roy Marples [Tue, 19 Feb 2013 13:37:42 +0000 (13:37 +0000)] 
Use a TAILQ macro for our interface list.

12 years agoUse TAILQ macros in eloop for better readability and less code.
Roy Marples [Tue, 19 Feb 2013 11:18:04 +0000 (11:18 +0000)] 
Use TAILQ macros in eloop for better readability and less code.

12 years agoFree the fds structure when finishing.
Roy Marples [Tue, 19 Feb 2013 09:01:15 +0000 (09:01 +0000)] 
Free the fds structure when finishing.

12 years agoFix compile on Linux.
Roy Marples [Mon, 18 Feb 2013 21:45:19 +0000 (21:45 +0000)] 
Fix compile on Linux.

12 years agoComplete transition to pollts(2)
Roy Marples [Mon, 18 Feb 2013 21:35:24 +0000 (21:35 +0000)] 
Complete transition to pollts(2)

12 years agoChange from ppoll(2) to pollts(2).
Roy Marples [Mon, 18 Feb 2013 21:25:07 +0000 (21:25 +0000)] 
Change from ppoll(2) to pollts(2).

I was going to go with ppoll(2) because I would guess the Open Group
would prefer the name of it over pollts(2) if they ever standardised it.
However that causes a problem with _GNU_SOURCE and my code base so I've
gone to pollts(2) and suck in the compat header for Linux users to avoid
that sillyness.

12 years agoRework our signal setup and event loop around ppoll(2).
Roy Marples [Mon, 18 Feb 2013 20:56:55 +0000 (20:56 +0000)] 
Rework our signal setup and event loop around ppoll(2).
ppoll is mapped to pollts(2) for supporting systems.
If pselect(2) is available then we provide a compat shim for that, otherwise
we provide a non race free shim based on poll(2).

12 years agoRestore our signal pipe so that we process signals in our event loop
Roy Marples [Mon, 18 Feb 2013 15:40:56 +0000 (15:40 +0000)] 
Restore our signal pipe so that we process signals in our event loop
as we use a lot of functions which are not safe according to signal(7).

12 years agoDon't reboot if we don't have an active state.
Roy Marples [Mon, 18 Feb 2013 10:37:02 +0000 (10:37 +0000)] 
Don't reboot if we don't have an active state.

12 years agoMove the signal reboot code into it's own function which is fired by
Roy Marples [Mon, 18 Feb 2013 10:35:47 +0000 (10:35 +0000)] 
Move the signal reboot code into it's own function which is fired by
and eloop timeout of 0 seconds. We do this because we shouldn't modify
variables in a signal handler.

12 years agoIf we fail to send an IPv6 RS then DHCP6 won't work either.
Roy Marples [Mon, 18 Feb 2013 08:13:43 +0000 (08:13 +0000)] 
If we fail to send an IPv6 RS then DHCP6 won't work either.

12 years agoRemove debug
Roy Marples [Sun, 17 Feb 2013 18:22:42 +0000 (18:22 +0000)] 
Remove debug

12 years agoWork on FreeBSD9 where we fail on some interfaces
Roy Marples [Sun, 17 Feb 2013 18:17:29 +0000 (18:17 +0000)] 
Work on FreeBSD9 where we fail on some interfaces

12 years agoFix compile on FreeBSD
Roy Marples [Sun, 17 Feb 2013 16:12:54 +0000 (16:12 +0000)] 
Fix compile on FreeBSD

12 years agoIf we don't have a state, send a carrier status
Roy Marples [Sat, 16 Feb 2013 17:53:13 +0000 (17:53 +0000)] 
If we don't have a state, send a carrier status

12 years agoFix compile.
Roy Marples [Sat, 16 Feb 2013 13:25:31 +0000 (13:25 +0000)] 
Fix compile.

12 years agoRemove the xmalloc function.
Roy Marples [Sat, 16 Feb 2013 13:21:35 +0000 (13:21 +0000)] 
Remove the xmalloc function.
Now we have removed all our xmalloc like functions dhcpcd can still
try to operate as best it can in low memory conditions.

12 years agoAvoid printing a silly warning on an unknown option
Roy Marples [Fri, 15 Feb 2013 22:55:42 +0000 (22:55 +0000)] 
Avoid printing a silly warning on an unknown option

12 years agoRemove xstrdup
Roy Marples [Fri, 15 Feb 2013 22:46:47 +0000 (22:46 +0000)] 
Remove xstrdup

12 years agoRemove xrealloc
Roy Marples [Fri, 15 Feb 2013 22:20:18 +0000 (22:20 +0000)] 
Remove xrealloc

12 years agoRemove xzalloc function
Roy Marples [Fri, 15 Feb 2013 21:45:08 +0000 (21:45 +0000)] 
Remove xzalloc function