]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoWe no longer ship .sh files, so remove the construct.
Roy Marples [Tue, 9 Sep 2008 08:16:15 +0000 (08:16 +0000)] 
We no longer ship .sh files, so remove the construct.

17 years agoOn Linux, fix replacing the kernel added subnet route correctly for metrics.
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.

17 years agoFix renewing.
Roy Marples [Mon, 8 Sep 2008 11:28:12 +0000 (11:28 +0000)] 
Fix renewing.

17 years agoUse -S to test full compiler flags.
Roy Marples [Mon, 8 Sep 2008 08:19:06 +0000 (08:19 +0000)] 
Use -S to test full compiler flags.

17 years agoCheck carrier when starting reboot.
Roy Marples [Sat, 6 Sep 2008 19:41:05 +0000 (19:41 +0000)] 
Check carrier when starting reboot.

17 years agoStyle.
Roy Marples [Sat, 6 Sep 2008 19:24:40 +0000 (19:24 +0000)] 
Style.

17 years agoocets might as well be size_t. This also fixes a segfault whe compiled with pcc.
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.

17 years agoTests now work with gcc and pcc.
Roy Marples [Sat, 6 Sep 2008 18:24:27 +0000 (18:24 +0000)] 
Tests now work with gcc and pcc.

17 years agoAlways test our cc options with a valid input file.
Roy Marples [Sat, 6 Sep 2008 15:53:31 +0000 (15:53 +0000)] 
Always test our cc options with a valid input file.

17 years agoShould use LOG_DAEMON as we're a DHCP Client Daemon
Roy Marples [Fri, 5 Sep 2008 19:44:02 +0000 (19:44 +0000)] 
Should use LOG_DAEMON as we're a DHCP Client Daemon

17 years agoRemove logger and exclusively uses syslog instead. This saves almost 2K on NetBSD...
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.

17 years agoDon't spam on startup about unsupported interfaces if quiet.
Roy Marples [Fri, 5 Sep 2008 15:46:02 +0000 (15:46 +0000)] 
Don't spam on startup about unsupported interfaces if quiet.

17 years agoFix the define for GLIBC. uClibc just passes syslog to printf, so assume %m works...
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.

17 years agoSave more memory, malloc the pidfile.
Roy Marples [Fri, 5 Sep 2008 14:16:53 +0000 (14:16 +0000)] 
Save more memory, malloc the pidfile.

17 years agoDon't use a needless buffer for cffile.
Roy Marples [Fri, 5 Sep 2008 13:28:44 +0000 (13:28 +0000)] 
Don't use a needless buffer for cffile.

17 years agoAs our logger calls emulate syslog, we can use %m. However, this means we have to...
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.

17 years agoPack the dhcp structure.
Roy Marples [Fri, 5 Sep 2008 11:54:44 +0000 (11:54 +0000)] 
Pack the dhcp structure.

17 years agoMark functions as _noreturn.
Roy Marples [Fri, 5 Sep 2008 11:46:03 +0000 (11:46 +0000)] 
Mark functions as _noreturn.

17 years agoMake TEST work once more.
Roy Marples [Fri, 5 Sep 2008 07:31:09 +0000 (07:31 +0000)] 
Make TEST work once more.

17 years agoRemove some ints and replace with our option mask.
Roy Marples [Fri, 5 Sep 2008 07:22:03 +0000 (07:22 +0000)] 
Remove some ints and replace with our option mask.

17 years agoAdd the remembered routes in reverse order. This saves having to reverse them later...
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.

17 years agoEnsure last is set when deleting events.
Roy Marples [Thu, 4 Sep 2008 22:02:57 +0000 (22:02 +0000)] 
Ensure last is set when deleting events.

17 years agoEnsure background is initialised.
Roy Marples [Thu, 4 Sep 2008 22:02:32 +0000 (22:02 +0000)] 
Ensure background is initialised.

17 years agoMark as daemonised correctly.
Roy Marples [Thu, 4 Sep 2008 15:42:09 +0000 (15:42 +0000)] 
Mark as daemonised correctly.

17 years agoMake background work again.
Roy Marples [Thu, 4 Sep 2008 15:24:55 +0000 (15:24 +0000)] 
Make background work again.

17 years agoFix compile.
Roy Marples [Thu, 4 Sep 2008 14:12:20 +0000 (14:12 +0000)] 
Fix compile.

17 years agoEnable detection of addition and removal of interfaces on Linux.
Roy Marples [Thu, 4 Sep 2008 14:08:14 +0000 (14:08 +0000)] 
Enable detection of addition and removal of interfaces on Linux.

17 years agoFix compile on Linux.
Roy Marples [Thu, 4 Sep 2008 11:43:56 +0000 (11:43 +0000)] 
Fix compile on Linux.

17 years agoWhen OS reports new and removed interfaces, dhcpcd sees this and either starts or...
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.

17 years agoIf we fail to send a packet, remove the interface from consideration.
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.

17 years agoNot needed.
Roy Marples [Thu, 4 Sep 2008 09:43:33 +0000 (09:43 +0000)] 
Not needed.

17 years agoOnly free the option buffer when debugging memory leaks.
Roy Marples [Thu, 4 Sep 2008 08:48:06 +0000 (08:48 +0000)] 
Only free the option buffer when debugging memory leaks.

17 years agoUse static buffers for ARP and move the send code to arp.c. Also, move the hwaddr...
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.

17 years agoNo need to be this complicated.
Roy Marples [Thu, 4 Sep 2008 08:27:38 +0000 (08:27 +0000)] 
No need to be this complicated.

17 years agoEnsure that clientid is free before reallocing it.
Roy Marples [Thu, 4 Sep 2008 08:20:26 +0000 (08:20 +0000)] 
Ensure that clientid is free before reallocing it.

17 years agoWork around broken linux headers when including wireless.h
Roy Marples [Wed, 3 Sep 2008 23:36:46 +0000 (23:36 +0000)] 
Work around broken linux headers when including wireless.h

17 years agoAllow 5 control socket connections at once. Time each out after 5 minutes.
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.

17 years agoMerge branch 'master' of git.marples.name:/var/git/dhcpcd
Roy Marples [Wed, 3 Sep 2008 16:50:52 +0000 (16:50 +0000)] 
Merge branch 'master' of git.marples.name:/var/git/dhcpcd

17 years agoAdd a control socket so that interfaces can be dynamically re-set.
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.

17 years agoClean code.
Roy Marples [Tue, 2 Sep 2008 18:29:49 +0000 (18:29 +0000)] 
Clean code.

17 years agoDon't need this.
Roy Marples [Tue, 2 Sep 2008 15:35:02 +0000 (15:35 +0000)] 
Don't need this.

17 years agoFix compile and wireless test on FreeBSD.
Roy Marples [Tue, 2 Sep 2008 15:25:14 +0000 (15:25 +0000)] 
Fix compile and wireless test on FreeBSD.

17 years agoAdd wireless detection to NetBSD (tested) and FreeBSD (untested).
Roy Marples [Tue, 2 Sep 2008 15:11:01 +0000 (15:11 +0000)] 
Add wireless detection to NetBSD (tested) and FreeBSD (untested).

17 years agostrncpy -> strlcpy.
Roy Marples [Tue, 2 Sep 2008 15:07:01 +0000 (15:07 +0000)] 
strncpy -> strlcpy.

17 years agoAdd an event loop.
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.

17 years agoStyle
Roy Marples [Tue, 26 Aug 2008 13:27:07 +0000 (13:27 +0000)] 
Style

17 years agoFix CMDLINE_COMPAT.
Roy Marples [Mon, 25 Aug 2008 07:34:10 +0000 (07:34 +0000)] 
Fix CMDLINE_COMPAT.

17 years agoRelease dhcpcd-4.0.0 :D
Roy Marples [Sun, 24 Aug 2008 11:56:30 +0000 (11:56 +0000)] 
Release dhcpcd-4.0.0 :D

17 years agoStyle.
Roy Marples [Fri, 22 Aug 2008 09:48:25 +0000 (09:48 +0000)] 
Style.

17 years agoDon't errors when opening a UDP socket for INADDR_ANY and soemthing else already...
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.

17 years agoAlways open a UDP port on the interface.
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.

17 years agoMove the --renew option to --rebind as it's more accurate (both are -n). Support...
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.

17 years agoClarify that dhcpcd will not re-configure itself or use any command line arguments...
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.

17 years agoWe should really enter the rebinding state on a requested renew as we're broadcasting...
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.

17 years agoDon't run PREINIT when testing.
Roy Marples [Tue, 19 Aug 2008 10:18:31 +0000 (10:18 +0000)] 
Don't run PREINIT when testing.

17 years agoFix Test returning to userland.
Roy Marples [Mon, 18 Aug 2008 18:35:12 +0000 (18:35 +0000)] 
Fix Test returning to userland.

17 years agopidfiles normally have a new line
Roy Marples [Mon, 18 Aug 2008 18:34:40 +0000 (18:34 +0000)] 
pidfiles normally have a new line

17 years agoFix some config reading.
Roy Marples [Mon, 18 Aug 2008 12:46:18 +0000 (12:46 +0000)] 
Fix some config reading.

17 years agoThe require directive now requires that the required options are present in each...
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.

17 years agoDocument correct background option in dhcpcd.conf
Roy Marples [Sun, 17 Aug 2008 15:13:23 +0000 (15:13 +0000)] 
Document correct background option in dhcpcd.conf

17 years agoFix compat.
Roy Marples [Fri, 15 Aug 2008 19:29:24 +0000 (19:29 +0000)] 
Fix compat.

17 years agoRelease dhcpcd-4.0.0-rc5
Roy Marples [Fri, 15 Aug 2008 19:24:39 +0000 (19:24 +0000)] 
Release dhcpcd-4.0.0-rc5

17 years agoIf cmp and diff aren't around, try a text match using cat. After all, we are working...
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.

17 years agoDon't enforce that keys are space separated
Roy Marples [Fri, 15 Aug 2008 11:06:27 +0000 (11:06 +0000)] 
Don't enforce that keys are space separated

17 years agosed may not always be available, so use shell loops to replicate behaviour in this...
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

17 years agoFix cmp test.
Roy Marples [Fri, 15 Aug 2008 03:31:37 +0000 (03:31 +0000)] 
Fix cmp test.

17 years agoRemove the append/clean framework and prefer a store and merge
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.

17 years agoRe-jig the order of doing things to improve our logging.
Roy Marples [Thu, 14 Aug 2008 16:16:06 +0000 (16:16 +0000)] 
Re-jig the order of doing things to improve our logging.

17 years agoIf a device is not found, report it.
Roy Marples [Thu, 14 Aug 2008 16:15:45 +0000 (16:15 +0000)] 
If a device is not found, report it.

17 years agoDon't warn about dhcpcd not running when using --renew.
Roy Marples [Thu, 14 Aug 2008 16:00:37 +0000 (16:00 +0000)] 
Don't warn about dhcpcd not running when using --renew.

17 years agoDon't error if no interfaces or the state dir does not exist.
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.

17 years agoSet the main state dir in the main hook script.
Roy Marples [Thu, 14 Aug 2008 12:17:23 +0000 (12:17 +0000)] 
Set the main state dir in the main hook script.

17 years agoDon't quote for uniqify and use 1 sed call instead of looping.
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.

17 years agoMove uniqify to dhcpcd-run-hooks
Roy Marples [Thu, 14 Aug 2008 11:00:58 +0000 (11:00 +0000)] 
Move uniqify to dhcpcd-run-hooks

17 years agoIf resolvconf is not present, try and emulate it's functionality just for dhcpcd...
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.

17 years agoMake signature more sane and fix comment.
Roy Marples [Thu, 14 Aug 2008 10:37:11 +0000 (10:37 +0000)] 
Make signature more sane and fix comment.

17 years agoWe should always run the script on FAIL.
Roy Marples [Thu, 14 Aug 2008 08:34:38 +0000 (08:34 +0000)] 
We should always run the script on FAIL.

17 years agoBe consistent with dhcient - always PREINIT on startup. We can use this to purge...
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.

17 years agoclassid -> vendorclassid to match the RFC description.
Roy Marples [Wed, 13 Aug 2008 21:29:30 +0000 (21:29 +0000)] 
classid -> vendorclassid to match the RFC description.

17 years agoAllow reqmask of numbers.
Roy Marples [Wed, 13 Aug 2008 20:26:41 +0000 (20:26 +0000)] 
Allow reqmask of numbers.

17 years agoFix INFORM and document it in dhcpcd-run-hooks.
Roy Marples [Wed, 13 Aug 2008 19:41:40 +0000 (19:41 +0000)] 
Fix INFORM and document it in dhcpcd-run-hooks.

17 years agoFix segfault.
Roy Marples [Wed, 13 Aug 2008 17:06:02 +0000 (17:06 +0000)] 
Fix segfault.

17 years agoCheck for localhost.localdomain as needing a new hostname.
Roy Marples [Wed, 13 Aug 2008 16:02:42 +0000 (16:02 +0000)] 
Check for localhost.localdomain as needing a new hostname.

17 years agoSupport head and tail files for resolv.conf
Roy Marples [Wed, 13 Aug 2008 15:39:34 +0000 (15:39 +0000)] 
Support head and tail files for resolv.conf

17 years agoScrub compile warnings on FreeBSD.
Roy Marples [Wed, 13 Aug 2008 15:09:13 +0000 (15:09 +0000)] 
Scrub compile warnings on FreeBSD.

17 years agoFix removing old stale entries.
Roy Marples [Wed, 13 Aug 2008 14:56:46 +0000 (14:56 +0000)] 
Fix removing old stale entries.

17 years agocontent -> configuration
Roy Marples [Wed, 13 Aug 2008 14:53:46 +0000 (14:53 +0000)] 
content -> configuration

17 years agoRemove the word inteface from the signature.
Roy Marples [Wed, 13 Aug 2008 14:46:49 +0000 (14:46 +0000)] 
Remove the word inteface from the signature.

17 years agoUse append_conf return value.
Roy Marples [Wed, 13 Aug 2008 13:00:20 +0000 (13:00 +0000)] 
Use append_conf return value.

17 years agoDon't cast needlessly.
Roy Marples [Wed, 13 Aug 2008 12:35:33 +0000 (12:35 +0000)] 
Don't cast needlessly.

17 years agoFix an buffer overflow leading to random bytes in the hardware address.
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.

17 years agoAdd a framework for top an tailing config files with DHCP data and a method for clean...
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.

17 years agoFix -n when already running.
Roy Marples [Tue, 12 Aug 2008 23:56:09 +0000 (23:56 +0000)] 
Fix -n when already running.

17 years agoRemove the signature variable - each hook makes it's own.
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

17 years agoDefault target should not be install ...
Roy Marples [Tue, 12 Aug 2008 22:51:33 +0000 (22:51 +0000)] 
Default target should not be install ...

17 years agontp.conf could have more than just servers, but DHCP only knows about servers. Soluti...
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 :)

17 years agoDon't assume comments start with #
Roy Marples [Tue, 12 Aug 2008 20:44:42 +0000 (20:44 +0000)] 
Don't assume comments start with #

17 years agoDocument dhcpcd spining with dhcpcd -x.
Roy Marples [Tue, 12 Aug 2008 16:56:35 +0000 (16:56 +0000)] 
Document dhcpcd spining with dhcpcd -x.

17 years agoleased from should be time_t. Also, add boundtime for the last commit to work.
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.

17 years agoWhen requesting an address, probe for it first.
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.