]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoZeroing each field is cheaper than using memset/memcpy.
Roy Marples [Wed, 19 Nov 2008 15:01:20 +0000 (15:01 +0000)] 
Zeroing each field is cheaper than using memset/memcpy.

17 years agoIf no lease time is supplied, assume it's infinite.
Roy Marples [Wed, 19 Nov 2008 14:58:24 +0000 (14:58 +0000)] 
If no lease time is supplied, assume it's infinite.

17 years agoIf no lease time is supplied, assume it's infinite.
Roy Marples [Wed, 19 Nov 2008 14:58:17 +0000 (14:58 +0000)] 
If no lease time is supplied, assume it's infinite.

17 years agoAdjust lengths to fit MTU.
Roy Marples [Wed, 19 Nov 2008 14:53:56 +0000 (14:53 +0000)] 
Adjust lengths to fit MTU.

17 years agoClarify the clientid option.
Roy Marples [Wed, 19 Nov 2008 12:50:49 +0000 (12:50 +0000)] 
Clarify the clientid option.

17 years agoIf we are asked to ARP and we don't have an offer then we are testing our current...
Roy Marples [Wed, 19 Nov 2008 09:48:11 +0000 (09:48 +0000)] 
If we are asked to ARP and we don't have an offer then we are testing our current address.

17 years agoFix working with linux aliased interfaces again.
Roy Marples [Mon, 17 Nov 2008 22:50:37 +0000 (22:50 +0000)] 
Fix working with linux aliased interfaces again.

17 years agoWe no longer send a ClientID by default. This is so we now mirror the kernel DHCP...
Roy Marples [Mon, 17 Nov 2008 17:25:54 +0000 (17:25 +0000)] 
We no longer send a ClientID by default. This is so we now mirror the kernel DHCP client and can re-use its lease by default. To retain the old behaviour, simply add clientid to dhcpcd.conf.

17 years agoWhitespace.
Roy Marples [Mon, 17 Nov 2008 12:48:38 +0000 (12:48 +0000)] 
Whitespace.

17 years agoFork into background even with no interfaces IF we are asked to background AND have...
Roy Marples [Sat, 15 Nov 2008 11:24:26 +0000 (11:24 +0000)] 
Fork into background even with no interfaces IF we are asked to background AND have link detection.

17 years agoReport all interfaces requested that do not exist.
Roy Marples [Fri, 14 Nov 2008 20:38:40 +0000 (20:38 +0000)] 
Report all interfaces requested that do not exist.

17 years agoNetBSD sh needs eval here.
Roy Marples [Fri, 14 Nov 2008 19:18:57 +0000 (19:18 +0000)] 
NetBSD sh needs eval here.

17 years agoWhen declining a DHCP lease and we have an IPv4LL one, don't re announce our IPv4LL...
Roy Marples [Fri, 14 Nov 2008 09:39:09 +0000 (09:39 +0000)] 
When declining a DHCP lease and we have an IPv4LL one, don't re announce our IPv4LL lease.

17 years agoDon't restart ntpd if it's not already running.
Roy Marples [Tue, 11 Nov 2008 09:28:17 +0000 (09:28 +0000)] 
Don't restart ntpd if it's not already running.

17 years agoFix some LINT errors.
Roy Marples [Mon, 10 Nov 2008 11:15:27 +0000 (11:15 +0000)] 
Fix some LINT errors.

17 years agoFix changing routes on BSD.
Roy Marples [Mon, 10 Nov 2008 08:31:33 +0000 (08:31 +0000)] 
Fix changing routes on BSD.

17 years agoDefault to -O2.
Roy Marples [Wed, 5 Nov 2008 15:59:36 +0000 (15:59 +0000)] 
Default to -O2.

17 years agoParens.
Roy Marples [Wed, 5 Nov 2008 14:36:23 +0000 (14:36 +0000)] 
Parens.

17 years agoget_line now uses a single buffer, strips leading space and skips comments. This...
Roy Marples [Wed, 5 Nov 2008 13:57:54 +0000 (13:57 +0000)] 
get_line now uses a single buffer, strips leading space and skips comments. This reduces malloc usage slightly and gives a cleaner API at the expense of a slight bss increase.

17 years agoClose fd's in the child.
Roy Marples [Wed, 5 Nov 2008 13:56:00 +0000 (13:56 +0000)] 
Close fd's in the child.

17 years agoSave a few bytes by moving close_fds to bind where it's really used.
Roy Marples [Wed, 5 Nov 2008 13:09:18 +0000 (13:09 +0000)] 
Save a few bytes by moving close_fds to bind where it's really used.

17 years agoTest should always DISCOVER.
Roy Marples [Tue, 4 Nov 2008 10:13:07 +0000 (10:13 +0000)] 
Test should always DISCOVER.

17 years agoTrim trailing NULLs from string options, #120.
Roy Marples [Tue, 4 Nov 2008 10:04:25 +0000 (10:04 +0000)] 
Trim trailing NULLs from string options, #120.

17 years agoRelease 4.99.3
Roy Marples [Wed, 29 Oct 2008 13:02:41 +0000 (13:02 +0000)] 
Release 4.99.3

17 years ago~0U is better than just ~0 for this.
Roy Marples [Wed, 29 Oct 2008 08:13:15 +0000 (08:13 +0000)] 
~0U is better than just ~0 for this.

17 years agoRe-create the old .info file for applications that parse it.
Roy Marples [Tue, 28 Oct 2008 09:28:55 +0000 (09:28 +0000)] 
Re-create the old .info file for applications that parse it.

17 years agoExplain why we decline the address in a message.
Roy Marples [Tue, 28 Oct 2008 09:24:23 +0000 (09:24 +0000)] 
Explain why we decline the address in a message.

17 years agoAllow ntp.conf location to be tunable, #119
Roy Marples [Mon, 27 Oct 2008 12:39:32 +0000 (12:39 +0000)] 
Allow ntp.conf location to be tunable, #119

17 years agoUpdate change log location
Roy Marples [Wed, 22 Oct 2008 08:29:53 +0000 (08:29 +0000)] 
Update change log location

17 years agoWe should erase the lease file when we get an ARP conflict on rebinding from it.
Roy Marples [Tue, 21 Oct 2008 15:34:52 +0000 (15:34 +0000)] 
We should erase the lease file when we get an ARP conflict on rebinding from it.

17 years agoReally fix .depend with GNU make and other makes.
Roy Marples [Mon, 20 Oct 2008 16:45:27 +0000 (16:45 +0000)] 
Really fix .depend with GNU make and other makes.

17 years agoWe need to include a variable, not the gmake shell funtion.
Roy Marples [Mon, 20 Oct 2008 12:11:43 +0000 (12:11 +0000)] 
We need to include a variable, not the gmake shell funtion.

17 years agoCalculate netmask from cidr more efficiently.
Roy Marples [Mon, 20 Oct 2008 09:56:21 +0000 (09:56 +0000)] 
Calculate netmask from cidr more efficiently.

17 years agoIgnore .depend
Roy Marples [Mon, 20 Oct 2008 09:50:52 +0000 (09:50 +0000)] 
Ignore .depend

17 years agoAllow .depend to be included if it exists with gmake.
Roy Marples [Mon, 20 Oct 2008 09:50:07 +0000 (09:50 +0000)] 
Allow .depend to be included if it exists with gmake.

17 years agoCast to void * to remove compiler warnings on Sparc64. This should still be aligned...
Roy Marples [Sun, 19 Oct 2008 05:39:28 +0000 (05:39 +0000)] 
Cast to void * to remove compiler warnings on Sparc64. This should still be aligned correctly as this is how the kernel makes it.

17 years agoFix obtaining netmask on NetBSD.
Roy Marples [Sat, 18 Oct 2008 23:44:00 +0000 (23:44 +0000)] 
Fix obtaining netmask on NetBSD.

17 years agoFix up address and netmask detection. This *should* align fine.
Roy Marples [Sat, 18 Oct 2008 23:28:49 +0000 (23:28 +0000)] 
Fix up address and netmask detection. This *should* align fine.

17 years agoAlloc less for options and correctly for inform.
Roy Marples [Sat, 18 Oct 2008 22:58:10 +0000 (22:58 +0000)] 
Alloc less for options and correctly for inform.

17 years agoEnsure inform options are terminated.
Roy Marples [Sat, 18 Oct 2008 22:57:40 +0000 (22:57 +0000)] 
Ensure inform options are terminated.

17 years agoFix reading netmask and linux informing.
Roy Marples [Sat, 18 Oct 2008 18:46:22 +0000 (18:46 +0000)] 
Fix reading netmask and linux informing.

17 years agoGet INFORM support almost working again.
Roy Marples [Sat, 18 Oct 2008 16:41:19 +0000 (16:41 +0000)] 
Get INFORM support almost working again.

17 years agoUse the existing start_reboot function instead of a start_request.
Roy Marples [Sat, 18 Oct 2008 10:52:01 +0000 (10:52 +0000)] 
Use the existing start_reboot function instead of a start_request.

17 years agoMake init request for an address work off the command line again.
Roy Marples [Sat, 18 Oct 2008 10:02:36 +0000 (10:02 +0000)] 
Make init request for an address work off the command line again.

17 years agoWe should send the IP address we decline and the server ID for release.
Roy Marples [Fri, 17 Oct 2008 21:30:25 +0000 (21:30 +0000)] 
We should send the IP address we decline and the server ID for release.

17 years agoFix warning on sparc64
Roy Marples [Fri, 17 Oct 2008 07:22:39 +0000 (07:22 +0000)] 
Fix warning on sparc64

17 years agoCast to void * to avoid compiler warnings on Sparc64. Also, save a needless malloc.
Roy Marples [Wed, 15 Oct 2008 13:00:33 +0000 (13:00 +0000)] 
Cast to void * to avoid compiler warnings on Sparc64. Also, save a needless malloc.

17 years agoCompile on Sparc64/FreeBSD-6.2
Roy Marples [Wed, 15 Oct 2008 09:08:22 +0000 (09:08 +0000)] 
Compile on Sparc64/FreeBSD-6.2

17 years agoUpdate bug page.
Roy Marples [Tue, 7 Oct 2008 20:01:33 +0000 (20:01 +0000)] 
Update bug page.

17 years agoStyle.
Roy Marples [Mon, 6 Oct 2008 12:49:07 +0000 (12:49 +0000)] 
Style.

17 years agostatic objects are initialized to 0 by default, so don't explicity do this.
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.

17 years agoWe should be able to reboot interfaces we don't already know about.
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.

17 years agoSimplify the logic of what to put in the message, and ensure that the MTU size is...
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.

17 years agoFix TEST.
Roy Marples [Wed, 1 Oct 2008 11:15:33 +0000 (11:15 +0000)] 
Fix TEST.

17 years agoBuild the resolv.conf correctly from the last commit.
Roy Marples [Wed, 1 Oct 2008 11:11:42 +0000 (11:11 +0000)] 
Build the resolv.conf correctly from the last commit.

17 years agoWrite resolv.conf as per the DHCP message.
Roy Marples [Wed, 1 Oct 2008 10:55:49 +0000 (10:55 +0000)] 
Write resolv.conf as per the DHCP message.

17 years agoFix -I '' to not send a client ID instead of a blank one, #116.
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.

17 years agosvn repo
Roy Marples [Thu, 25 Sep 2008 22:04:11 +0000 (22:04 +0000)] 
svn repo

17 years agoPunt
Roy Marples [Thu, 25 Sep 2008 21:23:47 +0000 (21:23 +0000)] 
Punt

17 years agoPunt old dirs and work with svn.
Roy Marples [Thu, 25 Sep 2008 21:23:16 +0000 (21:23 +0000)] 
Punt old dirs and work with svn.

17 years agoFix comment.
Roy Marples [Fri, 19 Sep 2008 23:31:17 +0000 (23:31 +0000)] 
Fix comment.

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.