]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Sat, 19 Jul 2008 14:14:40 +0000 (14:14 +0000)]
No need to check for this error code.
Roy Marples [Sat, 19 Jul 2008 14:04:36 +0000 (14:04 +0000)]
When daemonised, don't set bound state.
Roy Marples [Sat, 19 Jul 2008 14:04:18 +0000 (14:04 +0000)]
Don't report deleteing a non existant address on FreeBSD.
Roy Marples [Fri, 18 Jul 2008 23:31:34 +0000 (23:31 +0000)]
Fix IPv4LL
Roy Marples [Fri, 18 Jul 2008 22:00:18 +0000 (22:00 +0000)]
Rework the state engine around the timers better. timeout is now used for re-transmissions and stop is used to change state.
Roy Marples [Fri, 18 Jul 2008 16:42:47 +0000 (16:42 +0000)]
Add log_dhcp so we log server ip and name if available. Saves a few bytes.
Roy Marples [Fri, 18 Jul 2008 13:43:25 +0000 (13:43 +0000)]
Try and stop a flapping timeout.
Roy Marples [Fri, 18 Jul 2008 12:23:45 +0000 (12:23 +0000)]
We could return from a few more states here.
Roy Marples [Fri, 18 Jul 2008 12:06:35 +0000 (12:06 +0000)]
Add an exit timer so that carrier changing does not cause timeouts to flap. Also, fix renewals entering the server address.
Roy Marples [Fri, 18 Jul 2008 09:17:52 +0000 (09:17 +0000)]
Move -X to -B and give it a long option. This now complements the --background option.
Roy Marples [Fri, 18 Jul 2008 09:11:35 +0000 (09:11 +0000)]
Move the immediate background flag to 'b'
Roy Marples [Fri, 18 Jul 2008 09:03:43 +0000 (09:03 +0000)]
Fix timeouts around carrier a little. We may need to introduce a third timer just for the userland timeout as it may flap if the carrier goes up/down a lot.
Roy Marples [Thu, 17 Jul 2008 14:03:45 +0000 (14:03 +0000)]
Fix realpath when dhcpcd is called from a $PATH search.
Roy Marples [Thu, 17 Jul 2008 13:26:38 +0000 (13:26 +0000)]
Use proper exit codes.
Roy Marples [Thu, 17 Jul 2008 12:26:58 +0000 (12:26 +0000)]
Fix IPv4LL netmask and broadcast on big endian.
Roy Marples [Thu, 17 Jul 2008 12:26:32 +0000 (12:26 +0000)]
No need to cast
Roy Marples [Thu, 17 Jul 2008 10:36:42 +0000 (10:36 +0000)]
Move the renew reset code futher down where it makes more sense.
Roy Marples [Thu, 17 Jul 2008 08:36:47 +0000 (08:36 +0000)]
Reset message counter on renew request.
Roy Marples [Thu, 17 Jul 2008 08:27:17 +0000 (08:27 +0000)]
Close the link fd at exit.
Roy Marples [Wed, 16 Jul 2008 22:27:56 +0000 (22:27 +0000)]
Fix warning.
Roy Marples [Wed, 16 Jul 2008 22:23:07 +0000 (22:23 +0000)]
Add support for link carrier detection. For Linux this involved a big change to the netlink code to add callbacks, for BSD just an extra function. We also have an option not to wait for a DHCP lease and fork right away - useful for startup scripts.
Roy Marples [Wed, 16 Jul 2008 08:10:41 +0000 (08:10 +0000)]
fd -> raw_fd
Roy Marples [Tue, 15 Jul 2008 22:09:21 +0000 (22:09 +0000)]
Always enter the RENEW_REQUESTED state on signal or fd error as this state should then do the right thing.
Roy Marples [Tue, 15 Jul 2008 19:16:58 +0000 (19:16 +0000)]
Close socket on error and signal so that they get refreshed.
Roy Marples [Tue, 15 Jul 2008 15:06:09 +0000 (15:06 +0000)]
Don't log about trying to use a non existant lease.
Roy Marples [Tue, 15 Jul 2008 14:59:00 +0000 (14:59 +0000)]
Ensure that IPv4LL address is one :)
Roy Marples [Tue, 15 Jul 2008 00:53:30 +0000 (00:53 +0000)]
Fix timeout.
Roy Marples [Mon, 14 Jul 2008 20:51:41 +0000 (20:51 +0000)]
If renewing an IPV4LL address, re-enter the probing state of just exiting.
Roy Marples [Sun, 13 Jul 2008 08:38:08 +0000 (08:38 +0000)]
Remove some warnings when removing features.
Roy Marples [Sat, 12 Jul 2008 17:54:21 +0000 (17:54 +0000)]
Typo.
Roy Marples [Sat, 12 Jul 2008 17:38:42 +0000 (17:38 +0000)]
BSD systems auto gratuitous ARP when configured with an address, so no need to send 2 announcements, just the one.
Roy Marples [Sat, 12 Jul 2008 17:14:45 +0000 (17:14 +0000)]
Allow a user defined enter and exit hook instead of just a single hook.
Roy Marples [Sat, 12 Jul 2008 16:47:05 +0000 (16:47 +0000)]
Optimize the random calc for timeout.
Roy Marples [Sat, 12 Jul 2008 12:51:04 +0000 (12:51 +0000)]
It seems that every arp application does not pad to 60 bytes. So either they are all not RFC conformant (doubtful) or their leaving it to something else. As such, dhcpcd will not pad either, so it's less code :)
Roy Marples [Sat, 12 Jul 2008 01:03:18 +0000 (01:03 +0000)]
Typo
Roy Marples [Sat, 12 Jul 2008 00:49:59 +0000 (00:49 +0000)]
Fix gratuitous ARP with fork()less systems.
Roy Marples [Sat, 12 Jul 2008 00:49:34 +0000 (00:49 +0000)]
We should use ETHERMIN.
Roy Marples [Sat, 12 Jul 2008 00:29:32 +0000 (00:29 +0000)]
Respect ipv4ll timeouts more.
Roy Marples [Sat, 12 Jul 2008 00:27:48 +0000 (00:27 +0000)]
We shoudln't have to disable timeout.
Roy Marples [Fri, 11 Jul 2008 11:24:18 +0000 (11:24 +0000)]
Improve ARP conflict.
Roy Marples [Fri, 11 Jul 2008 10:13:23 +0000 (10:13 +0000)]
Save a few bytes here. Also, fill with 0 so that we mirror the BSD gratuitous ARP when adding an address.
Roy Marples [Fri, 11 Jul 2008 09:01:04 +0000 (09:01 +0000)]
Remove superfluous brackets.
Roy Marples [Fri, 11 Jul 2008 08:48:35 +0000 (08:48 +0000)]
Use timeval usecs instead of secs for greater randomistation.
Roy Marples [Fri, 11 Jul 2008 08:31:48 +0000 (08:31 +0000)]
If time overflows, we should wait again.
Roy Marples [Thu, 10 Jul 2008 18:39:34 +0000 (18:39 +0000)]
Fix timeval -> poll conversion.
Roy Marples [Thu, 10 Jul 2008 16:06:29 +0000 (16:06 +0000)]
Fix compile for fork()less systems.
Roy Marples [Thu, 10 Jul 2008 15:36:19 +0000 (15:36 +0000)]
Report more send_arp breakage.
Roy Marples [Thu, 10 Jul 2008 15:32:27 +0000 (15:32 +0000)]
Report errors sending ARP requests.
Roy Marples [Thu, 10 Jul 2008 15:32:03 +0000 (15:32 +0000)]
Fix sending of ARP packets.
Roy Marples [Thu, 10 Jul 2008 15:31:37 +0000 (15:31 +0000)]
Style.
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.