]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
17 years agoFix background for forkless systems.
Roy Marples [Tue, 29 Jul 2008 16:09:56 +0000 (16:09 +0000)] 
Fix background for forkless systems.

17 years agoUse setlinebuf() at startup instead of calling fflush() for each logger call.
Roy Marples [Mon, 28 Jul 2008 15:43:38 +0000 (15:43 +0000)] 
Use setlinebuf() at startup instead of calling fflush() for each logger call.

17 years agoRelease dhcpcd-4.0.0-rc4
Roy Marples [Mon, 28 Jul 2008 14:35:20 +0000 (14:35 +0000)] 
Release dhcpcd-4.0.0-rc4

17 years agoreturns
Roy Marples [Mon, 28 Jul 2008 14:01:17 +0000 (14:01 +0000)] 
returns

17 years agoCheck chaddr matches our hwaddr if it fits.
Roy Marples [Mon, 28 Jul 2008 13:39:57 +0000 (13:39 +0000)] 
Check chaddr matches our hwaddr if it fits.

17 years agoDon't use the word will so much.
Roy Marples [Mon, 28 Jul 2008 13:28:08 +0000 (13:28 +0000)] 
Don't use the word will so much.

17 years agoAdd -X, --blacklist option to reject DHCP messages with a matching serverid.
Roy Marples [Mon, 28 Jul 2008 13:21:47 +0000 (13:21 +0000)] 
Add -X, --blacklist option to reject DHCP messages with a matching serverid.

17 years agoTart up the mandoc a little, thanks to Thomas Klausner.
Roy Marples [Mon, 28 Jul 2008 12:02:24 +0000 (12:02 +0000)] 
Tart up the mandoc a little, thanks to Thomas Klausner.

17 years agoFix --noipv4ll option from timing out right away.
Roy Marples [Mon, 28 Jul 2008 09:17:07 +0000 (09:17 +0000)] 
Fix --noipv4ll option from timing out right away.

17 years agoInherit DBDIR and LIBEXECDIR from the env.
Roy Marples [Sun, 27 Jul 2008 18:04:44 +0000 (18:04 +0000)] 
Inherit DBDIR and LIBEXECDIR from the env.

17 years agoMisc fixes and clarify why inform should have a CIDR.
Roy Marples [Sun, 27 Jul 2008 15:36:40 +0000 (15:36 +0000)] 
Misc fixes and clarify why inform should have a CIDR.

17 years agoRelease dhcpcd-4.0.0-rc3
Roy Marples [Sun, 27 Jul 2008 10:29:12 +0000 (10:29 +0000)] 
Release dhcpcd-4.0.0-rc3

17 years agoDon't set a sop timeout when bound to an infinite lease after announcing.
Roy Marples [Sun, 27 Jul 2008 10:17:36 +0000 (10:17 +0000)] 
Don't set a sop timeout when bound to an infinite lease after announcing.

17 years agoFix sign error.
Roy Marples [Sat, 26 Jul 2008 12:29:02 +0000 (12:29 +0000)] 
Fix sign error.

17 years agoSave some bytes by not using timeradd so much.
Roy Marples [Sat, 26 Jul 2008 11:40:39 +0000 (11:40 +0000)] 
Save some bytes by not using timeradd so much.

17 years agoEnsure can handle our lease time.
Roy Marples [Sat, 26 Jul 2008 09:28:16 +0000 (09:28 +0000)] 
Ensure can handle our lease time.

17 years agoMove the seconds waiting calc into the if where it's needed.
Roy Marples [Sat, 26 Jul 2008 07:32:44 +0000 (07:32 +0000)] 
Move the seconds waiting calc into the if where it's needed.

17 years agoReport more accurate seconds.
Roy Marples [Fri, 25 Jul 2008 20:35:41 +0000 (20:35 +0000)] 
Report more accurate seconds.

17 years agoFix signal handling and ARP announcing.
Roy Marples [Thu, 24 Jul 2008 21:51:11 +0000 (21:51 +0000)] 
Fix signal handling and ARP announcing.

17 years agoFix breakage caused by last patch.
Roy Marples [Thu, 24 Jul 2008 15:50:19 +0000 (15:50 +0000)] 
Fix breakage caused by last patch.

17 years agoNormalise tv_usecs. Also, send the fd ready back to the main loop so we don't have...
Roy Marples [Thu, 24 Jul 2008 15:09:33 +0000 (15:09 +0000)] 
Normalise tv_usecs. Also, send the fd ready back to the main loop so we don't have to re-poll each fd. Saves bytes and is more efficient.

17 years agoget_time -> clock_monotonic to be more descriptive.
Roy Marples [Thu, 24 Jul 2008 14:30:36 +0000 (14:30 +0000)] 
get_time -> clock_monotonic to be more descriptive.

17 years agoRemove #ifdefs to disable specific bits of code. We now build everything - we're...
Roy Marples [Wed, 23 Jul 2008 17:06:42 +0000 (17:06 +0000)] 
Remove #ifdefs to disable specific bits of code. We now build everything - we're small enough :)

17 years agoRelease dhcpcd-4.0.0-rc2
Roy Marples [Wed, 23 Jul 2008 16:08:27 +0000 (16:08 +0000)] 
Release dhcpcd-4.0.0-rc2

17 years agoIf we fail to obtain an IPv4LL address, drop back to search for a DHCP lease.
Roy Marples [Wed, 23 Jul 2008 14:21:29 +0000 (14:21 +0000)] 
If we fail to obtain an IPv4LL address, drop back to search for a DHCP lease.

17 years agoDon't flap the carrier needlessly.
Roy Marples [Wed, 23 Jul 2008 14:14:53 +0000 (14:14 +0000)] 
Don't flap the carrier needlessly.

17 years agoFix mini timeouts and starting ipv4ll when link is down and we try to renew a lease.
Roy Marples [Wed, 23 Jul 2008 10:32:00 +0000 (10:32 +0000)] 
Fix mini timeouts and starting ipv4ll when link is down and we try to renew a lease.

17 years agoTypo
Roy Marples [Wed, 23 Jul 2008 08:45:04 +0000 (08:45 +0000)] 
Typo

17 years agoMinor updates.
Roy Marples [Tue, 22 Jul 2008 12:49:26 +0000 (12:49 +0000)] 
Minor updates.

17 years agoRelease dhcpcd-4.0.0-rc1
Roy Marples [Tue, 22 Jul 2008 09:10:55 +0000 (09:10 +0000)] 
Release dhcpcd-4.0.0-rc1

17 years agoAlways expire lease on probe failure. We should do this as the LAN we hot swap too...
Roy Marples [Tue, 22 Jul 2008 06:58:11 +0000 (06:58 +0000)] 
Always expire lease on probe failure. We should do this as the LAN we hot swap too could deny our IPv4LL probes are a while and this is safer.

17 years agoFix valgrind errors, and report correct type.
Roy Marples [Mon, 21 Jul 2008 21:48:17 +0000 (21:48 +0000)] 
Fix valgrind errors, and report correct type.

17 years agoEXPIRE on NAK and fix valgrind errors.
Roy Marples [Mon, 21 Jul 2008 21:30:48 +0000 (21:30 +0000)] 
EXPIRE on NAK and fix valgrind errors.

17 years agoMore timer fixes. Also, when a handle function returns 1, don't wait for a packet...
Roy Marples [Mon, 21 Jul 2008 16:21:53 +0000 (16:21 +0000)] 
More timer fixes. Also, when a handle function returns 1, don't wait for a packet as we should drop through to the handle_timeout. Makes the code a bit cleaner.

17 years agoBetter to say which OS's have closefrom.
Roy Marples [Mon, 21 Jul 2008 14:30:07 +0000 (14:30 +0000)] 
Better to say which OS's have closefrom.

17 years agoDarwin uses --rpath instead of -Wl,-rpath= - bummer.
Roy Marples [Mon, 21 Jul 2008 14:24:18 +0000 (14:24 +0000)] 
Darwin uses --rpath instead of -Wl,-rpath= - bummer.

17 years agoOK, the loop was caused by the initial carrier timeout. Also, always log carrier...
Roy Marples [Mon, 21 Jul 2008 14:05:35 +0000 (14:05 +0000)] 
OK, the loop was caused by the initial carrier timeout. Also, always log carrier waiting, but don't spam the console when backgrounding.

17 years agoAttempt to fix dhcpcd going into a tight infinite loop after getting an IPv4LL address.
Roy Marples [Mon, 21 Jul 2008 13:20:59 +0000 (13:20 +0000)] 
Attempt to fix dhcpcd going into a tight infinite loop after getting an IPv4LL address.

17 years agoFix compile on OSX.
Roy Marples [Mon, 21 Jul 2008 10:32:16 +0000 (10:32 +0000)] 
Fix compile on OSX.

17 years agoDon't log waiting for carrier when backgrounding.
Roy Marples [Mon, 21 Jul 2008 06:17:08 +0000 (06:17 +0000)] 
Don't log waiting for carrier when backgrounding.

17 years agoWe should timeout when in background for IPv4LL.
Roy Marples [Mon, 21 Jul 2008 06:12:33 +0000 (06:12 +0000)] 
We should timeout when in background for IPv4LL.

17 years agoActually no, just the probing state. We should defend our announces :)
Roy Marples [Mon, 21 Jul 2008 06:02:28 +0000 (06:02 +0000)] 
Actually no, just the probing state. We should defend our announces :)

17 years agoWe should only defend when not in the probing or announcing state.
Roy Marples [Mon, 21 Jul 2008 05:40:24 +0000 (05:40 +0000)] 
We should only defend when not in the probing or announcing state.

17 years agoRemove the fork() test as compile hosts will normally have it, making it redundant.
Roy Marples [Sun, 20 Jul 2008 19:33:27 +0000 (19:33 +0000)] 
Remove the fork() test as compile hosts will normally have it, making it redundant.

17 years agofork()less fixes.
Roy Marples [Sun, 20 Jul 2008 16:21:53 +0000 (16:21 +0000)] 
fork()less fixes.

17 years agoDon't re-up the interface - user may have brought it down.
Roy Marples [Sun, 20 Jul 2008 15:56:01 +0000 (15:56 +0000)] 
Don't re-up the interface - user may have brought it down.

17 years agoQuick fix.
Roy Marples [Sat, 19 Jul 2008 20:52:17 +0000 (20:52 +0000)] 
Quick fix.

17 years agoStyle.
Roy Marples [Sat, 19 Jul 2008 20:11:03 +0000 (20:11 +0000)] 
Style.

17 years agoFix the timeouts some more - complicated stuff!
Roy Marples [Sat, 19 Jul 2008 20:04:27 +0000 (20:04 +0000)] 
Fix the timeouts some more - complicated stuff!

17 years agoFix IPv4LL when backgrounding.
Roy Marples [Sat, 19 Jul 2008 17:06:54 +0000 (17:06 +0000)] 
Fix IPv4LL when backgrounding.

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.