]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
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.
Roy Marples [Thu, 21 Aug 2008 08:52:34 +0000 (08:52 +0000)]
Always open a UDP port on the interface.
This stops ICMP not reachable messages when dhcpcd first starts and
the IP we get is already configured on the interface.
Roy Marples [Wed, 20 Aug 2008 08:50:38 +0000 (08:50 +0000)]
Move the --renew option to --rebind as it's more accurate (both are -n). Support --renew when CMDLINE_COMPAT is enabled.
Roy Marples [Wed, 20 Aug 2008 08:40:53 +0000 (08:40 +0000)]
Clarify that dhcpcd will not re-configure itself or use any command line arguments when signalling an existing process to renew.
Roy Marples [Tue, 19 Aug 2008 13:31:59 +0000 (13:31 +0000)]
We should really enter the rebinding state on a requested renew as we're broadcasting instead of unicasting.
Roy Marples [Tue, 19 Aug 2008 10:18:31 +0000 (10:18 +0000)]
Don't run PREINIT when testing.
Roy Marples [Mon, 18 Aug 2008 18:35:12 +0000 (18:35 +0000)]
Fix Test returning to userland.
Roy Marples [Mon, 18 Aug 2008 18:34:40 +0000 (18:34 +0000)]
pidfiles normally have a new line
Roy Marples [Mon, 18 Aug 2008 12:46:18 +0000 (12:46 +0000)]
Fix some config reading.
Roy Marples [Mon, 18 Aug 2008 12:43:05 +0000 (12:43 +0000)]
The require directive now requires that the required options are present in each DHCP message. A few variables and functions have also been renamed to make this part more readable.
Roy Marples [Sun, 17 Aug 2008 15:13:23 +0000 (15:13 +0000)]
Document correct background option in dhcpcd.conf
Roy Marples [Fri, 15 Aug 2008 19:29:24 +0000 (19:29 +0000)]
Fix compat.
Roy Marples [Fri, 15 Aug 2008 19:24:39 +0000 (19:24 +0000)]
Release dhcpcd-4.0.0-rc5
Roy Marples [Fri, 15 Aug 2008 11:33:33 +0000 (11:33 +0000)]
If cmp and diff aren't around, try a text match using cat. After all, we are working with text files.
Roy Marples [Fri, 15 Aug 2008 11:06:27 +0000 (11:06 +0000)]
Don't enforce that keys are space separated
Roy Marples [Fri, 15 Aug 2008 09:07:56 +0000 (09:07 +0000)]
sed may not always be available, so use shell loops to replicate behaviour in this case
Roy Marples [Fri, 15 Aug 2008 03:31:37 +0000 (03:31 +0000)]
Fix cmp test.
Roy Marples [Fri, 15 Aug 2008 03:22:21 +0000 (03:22 +0000)]
Remove the append/clean framework and prefer a store and merge
approach. It's more work, but the end result looks cleaner.
Roy Marples [Thu, 14 Aug 2008 16:16:06 +0000 (16:16 +0000)]
Re-jig the order of doing things to improve our logging.
Roy Marples [Thu, 14 Aug 2008 16:15:45 +0000 (16:15 +0000)]
If a device is not found, report it.
Roy Marples [Thu, 14 Aug 2008 16:00:37 +0000 (16:00 +0000)]
Don't warn about dhcpcd not running when using --renew.
Roy Marples [Thu, 14 Aug 2008 12:37:44 +0000 (12:37 +0000)]
Don't error if no interfaces or the state dir does not exist.
Roy Marples [Thu, 14 Aug 2008 12:17:23 +0000 (12:17 +0000)]
Set the main state dir in the main hook script.
Roy Marples [Thu, 14 Aug 2008 12:14:23 +0000 (12:14 +0000)]
Don't quote for uniqify and use 1 sed call instead of looping.
Roy Marples [Thu, 14 Aug 2008 11:00:58 +0000 (11:00 +0000)]
Move uniqify to dhcpcd-run-hooks
Roy Marples [Thu, 14 Aug 2008 10:38:15 +0000 (10:38 +0000)]
If resolvconf is not present, try and emulate it's functionality just for dhcpcd so we can sanely handle >1 instance running.
Roy Marples [Thu, 14 Aug 2008 10:37:11 +0000 (10:37 +0000)]
Make signature more sane and fix comment.
Roy Marples [Thu, 14 Aug 2008 08:34:38 +0000 (08:34 +0000)]
We should always run the script on FAIL.
Roy Marples [Thu, 14 Aug 2008 08:06:21 +0000 (08:06 +0000)]
Be consistent with dhcient - always PREINIT on startup. We can use this to purge stale configuration.
Roy Marples [Wed, 13 Aug 2008 21:29:30 +0000 (21:29 +0000)]
classid -> vendorclassid to match the RFC description.
Roy Marples [Wed, 13 Aug 2008 20:26:41 +0000 (20:26 +0000)]
Allow reqmask of numbers.
Roy Marples [Wed, 13 Aug 2008 19:41:40 +0000 (19:41 +0000)]
Fix INFORM and document it in dhcpcd-run-hooks.
Roy Marples [Wed, 13 Aug 2008 17:06:02 +0000 (17:06 +0000)]
Fix segfault.
Roy Marples [Wed, 13 Aug 2008 16:02:42 +0000 (16:02 +0000)]
Check for localhost.localdomain as needing a new hostname.
Roy Marples [Wed, 13 Aug 2008 15:39:34 +0000 (15:39 +0000)]
Support head and tail files for resolv.conf
Roy Marples [Wed, 13 Aug 2008 15:09:13 +0000 (15:09 +0000)]
Scrub compile warnings on FreeBSD.
Roy Marples [Wed, 13 Aug 2008 14:56:46 +0000 (14:56 +0000)]
Fix removing old stale entries.
Roy Marples [Wed, 13 Aug 2008 14:53:46 +0000 (14:53 +0000)]
content -> configuration
Roy Marples [Wed, 13 Aug 2008 14:46:49 +0000 (14:46 +0000)]
Remove the word inteface from the signature.
Roy Marples [Wed, 13 Aug 2008 13:00:20 +0000 (13:00 +0000)]
Use append_conf return value.
Roy Marples [Wed, 13 Aug 2008 12:35:33 +0000 (12:35 +0000)]
Don't cast needlessly.
Roy Marples [Wed, 13 Aug 2008 12:29:32 +0000 (12:29 +0000)]
Fix an buffer overflow leading to random bytes in the hardware address.
Roy Marples [Wed, 13 Aug 2008 12:07:27 +0000 (12:07 +0000)]
Add a framework for top an tailing config files with DHCP data and a method for cleaning them.
Roy Marples [Tue, 12 Aug 2008 23:56:09 +0000 (23:56 +0000)]
Fix -n when already running.
Roy Marples [Tue, 12 Aug 2008 23:32:18 +0000 (23:32 +0000)]
Remove the signature variable - each hook makes it's own.
ntp.conf now preserves existing server entries and cleans stale dhcpcd
entries
Roy Marples [Tue, 12 Aug 2008 22:51:33 +0000 (22:51 +0000)]
Default target should not be install ...
Roy Marples [Tue, 12 Aug 2008 20:46:42 +0000 (20:46 +0000)]
ntp.conf could have more than just servers, but DHCP only knows about servers. Solution == use egrep to grab everything but servers and append to it :)
Roy Marples [Tue, 12 Aug 2008 20:44:42 +0000 (20:44 +0000)]
Don't assume comments start with #
Roy Marples [Tue, 12 Aug 2008 16:56:35 +0000 (16:56 +0000)]
Document dhcpcd spining with dhcpcd -x.
Roy Marples [Tue, 12 Aug 2008 16:52:56 +0000 (16:52 +0000)]
leased from should be time_t. Also, add boundtime for the last commit to work.
Roy Marples [Tue, 12 Aug 2008 16:45:12 +0000 (16:45 +0000)]
When requesting an address, probe for it first.
If we have a monotonic clock, then remove time
taken from bound -> announced from the renewal time.