]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Thu, 10 Jul 2008 13:07:51 +0000 (13:07 +0000)]
Tweak define comments.
Roy Marples [Thu, 10 Jul 2008 13:06:14 +0000 (13:06 +0000)]
No need for these defines anymore.
Roy Marples [Thu, 10 Jul 2008 12:54:15 +0000 (12:54 +0000)]
Restore the error checking on fd's.
Roy Marples [Thu, 10 Jul 2008 12:53:52 +0000 (12:53 +0000)]
ignore _dhcpcd.c
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.
Roy Marples [Wed, 9 Jul 2008 23:26:36 +0000 (23:26 +0000)]
Save a few bytes by avoiding memset.
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.
Roy Marples [Wed, 9 Jul 2008 21:17:19 +0000 (21:17 +0000)]
Set the renew->rebind timer.
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.
Roy Marples [Wed, 9 Jul 2008 14:46:29 +0000 (14:46 +0000)]
Document the pidfile.
Roy Marples [Wed, 9 Jul 2008 10:24:17 +0000 (10:24 +0000)]
removing -> deleting and don't report error on routes already deleted.
Roy Marples [Wed, 9 Jul 2008 10:20:36 +0000 (10:20 +0000)]
And turn this into a function so save a few bytes.
Roy Marples [Wed, 9 Jul 2008 10:16:12 +0000 (10:16 +0000)]
And report errors.
Roy Marples [Wed, 9 Jul 2008 10:12:28 +0000 (10:12 +0000)]
Report address removal.
Roy Marples [Wed, 9 Jul 2008 07:46:55 +0000 (07:46 +0000)]
Add a macro to change a route.
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.
Roy Marples [Tue, 8 Jul 2008 20:56:15 +0000 (20:56 +0000)]
Optimize.
Roy Marples [Tue, 8 Jul 2008 16:43:35 +0000 (16:43 +0000)]
Fix env var ms_classless_static_routes
Roy Marples [Tue, 8 Jul 2008 16:08:11 +0000 (16:08 +0000)]
beta9
Roy Marples [Tue, 8 Jul 2008 16:05:26 +0000 (16:05 +0000)]
Err, I mean X, not Z :)
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.
Roy Marples [Tue, 8 Jul 2008 15:59:53 +0000 (15:59 +0000)]
Style
Roy Marples [Sat, 5 Jul 2008 22:12:21 +0000 (22:12 +0000)]
Show the correct probe address.
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.
Roy Marples [Sat, 5 Jul 2008 13:40:19 +0000 (13:40 +0000)]
dhcpcd-4.0.0-beta8
Roy Marples [Fri, 4 Jul 2008 13:58:31 +0000 (13:58 +0000)]
Set the script correctly with MINIMAL.
Roy Marples [Fri, 4 Jul 2008 13:30:50 +0000 (13:30 +0000)]
Encourage use of CPPFLAGS over CFLAGS for extra defines.
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.
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.
Roy Marples [Fri, 4 Jul 2008 12:13:02 +0000 (12:13 +0000)]
We should WARN on NAK.
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.
Roy Marples [Fri, 4 Jul 2008 12:07:48 +0000 (12:07 +0000)]
Better english.
Roy Marples [Fri, 4 Jul 2008 08:34:56 +0000 (08:34 +0000)]
We should inform the user we're checking the address ourselves.
Roy Marples [Thu, 3 Jul 2008 17:07:24 +0000 (17:07 +0000)]
Cleaner fix for working with PCC.
Roy Marples [Thu, 3 Jul 2008 09:24:09 +0000 (09:24 +0000)]
Fix the ClientID and only parse it once.
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.
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.
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.
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.
Roy Marples [Wed, 2 Jul 2008 10:29:24 +0000 (10:29 +0000)]
Ensure that we have at least 2 ocets.
Roy Marples [Wed, 2 Jul 2008 09:48:53 +0000 (09:48 +0000)]
Fix ClientID parsing.
Roy Marples [Tue, 1 Jul 2008 12:57:16 +0000 (12:57 +0000)]
Add copyright to --version.
Roy Marples [Mon, 30 Jun 2008 18:54:31 +0000 (18:54 +0000)]
Ensure we work if ARP compiled out but requested.
Roy Marples [Mon, 30 Jun 2008 16:35:41 +0000 (16:35 +0000)]
Allow ClassID to be configured.
Roy Marples [Mon, 30 Jun 2008 16:27:15 +0000 (16:27 +0000)]
Allow clientid to be configured.
Roy Marples [Mon, 30 Jun 2008 16:15:29 +0000 (16:15 +0000)]
Allow userclass to be compiled out.
Roy Marples [Mon, 30 Jun 2008 16:14:56 +0000 (16:14 +0000)]
Cleaner code when ARP is disabled.
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.
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.
Roy Marples [Mon, 30 Jun 2008 15:07:23 +0000 (15:07 +0000)]
Fix timeout when we aren't daemonising.
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.
Roy Marples [Sun, 29 Jun 2008 19:48:25 +0000 (19:48 +0000)]
Fix some valgrind errors.
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.
Roy Marples [Sun, 29 Jun 2008 10:55:21 +0000 (10:55 +0000)]
Fix hwaddr_aton
Roy Marples [Sat, 28 Jun 2008 13:50:17 +0000 (13:50 +0000)]
Fix renewing.
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.
Roy Marples [Fri, 20 Jun 2008 06:56:31 +0000 (06:56 +0000)]
beta7
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.
Roy Marples [Thu, 19 Jun 2008 21:26:41 +0000 (21:26 +0000)]
whitespace
Roy Marples [Thu, 19 Jun 2008 15:58:02 +0000 (15:58 +0000)]
Add metric= to our env, #93 thanks to Tobias Volk.
Roy Marples [Wed, 18 Jun 2008 10:23:16 +0000 (10:23 +0000)]
Allow LIBEXECDIR to inherit from env.
Roy Marples [Wed, 18 Jun 2008 09:59:33 +0000 (09:59 +0000)]
Man page fixes.
Roy Marples [Wed, 18 Jun 2008 09:27:08 +0000 (09:27 +0000)]
Re number the hook scripts to give more space.
Roy Marples [Wed, 18 Jun 2008 09:05:04 +0000 (09:05 +0000)]
De-configure when rebinding fails.
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.
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.
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.
Roy Marples [Thu, 12 Jun 2008 08:57:29 +0000 (08:57 +0000)]
On NAK, clear the timer and lease so we init correctly.
Roy Marples [Wed, 11 Jun 2008 09:47:37 +0000 (09:47 +0000)]
Don't flush addresses on startup anymore. Also, fix inform leasetimes.
Roy Marples [Wed, 11 Jun 2008 08:43:08 +0000 (08:43 +0000)]
We don't use this var anymore.
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.
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.
Roy Marples [Tue, 10 Jun 2008 09:33:13 +0000 (09:33 +0000)]
If test works ensure we return 0 to userland.
Roy Marples [Tue, 10 Jun 2008 06:50:01 +0000 (06:50 +0000)]
Timeout on negative timeouts.
Roy Marples [Mon, 9 Jun 2008 18:29:33 +0000 (18:29 +0000)]
Fix compile for NO_FORK users.
Roy Marples [Mon, 9 Jun 2008 08:21:28 +0000 (08:21 +0000)]
Fix compile.
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 ;)
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.
Roy Marples [Sun, 8 Jun 2008 06:50:42 +0000 (06:50 +0000)]
Typo.
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
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.
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.
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.
Roy Marples [Sat, 7 Jun 2008 00:08:07 +0000 (00:08 +0000)]
make DEBUG=yes enabled ggdb.
Roy Marples [Sat, 7 Jun 2008 00:07:05 +0000 (00:07 +0000)]
Allow building of snapshots.
Roy Marples [Wed, 4 Jun 2008 16:36:12 +0000 (16:36 +0000)]
Add a sample NetworkManager hook script.
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.
Roy Marples [Fri, 30 May 2008 10:51:56 +0000 (10:51 +0000)]
Add a note about dhcpcd not fully supporting RFC 3927 yet.
Roy Marples [Fri, 30 May 2008 10:27:15 +0000 (10:27 +0000)]
Kernel will send the 2nd annoucemnent when we add the address.
Roy Marples [Fri, 30 May 2008 09:52:09 +0000 (09:52 +0000)]
Parse the ARP packet better.
Roy Marples [Fri, 30 May 2008 09:51:45 +0000 (09:51 +0000)]
Don't request the last tried IPV4LL address.
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.
Roy Marples [Thu, 29 May 2008 19:05:28 +0000 (19:05 +0000)]
Should clean the core files too.
Roy Marples [Thu, 29 May 2008 17:04:29 +0000 (17:04 +0000)]
Improve documentation about inform
Roy Marples [Thu, 29 May 2008 16:57:47 +0000 (16:57 +0000)]
persist addresses for INFORM
Roy Marples [Thu, 29 May 2008 15:08:39 +0000 (15:08 +0000)]
Remove pointless header.
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.
Roy Marples [Thu, 29 May 2008 11:58:25 +0000 (11:58 +0000)]
Respect RFC 3927 more, regarding times and conflicts.
Roy Marples [Thu, 29 May 2008 08:26:57 +0000 (08:26 +0000)]
DISABLE_FEATURE defines now don't enable automatic ENABLE_FEATURE defines.
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.