]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Mon, 6 Oct 2008 12:45:32 +0000 (12:45 +0000)]
static objects are initialized to 0 by default, so don't explicity do this.
Roy Marples [Mon, 6 Oct 2008 08:37:02 +0000 (08:37 +0000)]
We should be able to reboot interfaces we don't already know about.
Roy Marples [Mon, 6 Oct 2008 07:30:17 +0000 (07:30 +0000)]
Simplify the logic of what to put in the message, and ensure that the MTU size is in the DISCOVER message.
Roy Marples [Wed, 1 Oct 2008 11:15:33 +0000 (11:15 +0000)]
Fix TEST.
Roy Marples [Wed, 1 Oct 2008 11:11:42 +0000 (11:11 +0000)]
Build the resolv.conf correctly from the last commit.
Roy Marples [Wed, 1 Oct 2008 10:55:49 +0000 (10:55 +0000)]
Write resolv.conf as per the DHCP message.
Roy Marples [Fri, 26 Sep 2008 07:26:50 +0000 (07:26 +0000)]
Fix -I '' to not send a client ID instead of a blank one, #116.
Roy Marples [Thu, 25 Sep 2008 22:04:11 +0000 (22:04 +0000)]
svn repo
Roy Marples [Thu, 25 Sep 2008 21:23:47 +0000 (21:23 +0000)]
Punt
Roy Marples [Thu, 25 Sep 2008 21:23:16 +0000 (21:23 +0000)]
Punt old dirs and work with svn.
Roy Marples [Fri, 19 Sep 2008 23:31:17 +0000 (23:31 +0000)]
Fix comment.
Roy Marples [Fri, 19 Sep 2008 13:36:40 +0000 (13:36 +0000)]
4.99.2
Roy Marples [Wed, 17 Sep 2008 13:09:30 +0000 (13:09 +0000)]
As we now use times to trigger again instead of decreasing timers, ensure our lease fits. We may wish to revisit this again if we need decreasing timers once more.
Roy Marples [Wed, 17 Sep 2008 10:37:03 +0000 (10:37 +0000)]
Fix pointer.
Roy Marples [Wed, 17 Sep 2008 10:32:55 +0000 (10:32 +0000)]
Move wireless detection from net.c into if-bsd.c and if-linux.c
Roy Marples [Wed, 17 Sep 2008 10:32:34 +0000 (10:32 +0000)]
Document metrics better.
Roy Marples [Wed, 17 Sep 2008 08:29:56 +0000 (08:29 +0000)]
Fix rebooting off a signal.
Roy Marples [Tue, 16 Sep 2008 13:17:23 +0000 (13:17 +0000)]
Allow the release keyword in dhcpcd.conf to release the lease on shutdown.
Roy Marples [Tue, 16 Sep 2008 13:15:21 +0000 (13:15 +0000)]
Fix compile.
Roy Marples [Tue, 16 Sep 2008 10:02:14 +0000 (10:02 +0000)]
Fix discovery
Roy Marples [Tue, 16 Sep 2008 09:55:46 +0000 (09:55 +0000)]
Move AF_LINK discovery to if-bsd.c. Also, we only work with IFT_ETHER types currently, so skip others.
Roy Marples [Mon, 15 Sep 2008 19:31:18 +0000 (19:31 +0000)]
Loads of changes, so the next full version will be 5.0. We'll releae 4.99.1 here.
Roy Marples [Mon, 15 Sep 2008 19:30:44 +0000 (19:30 +0000)]
Remove debug.
Roy Marples [Mon, 15 Sep 2008 19:15:52 +0000 (19:15 +0000)]
We need to flush the ARP table after configuring new routes.
Roy Marples [Mon, 15 Sep 2008 16:53:11 +0000 (16:53 +0000)]
Add subnet routes to our routing table so we can change them for systems without metrics.
Roy Marples [Mon, 15 Sep 2008 16:43:57 +0000 (16:43 +0000)]
Fix segfault when passing options in.
Roy Marples [Mon, 15 Sep 2008 16:43:27 +0000 (16:43 +0000)]
Fix reboot timeout in dhcpcd.conf.
Roy Marples [Mon, 15 Sep 2008 15:23:46 +0000 (15:23 +0000)]
Reboot off the last lease and use the last lease if not expired and user has asked for it. Also, add a reboot timeout toggle (default 10 seconds).
Roy Marples [Mon, 15 Sep 2008 15:20:37 +0000 (15:20 +0000)]
Correctly set the REBOOT reason.
Roy Marples [Mon, 15 Sep 2008 15:20:09 +0000 (15:20 +0000)]
Don't decline leases that we loaded from disk.
Roy Marples [Mon, 15 Sep 2008 09:05:29 +0000 (09:05 +0000)]
Fix subnet routes. This needs more testing.
Roy Marples [Mon, 15 Sep 2008 09:02:56 +0000 (09:02 +0000)]
Don't overflow the buffer.
Roy Marples [Sun, 14 Sep 2008 09:07:34 +0000 (09:07 +0000)]
Ensure that routes go via the correct interface and set netmask correctly.
Roy Marples [Sun, 14 Sep 2008 09:06:22 +0000 (09:06 +0000)]
We may change size of hwaddr_buffer, so just use sizeof.
Roy Marples [Sat, 13 Sep 2008 11:17:24 +0000 (11:17 +0000)]
We need to drop config on carrier loss now.
Roy Marples [Sat, 13 Sep 2008 10:49:23 +0000 (10:49 +0000)]
We don't add this anymore.
Roy Marples [Sat, 13 Sep 2008 10:48:48 +0000 (10:48 +0000)]
Fix subnet route.
Roy Marples [Fri, 12 Sep 2008 18:08:07 +0000 (18:08 +0000)]
Remove remembering routes per interface and have a global routing table so we can change routes depending on interface state. This is very useful for the BSD's where there is no route metric.
Roy Marples [Thu, 11 Sep 2008 22:55:27 +0000 (22:55 +0000)]
Drop interfaces in reverse order when stopping and handle removal of interfaces in one function.
Roy Marples [Thu, 11 Sep 2008 15:50:19 +0000 (15:50 +0000)]
Fix removing old config.
Roy Marples [Thu, 11 Sep 2008 09:56:57 +0000 (09:56 +0000)]
Tidy up some valgrind errors.
Roy Marples [Thu, 11 Sep 2008 09:38:02 +0000 (09:38 +0000)]
Add allowinterfaces and denyinterfaces options to dhcpcd.conf for better multiple interface support.
Roy Marples [Thu, 11 Sep 2008 08:28:39 +0000 (08:28 +0000)]
Allow quiet and nobackground to work in dhcpcd.conf
Roy Marples [Wed, 10 Sep 2008 12:39:20 +0000 (12:39 +0000)]
Move function lower down as it's not that important.
Roy Marples [Wed, 10 Sep 2008 12:34:25 +0000 (12:34 +0000)]
Export IF_METRIC to resolvconf. We should change to the -m option when openresolv-1.8 gets around abit.
Roy Marples [Tue, 9 Sep 2008 20:52:39 +0000 (20:52 +0000)]
Fix interface detection.
Roy Marples [Tue, 9 Sep 2008 20:52:21 +0000 (20:52 +0000)]
Fix memory errors.
Roy Marples [Tue, 9 Sep 2008 19:07:37 +0000 (19:07 +0000)]
Fix compile errors.
Roy Marples [Tue, 9 Sep 2008 17:07:48 +0000 (17:07 +0000)]
Sort interfaces according to preference and pass this to dhcpcd-run-hooks so we can prefer configs.
Roy Marples [Tue, 9 Sep 2008 15:36:50 +0000 (15:36 +0000)]
We don't create these files, so don't clean them.
Roy Marples [Tue, 9 Sep 2008 08:16:15 +0000 (08:16 +0000)]
We no longer ship .sh files, so remove the construct.
Roy Marples [Mon, 8 Sep 2008 11:30:31 +0000 (11:30 +0000)]
On Linux, fix replacing the kernel added subnet route correctly for metrics.
Roy Marples [Mon, 8 Sep 2008 11:28:12 +0000 (11:28 +0000)]
Fix renewing.
Roy Marples [Mon, 8 Sep 2008 08:19:06 +0000 (08:19 +0000)]
Use -S to test full compiler flags.
Roy Marples [Sat, 6 Sep 2008 19:41:05 +0000 (19:41 +0000)]
Check carrier when starting reboot.
Roy Marples [Sat, 6 Sep 2008 19:24:40 +0000 (19:24 +0000)]
Style.
Roy Marples [Sat, 6 Sep 2008 18:43:27 +0000 (18:43 +0000)]
ocets might as well be size_t. This also fixes a segfault whe compiled with pcc.
Roy Marples [Sat, 6 Sep 2008 18:24:27 +0000 (18:24 +0000)]
Tests now work with gcc and pcc.
Roy Marples [Sat, 6 Sep 2008 15:53:31 +0000 (15:53 +0000)]
Always test our cc options with a valid input file.
Roy Marples [Fri, 5 Sep 2008 19:44:02 +0000 (19:44 +0000)]
Should use LOG_DAEMON as we're a DHCP Client Daemon
Roy Marples [Fri, 5 Sep 2008 18:24:34 +0000 (18:24 +0000)]
Remove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD/amd64 from before changing strerror to %m.
Roy Marples [Fri, 5 Sep 2008 15:46:02 +0000 (15:46 +0000)]
Don't spam on startup about unsupported interfaces if quiet.
Roy Marples [Fri, 5 Sep 2008 15:28:08 +0000 (15:28 +0000)]
Fix the define for GLIBC. uClibc just passes syslog to printf, so assume %m works there also.
Roy Marples [Fri, 5 Sep 2008 14:16:53 +0000 (14:16 +0000)]
Save more memory, malloc the pidfile.
Roy Marples [Fri, 5 Sep 2008 13:28:44 +0000 (13:28 +0000)]
Don't use a needless buffer for cffile.
Roy Marples [Fri, 5 Sep 2008 13:12:35 +0000 (13:12 +0000)]
As our logger calls emulate syslog, we can use %m. However, this means we have to convert it for printf as POSIX does not require that printf supports it. This also means we drop -pedantic from our GCC flags.
Roy Marples [Fri, 5 Sep 2008 11:54:44 +0000 (11:54 +0000)]
Pack the dhcp structure.
Roy Marples [Fri, 5 Sep 2008 11:46:03 +0000 (11:46 +0000)]
Mark functions as _noreturn.
Roy Marples [Fri, 5 Sep 2008 07:31:09 +0000 (07:31 +0000)]
Make TEST work once more.
Roy Marples [Fri, 5 Sep 2008 07:22:03 +0000 (07:22 +0000)]
Remove some ints and replace with our option mask.
Roy Marples [Thu, 4 Sep 2008 22:41:33 +0000 (22:41 +0000)]
Add the remembered routes in reverse order. This saves having to reverse them later, and uses less code. Remember the new subnet route when changing it for the metric.
Roy Marples [Thu, 4 Sep 2008 22:02:57 +0000 (22:02 +0000)]
Ensure last is set when deleting events.
Roy Marples [Thu, 4 Sep 2008 22:02:32 +0000 (22:02 +0000)]
Ensure background is initialised.
Roy Marples [Thu, 4 Sep 2008 15:42:09 +0000 (15:42 +0000)]
Mark as daemonised correctly.
Roy Marples [Thu, 4 Sep 2008 15:24:55 +0000 (15:24 +0000)]
Make background work again.
Roy Marples [Thu, 4 Sep 2008 14:12:20 +0000 (14:12 +0000)]
Fix compile.
Roy Marples [Thu, 4 Sep 2008 14:08:14 +0000 (14:08 +0000)]
Enable detection of addition and removal of interfaces on Linux.
Roy Marples [Thu, 4 Sep 2008 11:43:56 +0000 (11:43 +0000)]
Fix compile on Linux.
Roy Marples [Thu, 4 Sep 2008 11:30:11 +0000 (11:30 +0000)]
When OS reports new and removed interfaces, dhcpcd sees this and either starts or stops watching them. BSD only, Linux to follow.
Roy Marples [Thu, 4 Sep 2008 09:43:52 +0000 (09:43 +0000)]
If we fail to send a packet, remove the interface from consideration.
Roy Marples [Thu, 4 Sep 2008 09:43:33 +0000 (09:43 +0000)]
Not needed.
Roy Marples [Thu, 4 Sep 2008 08:48:06 +0000 (08:48 +0000)]
Only free the option buffer when debugging memory leaks.
Roy Marples [Thu, 4 Sep 2008 08:31:00 +0000 (08:31 +0000)]
Use static buffers for ARP and move the send code to arp.c. Also, move the hwaddr buffer to the top of the file for clarity.
Roy Marples [Thu, 4 Sep 2008 08:27:38 +0000 (08:27 +0000)]
No need to be this complicated.
Roy Marples [Thu, 4 Sep 2008 08:20:26 +0000 (08:20 +0000)]
Ensure that clientid is free before reallocing it.
Roy Marples [Wed, 3 Sep 2008 23:36:46 +0000 (23:36 +0000)]
Work around broken linux headers when including wireless.h
Roy Marples [Wed, 3 Sep 2008 19:27:47 +0000 (19:27 +0000)]
Allow 5 control socket connections at once. Time each out after 5 minutes.
Roy Marples [Wed, 3 Sep 2008 16:50:52 +0000 (16:50 +0000)]
Merge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Wed, 3 Sep 2008 16:49:28 +0000 (16:49 +0000)]
Add a control socket so that interfaces can be dynamically re-set.
This requires the event loop argument being changed to void *
so we can send arguments other than an interface.
Roy Marples [Tue, 2 Sep 2008 18:29:49 +0000 (18:29 +0000)]
Clean code.
Roy Marples [Tue, 2 Sep 2008 15:35:02 +0000 (15:35 +0000)]
Don't need this.
Roy Marples [Tue, 2 Sep 2008 15:25:14 +0000 (15:25 +0000)]
Fix compile and wireless test on FreeBSD.
Roy Marples [Tue, 2 Sep 2008 15:11:01 +0000 (15:11 +0000)]
Add wireless detection to NetBSD (tested) and FreeBSD (untested).
Roy Marples [Tue, 2 Sep 2008 15:07:01 +0000 (15:07 +0000)]
strncpy -> strlcpy.
Roy Marples [Tue, 2 Sep 2008 13:28:11 +0000 (13:28 +0000)]
Add an event loop.
Split client.c into smaller files and functions and
recode around the event loop.
Add multiple interface support using the new event loop.
Document changes and outstanding bugs.
Roy Marples [Tue, 26 Aug 2008 13:27:07 +0000 (13:27 +0000)]
Style
Roy Marples [Mon, 25 Aug 2008 07:34:10 +0000 (07:34 +0000)]
Fix CMDLINE_COMPAT.
Roy Marples [Sun, 24 Aug 2008 11:56:30 +0000 (11:56 +0000)]
Release dhcpcd-4.0.0 :D
Roy Marples [Fri, 22 Aug 2008 09:48:25 +0000 (09:48 +0000)]
Style.
Roy Marples [Fri, 22 Aug 2008 09:44:02 +0000 (09:44 +0000)]
Don't errors when opening a UDP socket for INADDR_ANY and soemthing else already has it open.