]>
git.ipfire.org Git - thirdparty/dhcpcd.git/log
Roy Marples [Tue, 29 Jul 2008 16:09:56 +0000 (16:09 +0000)]
Fix background for forkless systems.
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.
Roy Marples [Mon, 28 Jul 2008 14:35:20 +0000 (14:35 +0000)]
Release dhcpcd-4.0.0-rc4
Roy Marples [Mon, 28 Jul 2008 14:01:17 +0000 (14:01 +0000)]
returns
Roy Marples [Mon, 28 Jul 2008 13:39:57 +0000 (13:39 +0000)]
Check chaddr matches our hwaddr if it fits.
Roy Marples [Mon, 28 Jul 2008 13:28:08 +0000 (13:28 +0000)]
Don't use the word will so much.
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.
Roy Marples [Mon, 28 Jul 2008 12:02:24 +0000 (12:02 +0000)]
Tart up the mandoc a little, thanks to Thomas Klausner.
Roy Marples [Mon, 28 Jul 2008 09:17:07 +0000 (09:17 +0000)]
Fix --noipv4ll option from timing out right away.
Roy Marples [Sun, 27 Jul 2008 18:04:44 +0000 (18:04 +0000)]
Inherit DBDIR and LIBEXECDIR from the env.
Roy Marples [Sun, 27 Jul 2008 15:36:40 +0000 (15:36 +0000)]
Misc fixes and clarify why inform should have a CIDR.
Roy Marples [Sun, 27 Jul 2008 10:29:12 +0000 (10:29 +0000)]
Release dhcpcd-4.0.0-rc3
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.
Roy Marples [Sat, 26 Jul 2008 12:29:02 +0000 (12:29 +0000)]
Fix sign error.
Roy Marples [Sat, 26 Jul 2008 11:40:39 +0000 (11:40 +0000)]
Save some bytes by not using timeradd so much.
Roy Marples [Sat, 26 Jul 2008 09:28:16 +0000 (09:28 +0000)]
Ensure can handle our lease time.
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.
Roy Marples [Fri, 25 Jul 2008 20:35:41 +0000 (20:35 +0000)]
Report more accurate seconds.
Roy Marples [Thu, 24 Jul 2008 21:51:11 +0000 (21:51 +0000)]
Fix signal handling and ARP announcing.
Roy Marples [Thu, 24 Jul 2008 15:50:19 +0000 (15:50 +0000)]
Fix breakage caused by last patch.
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.
Roy Marples [Thu, 24 Jul 2008 14:30:36 +0000 (14:30 +0000)]
get_time -> clock_monotonic to be more descriptive.
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 :)
Roy Marples [Wed, 23 Jul 2008 16:08:27 +0000 (16:08 +0000)]
Release dhcpcd-4.0.0-rc2
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.
Roy Marples [Wed, 23 Jul 2008 14:14:53 +0000 (14:14 +0000)]
Don't flap the carrier needlessly.
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.
Roy Marples [Wed, 23 Jul 2008 08:45:04 +0000 (08:45 +0000)]
Typo
Roy Marples [Tue, 22 Jul 2008 12:49:26 +0000 (12:49 +0000)]
Minor updates.
Roy Marples [Tue, 22 Jul 2008 09:10:55 +0000 (09:10 +0000)]
Release dhcpcd-4.0.0-rc1
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.
Roy Marples [Mon, 21 Jul 2008 21:48:17 +0000 (21:48 +0000)]
Fix valgrind errors, and report correct type.
Roy Marples [Mon, 21 Jul 2008 21:30:48 +0000 (21:30 +0000)]
EXPIRE on NAK and fix valgrind errors.
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.
Roy Marples [Mon, 21 Jul 2008 14:30:07 +0000 (14:30 +0000)]
Better to say which OS's have closefrom.
Roy Marples [Mon, 21 Jul 2008 14:24:18 +0000 (14:24 +0000)]
Darwin uses --rpath instead of -Wl,-rpath= - bummer.
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.
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.
Roy Marples [Mon, 21 Jul 2008 10:32:16 +0000 (10:32 +0000)]
Fix compile on OSX.
Roy Marples [Mon, 21 Jul 2008 06:17:08 +0000 (06:17 +0000)]
Don't log waiting for carrier when backgrounding.
Roy Marples [Mon, 21 Jul 2008 06:12:33 +0000 (06:12 +0000)]
We should timeout when in background for IPv4LL.
Roy Marples [Mon, 21 Jul 2008 06:02:28 +0000 (06:02 +0000)]
Actually no, just the probing state. We should defend our announces :)
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.
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.
Roy Marples [Sun, 20 Jul 2008 16:21:53 +0000 (16:21 +0000)]
fork()less fixes.
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.
Roy Marples [Sat, 19 Jul 2008 20:52:17 +0000 (20:52 +0000)]
Quick fix.
Roy Marples [Sat, 19 Jul 2008 20:11:03 +0000 (20:11 +0000)]
Style.
Roy Marples [Sat, 19 Jul 2008 20:04:27 +0000 (20:04 +0000)]
Fix the timeouts some more - complicated stuff!
Roy Marples [Sat, 19 Jul 2008 17:06:54 +0000 (17:06 +0000)]
Fix IPv4LL when backgrounding.
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.