]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoTweak define comments.
Roy Marples [Thu, 10 Jul 2008 13:07:51 +0000 (13:07 +0000)] 
Tweak define comments.

17 years agoNo need for these defines anymore.
Roy Marples [Thu, 10 Jul 2008 13:06:14 +0000 (13:06 +0000)] 
No need for these defines anymore.

17 years agoRestore the error checking on fd's.
Roy Marples [Thu, 10 Jul 2008 12:54:15 +0000 (12:54 +0000)] 
Restore the error checking on fd's.

17 years agoignore _dhcpcd.c
Roy Marples [Thu, 10 Jul 2008 12:53:52 +0000 (12:53 +0000)] 
ignore _dhcpcd.c

17 years agoAllow ARP_REQUESTS through the filter as well so we work with conflicting IPV4LL...
Roy Marples [Thu, 10 Jul 2008 11:55:10 +0000 (11:55 +0000)] 
Allow ARP_REQUESTS through the filter as well so we work with conflicting IPV4LL probes. This requires the timeout to work of a time instead of a timeout.

17 years agoSave a few bytes by avoiding memset.
Roy Marples [Wed, 9 Jul 2008 23:26:36 +0000 (23:26 +0000)] 
Save a few bytes by avoiding memset.

17 years agoEnsure that our ARP messages are at least 64 bytes so we're RFC compliant.
Roy Marples [Wed, 9 Jul 2008 22:41:49 +0000 (22:41 +0000)] 
Ensure that our ARP messages are at least 64 bytes so we're RFC compliant.

17 years agoSet the renew->rebind timer.
Roy Marples [Wed, 9 Jul 2008 21:17:19 +0000 (21:17 +0000)] 
Set the renew->rebind timer.

17 years agoReport the reason we exec the script and don't error on deleting non existant routes...
Roy Marples [Wed, 9 Jul 2008 21:15:26 +0000 (21:15 +0000)] 
Report the reason we exec the script and don't error on deleting non existant routes on Linux.

17 years agoDocument the pidfile.
Roy Marples [Wed, 9 Jul 2008 14:46:29 +0000 (14:46 +0000)] 
Document the pidfile.

17 years agoremoving -> deleting and don't report error on routes already deleted.
Roy Marples [Wed, 9 Jul 2008 10:24:17 +0000 (10:24 +0000)] 
removing -> deleting and don't report error on routes already deleted.

17 years agoAnd turn this into a function so save a few bytes.
Roy Marples [Wed, 9 Jul 2008 10:20:36 +0000 (10:20 +0000)] 
And turn this into a function so save a few bytes.

17 years agoAnd report errors.
Roy Marples [Wed, 9 Jul 2008 10:16:12 +0000 (10:16 +0000)] 
And report errors.

17 years agoReport address removal.
Roy Marples [Wed, 9 Jul 2008 10:12:28 +0000 (10:12 +0000)] 
Report address removal.

17 years agoAdd a macro to change a route.
Roy Marples [Wed, 9 Jul 2008 07:46:55 +0000 (07:46 +0000)] 
Add a macro to change a route.

17 years agoAdd more error checking if the link was taken down or ip addresses removed - if this...
Roy Marples [Wed, 9 Jul 2008 06:50:31 +0000 (06:50 +0000)] 
Add more error checking if the link was taken down or ip addresses removed - if this happens we reset to the init state.

17 years agoOptimize.
Roy Marples [Tue, 8 Jul 2008 20:56:15 +0000 (20:56 +0000)] 
Optimize.

17 years agoFix env var ms_classless_static_routes
Roy Marples [Tue, 8 Jul 2008 16:43:35 +0000 (16:43 +0000)] 
Fix env var ms_classless_static_routes

17 years agobeta9
Roy Marples [Tue, 8 Jul 2008 16:08:11 +0000 (16:08 +0000)] 
beta9

17 years agoErr, I mean X, not Z :)
Roy Marples [Tue, 8 Jul 2008 16:05:26 +0000 (16:05 +0000)] 
Err, I mean X, not Z :)

17 years agoMove the --nodaemonize option from K to Z so we don't conflict with SuSE custom dhcpc...
Roy Marples [Tue, 8 Jul 2008 16:02:51 +0000 (16:02 +0000)] 
Move the --nodaemonize option from K to Z so we don't conflict with SuSE custom dhcpcd patch, and allow removal of option requests in the configuration file.

17 years agoStyle
Roy Marples [Tue, 8 Jul 2008 15:59:53 +0000 (15:59 +0000)] 
Style

17 years agoShow the correct probe address.
Roy Marples [Sat, 5 Jul 2008 22:12:21 +0000 (22:12 +0000)] 
Show the correct probe address.

17 years agoWe need to link to the right libc if installing in / on NetBSD.
Roy Marples [Sat, 5 Jul 2008 18:41:25 +0000 (18:41 +0000)] 
We need to link to the right libc if installing in / on NetBSD.

17 years agodhcpcd-4.0.0-beta8
Roy Marples [Sat, 5 Jul 2008 13:40:19 +0000 (13:40 +0000)] 
dhcpcd-4.0.0-beta8

17 years agoSet the script correctly with MINIMAL.
Roy Marples [Fri, 4 Jul 2008 13:58:31 +0000 (13:58 +0000)] 
Set the script correctly with MINIMAL.

17 years agoEncourage use of CPPFLAGS over CFLAGS for extra defines.
Roy Marples [Fri, 4 Jul 2008 13:30:50 +0000 (13:30 +0000)] 
Encourage use of CPPFLAGS over CFLAGS for extra defines.

17 years agoUse ifnames of less than 4 bytes in the IAID as well.
Roy Marples [Fri, 4 Jul 2008 13:20:20 +0000 (13:20 +0000)] 
Use ifnames of less than 4 bytes in the IAID as well.

17 years agoRemove ENABLE_DUID and introduce MINIMAL, which removes all non essential userland...
Roy Marples [Fri, 4 Jul 2008 13:02:33 +0000 (13:02 +0000)] 
Remove ENABLE_DUID and introduce MINIMAL, which removes all non essential userland options, knocking around 6k off the binary size.

17 years agoWe should WARN on NAK.
Roy Marples [Fri, 4 Jul 2008 12:13:02 +0000 (12:13 +0000)] 
We should WARN on NAK.

17 years agoSend LOG_INFO to the console by default so users know what it's doing a little more...
Roy Marples [Fri, 4 Jul 2008 12:08:51 +0000 (12:08 +0000)] 
Send LOG_INFO to the console by default so users know what it's doing a little more. This can be disabled with the new -q, --quiet option.

17 years agoBetter english.
Roy Marples [Fri, 4 Jul 2008 12:07:48 +0000 (12:07 +0000)] 
Better english.

17 years agoWe should inform the user we're checking the address ourselves.
Roy Marples [Fri, 4 Jul 2008 08:34:56 +0000 (08:34 +0000)] 
We should inform the user we're checking the address ourselves.

17 years agoCleaner fix for working with PCC.
Roy Marples [Thu, 3 Jul 2008 17:07:24 +0000 (17:07 +0000)] 
Cleaner fix for working with PCC.

17 years agoFix the ClientID and only parse it once.
Roy Marples [Thu, 3 Jul 2008 09:24:09 +0000 (09:24 +0000)] 
Fix the ClientID and only parse it once.

17 years agoWork around PCC not supporting the __packed__ attribute on structures. dhcpcd now...
Roy Marples [Thu, 3 Jul 2008 00:12:57 +0000 (00:12 +0000)] 
Work around PCC not supporting the __packed__ attribute on structures. dhcpcd now works fully with PCC on NetBSD-4.99.67.

17 years agoIf starting daemonised (THERE_IS_NO_FORK) then don't send any signals.
Roy Marples [Wed, 2 Jul 2008 19:05:25 +0000 (19:05 +0000)] 
If starting daemonised (THERE_IS_NO_FORK) then don't send any signals.

17 years agoRemove previous toggles for classid, clientid, userclass and vendor - they call ...
Roy Marples [Wed, 2 Jul 2008 17:05:41 +0000 (17:05 +0000)] 
Remove previous toggles for classid, clientid, userclass and vendor - they call *could* be required for DHCP. Add a string parser and process all user strings through it.

17 years agoSupport the root dynmanic linker on NetBSD, so we work without /usr mounted.
Roy Marples [Wed, 2 Jul 2008 11:13:10 +0000 (11:13 +0000)] 
Support the root dynmanic linker on NetBSD, so we work without /usr mounted.

17 years agoEnsure that we have at least 2 ocets.
Roy Marples [Wed, 2 Jul 2008 10:29:24 +0000 (10:29 +0000)] 
Ensure that we have at least 2 ocets.

17 years agoFix ClientID parsing.
Roy Marples [Wed, 2 Jul 2008 09:48:53 +0000 (09:48 +0000)] 
Fix ClientID parsing.

17 years agoAdd copyright to --version.
Roy Marples [Tue, 1 Jul 2008 12:57:16 +0000 (12:57 +0000)] 
Add copyright to --version.

17 years agoEnsure we work if ARP compiled out but requested.
Roy Marples [Mon, 30 Jun 2008 18:54:31 +0000 (18:54 +0000)] 
Ensure we work if ARP compiled out but requested.

17 years agoAllow ClassID to be configured.
Roy Marples [Mon, 30 Jun 2008 16:35:41 +0000 (16:35 +0000)] 
Allow ClassID to be configured.

17 years agoAllow clientid to be configured.
Roy Marples [Mon, 30 Jun 2008 16:27:15 +0000 (16:27 +0000)] 
Allow clientid to be configured.

17 years agoAllow userclass to be compiled out.
Roy Marples [Mon, 30 Jun 2008 16:15:29 +0000 (16:15 +0000)] 
Allow userclass to be compiled out.

17 years agoCleaner code when ARP is disabled.
Roy Marples [Mon, 30 Jun 2008 16:14:56 +0000 (16:14 +0000)] 
Cleaner code when ARP is disabled.

17 years agoAdd support for vendor encapsulated options. Also, MINIAL define now disables all...
Roy Marples [Mon, 30 Jun 2008 16:02:56 +0000 (16:02 +0000)] 
Add support for vendor encapsulated options. Also, MINIAL define now disables all configurable options.

17 years agoAdd -K, --nodaeomise option so dhcpcd can run in the foreground without debugging...
Roy Marples [Mon, 30 Jun 2008 15:08:19 +0000 (15:08 +0000)] 
Add -K, --nodaeomise option so dhcpcd can run in the foreground without debugging. This is useful for running under a debugger or network manager.

17 years agoFix timeout when we aren't daemonising.
Roy Marples [Mon, 30 Jun 2008 15:07:23 +0000 (15:07 +0000)] 
Fix timeout when we aren't daemonising.

17 years agoWe need to copy out the script from the config file as it's no longer a constant...
Roy Marples [Mon, 30 Jun 2008 14:15:03 +0000 (14:15 +0000)] 
We need to copy out the script from the config file as it's no longer a constant var.

17 years agoFix some valgrind errors.
Roy Marples [Sun, 29 Jun 2008 19:48:25 +0000 (19:48 +0000)] 
Fix some valgrind errors.

17 years agoSave a few bytes by treating some strings like DHCP options, having the first byte...
Roy Marples [Sun, 29 Jun 2008 18:28:19 +0000 (18:28 +0000)] 
Save a few bytes by treating some strings like DHCP options, having the first byte as the length.

17 years agoFix hwaddr_aton
Roy Marples [Sun, 29 Jun 2008 10:55:21 +0000 (10:55 +0000)] 
Fix hwaddr_aton

17 years agoFix renewing.
Roy Marples [Sat, 28 Jun 2008 13:50:17 +0000 (13:50 +0000)] 
Fix renewing.

17 years agoRequest as much as the packet as we can with buggy BPF filters.
Roy Marples [Fri, 20 Jun 2008 15:37:15 +0000 (15:37 +0000)] 
Request as much as the packet as we can with buggy BPF filters.

17 years agobeta7
Roy Marples [Fri, 20 Jun 2008 06:56:31 +0000 (06:56 +0000)] 
beta7

17 years agoOptimize the state engine a little and fix timeval -> poll timeout calculation.
Roy Marples [Fri, 20 Jun 2008 06:47:15 +0000 (06:47 +0000)] 
Optimize the state engine a little and fix timeval -> poll timeout calculation.

17 years agowhitespace
Roy Marples [Thu, 19 Jun 2008 21:26:41 +0000 (21:26 +0000)] 
whitespace

17 years agoAdd metric= to our env, #93 thanks to Tobias Volk.
Roy Marples [Thu, 19 Jun 2008 15:58:02 +0000 (15:58 +0000)] 
Add metric= to our env, #93 thanks to Tobias Volk.

17 years agoAllow LIBEXECDIR to inherit from env.
Roy Marples [Wed, 18 Jun 2008 10:23:16 +0000 (10:23 +0000)] 
Allow LIBEXECDIR to inherit from env.

17 years agoMan page fixes.
Roy Marples [Wed, 18 Jun 2008 09:59:33 +0000 (09:59 +0000)] 
Man page fixes.

17 years agoRe number the hook scripts to give more space.
Roy Marples [Wed, 18 Jun 2008 09:27:08 +0000 (09:27 +0000)] 
Re number the hook scripts to give more space.

17 years agoDe-configure when rebinding fails.
Roy Marples [Wed, 18 Jun 2008 09:05:04 +0000 (09:05 +0000)] 
De-configure when rebinding fails.

17 years agoDisable the requesting of MTU by default as there's a lot of buggy servers out there...
Roy Marples [Fri, 13 Jun 2008 10:10:00 +0000 (10:10 +0000)] 
Disable the requesting of MTU by default as there's a lot of buggy servers out there. Plus we maybe trying to use jumbo frames.

17 years agoAdd 05-mtu hook so we respect the desired MTU on networks.
Roy Marples [Fri, 13 Jun 2008 09:55:18 +0000 (09:55 +0000)] 
Add 05-mtu hook so we respect the desired MTU on networks.

17 years agoClear the timer and counters at the start of the timeout failed function so we don...
Roy Marples [Fri, 13 Jun 2008 08:31:21 +0000 (08:31 +0000)] 
Clear the timer and counters at the start of the timeout failed function so we don't loop.

17 years agoOn NAK, clear the timer and lease so we init correctly.
Roy Marples [Thu, 12 Jun 2008 08:57:29 +0000 (08:57 +0000)] 
On NAK, clear the timer and lease so we init correctly.

17 years agoDon't flush addresses on startup anymore. Also, fix inform leasetimes.
Roy Marples [Wed, 11 Jun 2008 09:47:37 +0000 (09:47 +0000)] 
Don't flush addresses on startup anymore. Also, fix inform leasetimes.

17 years agoWe don't use this var anymore.
Roy Marples [Wed, 11 Jun 2008 08:43:08 +0000 (08:43 +0000)] 
We don't use this var anymore.

17 years agoRemove the signal array stack as our pipe handling should be secure enough now. Also...
Roy Marples [Tue, 10 Jun 2008 22:23:57 +0000 (22:23 +0000)] 
Remove the signal array stack as our pipe handling should be secure enough now. Also, move the normalize close_on_exec and setting non block.

17 years agoRemove KEEPADDRESS as it makes no sense right now. Also, fix adding --request without...
Roy Marples [Tue, 10 Jun 2008 21:47:39 +0000 (21:47 +0000)] 
Remove KEEPADDRESS as it makes no sense right now. Also, fix adding --request without an address.

17 years agoIf test works ensure we return 0 to userland.
Roy Marples [Tue, 10 Jun 2008 09:33:13 +0000 (09:33 +0000)] 
If test works ensure we return 0 to userland.

17 years agoTimeout on negative timeouts.
Roy Marples [Tue, 10 Jun 2008 06:50:01 +0000 (06:50 +0000)] 
Timeout on negative timeouts.

17 years agoFix compile for NO_FORK users.
Roy Marples [Mon, 9 Jun 2008 18:29:33 +0000 (18:29 +0000)] 
Fix compile for NO_FORK users.

17 years agoFix compile.
Roy Marples [Mon, 9 Jun 2008 08:21:28 +0000 (08:21 +0000)] 
Fix compile.

17 years agoWe now support IPv4LL fully - until someone points out we don't ;)
Roy Marples [Mon, 9 Jun 2008 06:19:34 +0000 (06:19 +0000)] 
We now support IPv4LL fully - until someone points out we don't ;)

17 years agoRe-write the client state engine around a simple timer instead of complex loops....
Roy Marples [Sun, 8 Jun 2008 20:07:54 +0000 (20:07 +0000)] 
Re-write the client state engine around a simple timer instead of complex loops. Use the re-transmission times as per RFC 2131. Integrate the ARP handling code in the new engine so we are able to defend our IPV4LL address whilst negotiating a DHCP lease. This also means we're able to bind the address and fork BEFORE waiting to send announcements which makes us appear faster on the commandline.

17 years agoTypo.
Roy Marples [Sun, 8 Jun 2008 06:50:42 +0000 (06:50 +0000)] 
Typo.

17 years agoBump to beta6 for internal testing and move UNCONST to common.h
Roy Marples [Sat, 7 Jun 2008 00:15:14 +0000 (00:15 +0000)] 
Bump to beta6 for internal testing and move UNCONST to common.h

17 years agoWe should test a specific fd instead of index 0 in a structure.
Roy Marples [Sat, 7 Jun 2008 00:14:16 +0000 (00:14 +0000)] 
We should test a specific fd instead of index 0 in a structure.

17 years agoAdd a function to test if a fd has data to be read.
Roy Marples [Sat, 7 Jun 2008 00:11:17 +0000 (00:11 +0000)] 
Add a function to test if a fd has data to be read.

17 years agoIncrease the default timeout to 30 seconds to allow 3 RFC conformant re-transmissions...
Roy Marples [Sat, 7 Jun 2008 00:10:15 +0000 (00:10 +0000)] 
Increase the default timeout to 30 seconds to allow 3 RFC conformant re-transmissions + 2 seconds grace.

17 years agomake DEBUG=yes enabled ggdb.
Roy Marples [Sat, 7 Jun 2008 00:08:07 +0000 (00:08 +0000)] 
make DEBUG=yes enabled ggdb.

17 years agoAllow building of snapshots.
Roy Marples [Sat, 7 Jun 2008 00:07:05 +0000 (00:07 +0000)] 
Allow building of snapshots.

17 years agoAdd a sample NetworkManager hook script.
Roy Marples [Wed, 4 Jun 2008 16:36:12 +0000 (16:36 +0000)] 
Add a sample NetworkManager hook script.

17 years agoWe should not be setting IFF_RUNNING - that's the job of the interface driver.
Roy Marples [Tue, 3 Jun 2008 22:21:51 +0000 (22:21 +0000)] 
We should not be setting IFF_RUNNING - that's the job of the interface driver.

17 years agoAdd a note about dhcpcd not fully supporting RFC 3927 yet.
Roy Marples [Fri, 30 May 2008 10:51:56 +0000 (10:51 +0000)] 
Add a note about dhcpcd not fully supporting RFC 3927 yet.

17 years agoKernel will send the 2nd annoucemnent when we add the address.
Roy Marples [Fri, 30 May 2008 10:27:15 +0000 (10:27 +0000)] 
Kernel will send the 2nd annoucemnent when we add the address.

17 years agoParse the ARP packet better.
Roy Marples [Fri, 30 May 2008 09:52:09 +0000 (09:52 +0000)] 
Parse the ARP packet better.

17 years agoDon't request the last tried IPV4LL address.
Roy Marples [Fri, 30 May 2008 09:51:45 +0000 (09:51 +0000)] 
Don't request the last tried IPV4LL address.

17 years agoMake the timings more random by using the full range of poll timeout.
Roy Marples [Thu, 29 May 2008 19:26:16 +0000 (19:26 +0000)] 
Make the timings more random by using the full range of poll timeout.

17 years agoShould clean the core files too.
Roy Marples [Thu, 29 May 2008 19:05:28 +0000 (19:05 +0000)] 
Should clean the core files too.

17 years agoImprove documentation about inform
Roy Marples [Thu, 29 May 2008 17:04:29 +0000 (17:04 +0000)] 
Improve documentation about inform

17 years agopersist addresses for INFORM
Roy Marples [Thu, 29 May 2008 16:57:47 +0000 (16:57 +0000)] 
persist addresses for INFORM

17 years agoRemove pointless header.
Roy Marples [Thu, 29 May 2008 15:08:39 +0000 (15:08 +0000)] 
Remove pointless header.

17 years agoCheck size of arp reply vs what we need. Also, no need to copy out the hardware addre...
Roy Marples [Thu, 29 May 2008 13:21:58 +0000 (13:21 +0000)] 
Check size of arp reply vs what we need. Also, no need to copy out the hardware addresses.

17 years agoRespect RFC 3927 more, regarding times and conflicts.
Roy Marples [Thu, 29 May 2008 11:58:25 +0000 (11:58 +0000)] 
Respect RFC 3927 more, regarding times and conflicts.

17 years agoDISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines.
Roy Marples [Thu, 29 May 2008 08:26:57 +0000 (08:26 +0000)] 
DISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines.

17 years agoEnsure that IPV4LL defends by doing a DHCP_DISCOVER for 10 seconds and then falling...
Roy Marples [Wed, 28 May 2008 13:21:28 +0000 (13:21 +0000)] 
Ensure that IPV4LL defends by doing a  DHCP_DISCOVER for 10 seconds and then falling back to ARP checking for our address.