]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years ago4.99.2
Roy Marples [Fri, 19 Sep 2008 13:36:40 +0000 (13:36 +0000)] 
4.99.2

17 years agoAs we now use times to trigger again instead of decreasing timers, ensure our lease...
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.

17 years agoFix pointer.
Roy Marples [Wed, 17 Sep 2008 10:37:03 +0000 (10:37 +0000)] 
Fix pointer.

17 years agoMove wireless detection from net.c into if-bsd.c and if-linux.c
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

17 years agoDocument metrics better.
Roy Marples [Wed, 17 Sep 2008 10:32:34 +0000 (10:32 +0000)] 
Document metrics better.

17 years agoFix rebooting off a signal.
Roy Marples [Wed, 17 Sep 2008 08:29:56 +0000 (08:29 +0000)] 
Fix rebooting off a signal.

17 years agoAllow the release keyword in dhcpcd.conf to release the lease on shutdown.
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.

17 years agoFix compile.
Roy Marples [Tue, 16 Sep 2008 13:15:21 +0000 (13:15 +0000)] 
Fix compile.

17 years agoFix discovery
Roy Marples [Tue, 16 Sep 2008 10:02:14 +0000 (10:02 +0000)] 
Fix discovery

17 years agoMove AF_LINK discovery to if-bsd.c. Also, we only work with IFT_ETHER types currently...
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.

17 years agoLoads 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: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.

17 years agoRemove debug.
Roy Marples [Mon, 15 Sep 2008 19:30:44 +0000 (19:30 +0000)] 
Remove debug.

17 years agoWe need to flush the ARP table after configuring new routes.
Roy Marples [Mon, 15 Sep 2008 19:15:52 +0000 (19:15 +0000)] 
We need to flush the ARP table after configuring new routes.

17 years agoAdd subnet routes to our routing table so we can change them for systems without...
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.

17 years agoFix segfault when passing options in.
Roy Marples [Mon, 15 Sep 2008 16:43:57 +0000 (16:43 +0000)] 
Fix segfault when passing options in.

17 years agoFix reboot timeout in dhcpcd.conf.
Roy Marples [Mon, 15 Sep 2008 16:43:27 +0000 (16:43 +0000)] 
Fix reboot timeout in dhcpcd.conf.

17 years agoReboot off the last lease and use the last lease if not expired and user has asked...
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).

17 years agoCorrectly set the REBOOT reason.
Roy Marples [Mon, 15 Sep 2008 15:20:37 +0000 (15:20 +0000)] 
Correctly set the REBOOT reason.

17 years agoDon't decline leases that we loaded from disk.
Roy Marples [Mon, 15 Sep 2008 15:20:09 +0000 (15:20 +0000)] 
Don't decline leases that we loaded from disk.

17 years agoFix subnet routes. This needs more testing.
Roy Marples [Mon, 15 Sep 2008 09:05:29 +0000 (09:05 +0000)] 
Fix subnet routes. This needs more testing.

17 years agoDon't overflow the buffer.
Roy Marples [Mon, 15 Sep 2008 09:02:56 +0000 (09:02 +0000)] 
Don't overflow the buffer.

17 years agoEnsure that routes go via the correct interface and set netmask correctly.
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.

17 years agoWe may change size of hwaddr_buffer, so just use sizeof.
Roy Marples [Sun, 14 Sep 2008 09:06:22 +0000 (09:06 +0000)] 
We may change size of hwaddr_buffer, so just use sizeof.

17 years agoWe need to drop config on carrier loss now.
Roy Marples [Sat, 13 Sep 2008 11:17:24 +0000 (11:17 +0000)] 
We need to drop config on carrier loss now.

17 years agoWe don't add this anymore.
Roy Marples [Sat, 13 Sep 2008 10:49:23 +0000 (10:49 +0000)] 
We don't add this anymore.

17 years agoFix subnet route.
Roy Marples [Sat, 13 Sep 2008 10:48:48 +0000 (10:48 +0000)] 
Fix subnet route.

17 years agoRemove remembering routes per interface and have a global routing table so we can...
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.

17 years agoDrop interfaces in reverse order when stopping and handle removal of interfaces in...
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.

17 years agoFix removing old config.
Roy Marples [Thu, 11 Sep 2008 15:50:19 +0000 (15:50 +0000)] 
Fix removing old config.

17 years agoTidy up some valgrind errors.
Roy Marples [Thu, 11 Sep 2008 09:56:57 +0000 (09:56 +0000)] 
Tidy up some valgrind errors.

17 years agoAdd allowinterfaces and denyinterfaces options to dhcpcd.conf for better multiple...
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.

17 years agoAllow quiet and nobackground to work in dhcpcd.conf
Roy Marples [Thu, 11 Sep 2008 08:28:39 +0000 (08:28 +0000)] 
Allow quiet and nobackground to work in dhcpcd.conf

17 years agoMove function lower down as it's not that important.
Roy Marples [Wed, 10 Sep 2008 12:39:20 +0000 (12:39 +0000)] 
Move function lower down as it's not that important.

17 years agoExport IF_METRIC to resolvconf. We should change to the -m option when openresolv...
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.

17 years agoFix interface detection.
Roy Marples [Tue, 9 Sep 2008 20:52:39 +0000 (20:52 +0000)] 
Fix interface detection.

17 years agoFix memory errors.
Roy Marples [Tue, 9 Sep 2008 20:52:21 +0000 (20:52 +0000)] 
Fix memory errors.

17 years agoFix compile errors.
Roy Marples [Tue, 9 Sep 2008 19:07:37 +0000 (19:07 +0000)] 
Fix compile errors.

17 years agoSort interfaces according to preference and pass this to dhcpcd-run-hooks so we can...
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.

17 years agoWe don't create these files, so don't clean them.
Roy Marples [Tue, 9 Sep 2008 15:36:50 +0000 (15:36 +0000)] 
We don't create these files, so don't clean them.

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.