]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoNo need to check for this error code.
Roy Marples [Sat, 19 Jul 2008 14:14:40 +0000 (14:14 +0000)] 
No need to check for this error code.

17 years agoWhen daemonised, don't set bound state.
Roy Marples [Sat, 19 Jul 2008 14:04:36 +0000 (14:04 +0000)] 
When daemonised, don't set bound state.

17 years agoDon't report deleteing a non existant address on FreeBSD.
Roy Marples [Sat, 19 Jul 2008 14:04:18 +0000 (14:04 +0000)] 
Don't report deleteing a non existant address on FreeBSD.

17 years agoFix IPv4LL
Roy Marples [Fri, 18 Jul 2008 23:31:34 +0000 (23:31 +0000)] 
Fix IPv4LL

17 years agoRework the state engine around the timers better. timeout is now used for re-transmis...
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.

17 years agoAdd log_dhcp so we log server ip and name if available. Saves a few bytes.
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.

17 years agoTry and stop a flapping timeout.
Roy Marples [Fri, 18 Jul 2008 13:43:25 +0000 (13:43 +0000)] 
Try and stop a flapping timeout.

17 years agoWe could return from a few more states here.
Roy Marples [Fri, 18 Jul 2008 12:23:45 +0000 (12:23 +0000)] 
We could return from a few more states here.

17 years agoAdd an exit timer so that carrier changing does not cause timeouts to flap. Also...
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.

17 years agoMove -X to -B and give it a long option. This now complements the --background option.
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.

17 years agoMove the immediate background flag to 'b'
Roy Marples [Fri, 18 Jul 2008 09:11:35 +0000 (09:11 +0000)] 
Move the immediate background flag to 'b'

17 years agoFix timeouts around carrier a little. We may need to introduce a third timer just...
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.

17 years agoFix realpath when dhcpcd is called from a $PATH search.
Roy Marples [Thu, 17 Jul 2008 14:03:45 +0000 (14:03 +0000)] 
Fix realpath when dhcpcd is called from a $PATH search.

17 years agoUse proper exit codes.
Roy Marples [Thu, 17 Jul 2008 13:26:38 +0000 (13:26 +0000)] 
Use proper exit codes.

17 years agoFix IPv4LL netmask and broadcast on big endian.
Roy Marples [Thu, 17 Jul 2008 12:26:58 +0000 (12:26 +0000)] 
Fix IPv4LL netmask and broadcast on big endian.

17 years agoNo need to cast
Roy Marples [Thu, 17 Jul 2008 12:26:32 +0000 (12:26 +0000)] 
No need to cast

17 years agoMove the renew reset code futher down where it makes more sense.
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.

17 years agoReset message counter on renew request.
Roy Marples [Thu, 17 Jul 2008 08:36:47 +0000 (08:36 +0000)] 
Reset message counter on renew request.

17 years agoClose the link fd at exit.
Roy Marples [Thu, 17 Jul 2008 08:27:17 +0000 (08:27 +0000)] 
Close the link fd at exit.

17 years agoFix warning.
Roy Marples [Wed, 16 Jul 2008 22:27:56 +0000 (22:27 +0000)] 
Fix warning.

17 years agoAdd support for link carrier detection. For Linux this involved a big change to the...
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.

17 years agofd -> raw_fd
Roy Marples [Wed, 16 Jul 2008 08:10:41 +0000 (08:10 +0000)] 
fd -> raw_fd

17 years agoAlways enter the RENEW_REQUESTED state on signal or fd error as this state should...
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.

17 years agoClose socket on error and signal so that they get refreshed.
Roy Marples [Tue, 15 Jul 2008 19:16:58 +0000 (19:16 +0000)] 
Close socket on error and signal so that they get refreshed.

17 years agoDon't log about trying to use a non existant lease.
Roy Marples [Tue, 15 Jul 2008 15:06:09 +0000 (15:06 +0000)] 
Don't log about trying to use a non existant lease.

17 years agoEnsure that IPv4LL address is one :)
Roy Marples [Tue, 15 Jul 2008 14:59:00 +0000 (14:59 +0000)] 
Ensure that IPv4LL address is one :)

17 years agoFix timeout.
Roy Marples [Tue, 15 Jul 2008 00:53:30 +0000 (00:53 +0000)] 
Fix timeout.

17 years agoIf renewing an IPV4LL address, re-enter the probing state of just exiting.
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.

17 years agoRemove some warnings when removing features.
Roy Marples [Sun, 13 Jul 2008 08:38:08 +0000 (08:38 +0000)] 
Remove some warnings when removing features.

17 years agoTypo.
Roy Marples [Sat, 12 Jul 2008 17:54:21 +0000 (17:54 +0000)] 
Typo.

17 years agoBSD systems auto gratuitous ARP when configured with an address, so no need to send...
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.

17 years agoAllow a user defined enter and exit hook instead of just a single hook.
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.

17 years agoOptimize the random calc for timeout.
Roy Marples [Sat, 12 Jul 2008 16:47:05 +0000 (16:47 +0000)] 
Optimize the random calc for timeout.

17 years agoIt seems that every arp application does not pad to 60 bytes. So either they are...
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 :)

17 years agoTypo
Roy Marples [Sat, 12 Jul 2008 01:03:18 +0000 (01:03 +0000)] 
Typo

17 years agoFix gratuitous ARP with fork()less systems.
Roy Marples [Sat, 12 Jul 2008 00:49:59 +0000 (00:49 +0000)] 
Fix gratuitous ARP with fork()less systems.

17 years agoWe should use ETHERMIN.
Roy Marples [Sat, 12 Jul 2008 00:49:34 +0000 (00:49 +0000)] 
We should use ETHERMIN.

17 years agoRespect ipv4ll timeouts more.
Roy Marples [Sat, 12 Jul 2008 00:29:32 +0000 (00:29 +0000)] 
Respect ipv4ll timeouts more.

17 years agoWe shoudln't have to disable timeout.
Roy Marples [Sat, 12 Jul 2008 00:27:48 +0000 (00:27 +0000)] 
We shoudln't have to disable timeout.

17 years agoImprove ARP conflict.
Roy Marples [Fri, 11 Jul 2008 11:24:18 +0000 (11:24 +0000)] 
Improve ARP conflict.

17 years agoSave a few bytes here. Also, fill with 0 so that we mirror the BSD gratuitous ARP...
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.

17 years agoRemove superfluous brackets.
Roy Marples [Fri, 11 Jul 2008 09:01:04 +0000 (09:01 +0000)] 
Remove superfluous brackets.

17 years agoUse timeval usecs instead of secs for greater randomistation.
Roy Marples [Fri, 11 Jul 2008 08:48:35 +0000 (08:48 +0000)] 
Use timeval usecs instead of secs for greater randomistation.

17 years agoIf time overflows, we should wait again.
Roy Marples [Fri, 11 Jul 2008 08:31:48 +0000 (08:31 +0000)] 
If time overflows, we should wait again.

17 years agoFix timeval -> poll conversion.
Roy Marples [Thu, 10 Jul 2008 18:39:34 +0000 (18:39 +0000)] 
Fix timeval -> poll conversion.

17 years agoFix compile for fork()less systems.
Roy Marples [Thu, 10 Jul 2008 16:06:29 +0000 (16:06 +0000)] 
Fix compile for fork()less systems.

17 years agoReport more send_arp breakage.
Roy Marples [Thu, 10 Jul 2008 15:36:19 +0000 (15:36 +0000)] 
Report more send_arp breakage.

17 years agoReport errors sending ARP requests.
Roy Marples [Thu, 10 Jul 2008 15:32:27 +0000 (15:32 +0000)] 
Report errors sending ARP requests.

17 years agoFix sending of ARP packets.
Roy Marples [Thu, 10 Jul 2008 15:32:03 +0000 (15:32 +0000)] 
Fix sending of ARP packets.

17 years agoStyle.
Roy Marples [Thu, 10 Jul 2008 15:31:37 +0000 (15:31 +0000)] 
Style.

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.