]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
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.
Roy Marples [Thu, 4 Apr 2013 20:31:04 +0000 (20:31 +0000)]
White space police
Roy Marples [Thu, 4 Apr 2013 20:31:04 +0000 (20:31 +0000)]
Ensure we check options bounds correctly.
Roy Marples [Tue, 2 Apr 2013 19:50:50 +0000 (19:50 +0000)]
The interface to delegate to is optional
Roy Marples [Tue, 2 Apr 2013 16:49:36 +0000 (16:49 +0000)]
Stop ipv6only enabling RS support.
Roy Marples [Tue, 2 Apr 2013 07:30:13 +0000 (07:30 +0000)]
Fix linux default subnet route metric on linux again.
Roy Marples [Tue, 2 Apr 2013 07:01:11 +0000 (07:01 +0000)]
White space brigade
Roy Marples [Tue, 2 Apr 2013 06:50:33 +0000 (06:50 +0000)]
Fix incorrectly expiring routers on multi-homed systems.
Roy Marples [Mon, 1 Apr 2013 12:24:39 +0000 (12:24 +0000)]
Fix IA
Roy Marples [Mon, 1 Apr 2013 12:19:58 +0000 (12:19 +0000)]
Fix default sla_len
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.
Roy Marples [Thu, 28 Mar 2013 06:38:27 +0000 (06:38 +0000)]
Respect xidhwaddr option for DHCPv6
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
Roy Marples [Wed, 27 Mar 2013 15:43:48 +0000 (15:43 +0000)]
Acquire another address faster after NAKing ARP failure.
Roy Marples [Wed, 27 Mar 2013 15:19:48 +0000 (15:19 +0000)]
Create lease files so they are user writeable.
Roy Marples [Tue, 26 Mar 2013 15:28:41 +0000 (15:28 +0000)]
Remove pointless double assignment
Roy Marples [Tue, 26 Mar 2013 11:40:44 +0000 (11:40 +0000)]
Don't spam warning about CSR all the time.
Roy Marples [Tue, 26 Mar 2013 10:48:28 +0000 (10:48 +0000)]
Fix configure --without-pollts
Roy Marples [Tue, 26 Mar 2013 10:42:30 +0000 (10:42 +0000)]
Fix rebooting.
Roy Marples [Tue, 26 Mar 2013 10:39:46 +0000 (10:39 +0000)]
Warn when a route cannot be added because it already exists.
Roy Marples [Tue, 26 Mar 2013 10:39:06 +0000 (10:39 +0000)]
Fix compile for systems without pollts/ppoll or pselect.
Roy Marples [Tue, 26 Mar 2013 08:51:34 +0000 (08:51 +0000)]
Avoid a potential malloc when handling signals.
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.
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.
Roy Marples [Tue, 19 Feb 2013 16:59:58 +0000 (16:59 +0000)]
Change arp errno to match what we use in dhcpcd.
Roy Marples [Tue, 19 Feb 2013 16:32:02 +0000 (16:32 +0000)]
Fix last commit.
Roy Marples [Tue, 19 Feb 2013 16:22:04 +0000 (16:22 +0000)]
Avoid a potential buffer overflow.
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.
Roy Marples [Tue, 19 Feb 2013 15:43:29 +0000 (15:43 +0000)]
Fix a crash.
Roy Marples [Tue, 19 Feb 2013 15:28:21 +0000 (15:28 +0000)]
Fix compile on BSD
Roy Marples [Tue, 19 Feb 2013 15:23:53 +0000 (15:23 +0000)]
Use TAILQ macros for IPv4 routes.
Roy Marples [Tue, 19 Feb 2013 13:37:42 +0000 (13:37 +0000)]
Use a TAILQ macro for our interface list.
Roy Marples [Tue, 19 Feb 2013 11:18:04 +0000 (11:18 +0000)]
Use TAILQ macros in eloop for better readability and less code.
Roy Marples [Tue, 19 Feb 2013 09:01:15 +0000 (09:01 +0000)]
Free the fds structure when finishing.
Roy Marples [Mon, 18 Feb 2013 21:45:19 +0000 (21:45 +0000)]
Fix compile on Linux.
Roy Marples [Mon, 18 Feb 2013 21:35:24 +0000 (21:35 +0000)]
Complete transition 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.
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).
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).
Roy Marples [Mon, 18 Feb 2013 10:37:02 +0000 (10:37 +0000)]
Don't reboot if we don't have an active state.
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.
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.
Roy Marples [Sun, 17 Feb 2013 18:22:42 +0000 (18:22 +0000)]
Remove debug
Roy Marples [Sun, 17 Feb 2013 18:17:29 +0000 (18:17 +0000)]
Work on FreeBSD9 where we fail on some interfaces
Roy Marples [Sun, 17 Feb 2013 16:12:54 +0000 (16:12 +0000)]
Fix compile on FreeBSD
Roy Marples [Sat, 16 Feb 2013 17:53:13 +0000 (17:53 +0000)]
If we don't have a state, send a carrier status
Roy Marples [Sat, 16 Feb 2013 13:25:31 +0000 (13:25 +0000)]
Fix compile.
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.
Roy Marples [Fri, 15 Feb 2013 22:55:42 +0000 (22:55 +0000)]
Avoid printing a silly warning on an unknown option
Roy Marples [Fri, 15 Feb 2013 22:46:47 +0000 (22:46 +0000)]
Remove xstrdup
Roy Marples [Fri, 15 Feb 2013 22:20:18 +0000 (22:20 +0000)]
Remove xrealloc
Roy Marples [Fri, 15 Feb 2013 21:45:08 +0000 (21:45 +0000)]
Remove xzalloc function
Roy Marples [Fri, 15 Feb 2013 20:33:13 +0000 (20:33 +0000)]
Instead of opening link, ipv6, ipv6rs and ipv6ns sockets globally,
only open when the first link wanting this features needs it.
Hopefully fixes #263 and #264.
Roy Marples [Fri, 15 Feb 2013 20:07:26 +0000 (20:07 +0000)]
Add -h|--help option to configure
Roy Marples [Tue, 5 Feb 2013 10:15:59 +0000 (10:15 +0000)]
If we have one interface enabled for IPv6 RS, we stupidly process
RAs for all interfaces we control. This patch fixes this and
updates the man page to reflect this better.
Roy Marples [Mon, 4 Feb 2013 14:12:48 +0000 (14:12 +0000)]
Fix compile on BSD
Roy Marples [Mon, 4 Feb 2013 13:30:35 +0000 (13:30 +0000)]
It's now possible to compile out IPv4 and IPv6 support by passing
--disable-ipv4 or --disable-ipv6 to configure.
Roy Marples [Mon, 4 Feb 2013 11:03:08 +0000 (11:03 +0000)]
Move ipv4 specific code out of net.c and into ipv4.c
Roy Marples [Sun, 3 Feb 2013 22:55:45 +0000 (22:55 +0000)]
Move if_state into interface->if_data as dhcp_state.
This should reduce memory usage for non IPv4 interfaces.
Roy Marples [Sun, 3 Feb 2013 14:52:24 +0000 (14:52 +0000)]
Move ipv4 specific infos from interface to if_state.
Roy Marples [Sun, 3 Feb 2013 10:35:59 +0000 (10:35 +0000)]
Move options away from ipv4 state to the interface.
Roy Marples [Sat, 2 Feb 2013 14:05:55 +0000 (14:05 +0000)]
Remove IPv4 and DHCP4 specific setup from dhcpcd.c and move into ipv4.c
and dhcp.c
Split configure.c into script.c and move the rest into dhcp.c
This starts the goal of making the base of dhcpcd protocol agnostic and
working towards building IPv4 and/or IPv6 code only to reduce size and
allow growing any future new protocol easier.
Roy Marples [Mon, 28 Jan 2013 09:54:51 +0000 (09:54 +0000)]
Fix potential issue if we don't want routes and we fail a decode.
Roy Marples [Mon, 28 Jan 2013 09:45:05 +0000 (09:45 +0000)]
Ensure that nooption correctly woks for routes.
Roy Marples [Fri, 18 Jan 2013 19:59:01 +0000 (19:59 +0000)]
Check the correct interface the RAP came from before overwriting it.
Roy Marples [Thu, 20 Dec 2012 19:35:57 +0000 (19:35 +0000)]
Preserve the space in static routes on the command line.
Roy Marples [Wed, 19 Dec 2012 10:11:50 +0000 (10:11 +0000)]
Release dhcpcd-5.99.3
Roy Marples [Tue, 11 Dec 2012 09:51:48 +0000 (09:51 +0000)]
Fix default onlink value.
Roy Marples [Tue, 11 Dec 2012 09:00:49 +0000 (09:00 +0000)]
Respect the ONLINK flag the prefix option of the RA
Roy Marples [Fri, 7 Dec 2012 10:49:36 +0000 (10:49 +0000)]
Fix compile on BSD.
Roy Marples [Fri, 7 Dec 2012 09:46:49 +0000 (09:46 +0000)]
Log error whe starting DHCPv6 without RA.
Roy Marples [Fri, 7 Dec 2012 09:43:56 +0000 (09:43 +0000)]
If no IPv6 proc or sysctl entries exist for RA or forward, assume it's OK.
Roy Marples [Sat, 24 Nov 2012 20:35:53 +0000 (20:35 +0000)]
Avoid sillyness if not a valid IPv6 address
Roy Marples [Sat, 24 Nov 2012 20:11:49 +0000 (20:11 +0000)]
Set %interface for exported IPv6 link local addresses.
Roy Marples [Tue, 13 Nov 2012 20:40:04 +0000 (20:40 +0000)]
Normalise timing
Roy Marples [Tue, 13 Nov 2012 17:30:19 +0000 (17:30 +0000)]
Move free to exit function.
Roy Marples [Tue, 13 Nov 2012 17:28:47 +0000 (17:28 +0000)]
Discard addresses if expired on reboot
Roy Marples [Tue, 13 Nov 2012 15:40:00 +0000 (15:40 +0000)]
Stop probing when dropped
Roy Marples [Tue, 13 Nov 2012 15:16:27 +0000 (15:16 +0000)]
Send to all dhcp agents instead of all routers.
Roy Marples [Tue, 13 Nov 2012 11:44:20 +0000 (11:44 +0000)]
Use a proper namespace for IPv4LL
Roy Marples [Tue, 13 Nov 2012 11:25:51 +0000 (11:25 +0000)]
Use a proper namespace for eloop
Roy Marples [Tue, 13 Nov 2012 10:17:19 +0000 (10:17 +0000)]
Use a proper namespace for control
Roy Marples [Tue, 13 Nov 2012 09:39:20 +0000 (09:39 +0000)]
Fix some memory issues
Roy Marples [Sun, 11 Nov 2012 19:56:01 +0000 (19:56 +0000)]
Expire the DHCPv6 lease when carrier drops.
Roy Marples [Sun, 11 Nov 2012 19:55:25 +0000 (19:55 +0000)]
Always close this fd
Roy Marples [Sun, 11 Nov 2012 12:19:19 +0000 (12:19 +0000)]
Improve logging of script exiting.
Roy Marples [Sun, 11 Nov 2012 00:25:58 +0000 (00:25 +0000)]
Log posix_spawn(2) errors better.
In our compat shim, use fork(2) if we have it, otherwise vfork(2).
This makes us a lot better in terms of reliability, but sucks for
reporting errors.
Roy Marples [Sun, 11 Nov 2012 00:04:02 +0000 (00:04 +0000)]
Because posix_spawn(2) implementations can use fork(2) we have no
way of knowing any error actually executing the new image,
such as it doesn't exist or no permission.
For the time being, simply log a generic error.
Roy Marples [Sun, 11 Nov 2012 00:03:28 +0000 (00:03 +0000)]
eloop doesn't check errors atm
Roy Marples [Sat, 10 Nov 2012 18:06:14 +0000 (18:06 +0000)]
Break after processing a callback
Roy Marples [Sat, 10 Nov 2012 17:55:37 +0000 (17:55 +0000)]
Fix memory errors
Roy Marples [Sat, 10 Nov 2012 17:29:34 +0000 (17:29 +0000)]
_NSIG seems to be the norm. Use _SIG_MAXSIG if available otherwise guess.
Roy Marples [Sat, 10 Nov 2012 16:53:00 +0000 (16:53 +0000)]
Fix compile of the new compat shims on NetBSD.
Roy Marples [Sat, 10 Nov 2012 16:38:53 +0000 (16:38 +0000)]
Add a pselect(2) shim for systems that lack support for it.
When building, warn that it's not entirely race condition safe.
Roy Marples [Sat, 10 Nov 2012 16:38:52 +0000 (16:38 +0000)]
Replace poll(2) with pselect(2) and vfork(2)+execve(2) with
posix_spawn(3).
Now we block all our signals at startup and allow pselect to
unblock them for the duration of the call. This allows us to
manage interrupts in a fashion to guarantee a consistent
internal state.
I have added a posix_spawn compat shim for systems that lack
that call. pselect(2) has been supported on target for some time
so there is no need for a compat shim there.
Roy Marples [Sat, 10 Nov 2012 08:44:48 +0000 (08:44 +0000)]
Add a message to indicate dhcpcd exited cleanly.
Roy Marples [Fri, 9 Nov 2012 09:50:34 +0000 (09:50 +0000)]
Silence a gcc signed vs unsigned warning by comparing to 0.
Roy Marples [Thu, 8 Nov 2012 00:08:36 +0000 (00:08 +0000)]
We should check start len >0 as len will be zero at this point.
Roy Marples [Wed, 7 Nov 2012 23:51:04 +0000 (23:51 +0000)]
When decoding RCC3397 domains we should ensure that we have
decoded something before changing the last '.' to ' ' and
NULL terminating the string.
Roy Marples [Wed, 7 Nov 2012 14:19:45 +0000 (14:19 +0000)]
Ensure we have a big enough buffer for an escaped DNSSL option.