]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
16 years agoAllow --without-getline to skip the getline test.
Roy Marples [Fri, 20 Nov 2009 12:20:10 +0000 (12:20 +0000)] 
Allow --without-getline to skip the getline test.
This makes NetBSD importing a little easier.

16 years agoRe-apply lease info if different - fixes occasional release being broadcast.
Roy Marples [Thu, 19 Nov 2009 21:53:25 +0000 (21:53 +0000)] 
Re-apply lease info if different - fixes occasional release being broadcast.
Ensure we use a new xid when releasing.

16 years agodhcpcd should log to syslog even with quiet.
Roy Marples [Thu, 19 Nov 2009 21:31:41 +0000 (21:31 +0000)] 
dhcpcd should log to syslog even with quiet.

16 years agoStyle.
Roy Marples [Sun, 25 Oct 2009 23:21:21 +0000 (23:21 +0000)] 
Style.

16 years agoRelease dhpcd-5.1.3 v5.1.3
Roy Marples [Sun, 25 Oct 2009 23:08:14 +0000 (23:08 +0000)] 
Release dhpcd-5.1.3

16 years agoDocument default behaviour better for running on a single interface.
Roy Marples [Sun, 25 Oct 2009 14:44:28 +0000 (14:44 +0000)] 
Document default behaviour better for running on a single interface.

16 years agoWe need to enable waitip when running on a single interface to retain
Roy Marples [Sun, 25 Oct 2009 10:56:54 +0000 (10:56 +0000)] 
We need to enable waitip when running on a single interface to retain
compat with older dhcpcd versions.

16 years agoTypo.
Roy Marples [Sat, 24 Oct 2009 22:36:56 +0000 (22:36 +0000)] 
Typo.
Thanks to Christoph Egger.

16 years agoDon't always request classless_static_routes, instead add it to dhcpcd.conf
Roy Marples [Sat, 17 Oct 2009 15:31:39 +0000 (15:31 +0000)] 
Don't always request classless_static_routes, instead add it to dhcpcd.conf
as a default option. Add a debug message when adding classless_static_routes.
This is because some DHCP servers have this option badly setup and it could
not be otherwise disabled.

16 years agoDon't allow the same hook to be added more than once.
Roy Marples [Sat, 17 Oct 2009 06:58:42 +0000 (06:58 +0000)] 
Don't allow the same hook to be added more than once.

16 years agoIf using --with-hooks, don't detect any other hooks. v5.1.2
Roy Marples [Fri, 16 Oct 2009 21:36:51 +0000 (21:36 +0000)] 
If using --with-hooks, don't detect any other hooks.

16 years agoRelease dhcpcd-5.1.2
Roy Marples [Fri, 16 Oct 2009 21:13:41 +0000 (21:13 +0000)] 
Release dhcpcd-5.1.2

16 years agoAdd back -w, --waitip so that user has total control over behaviour.
Roy Marples [Fri, 16 Oct 2009 19:59:30 +0000 (19:59 +0000)] 
Add back -w, --waitip so that user has total control over behaviour.

16 years agoThe hwaddr could have changed for existing interfaces.
Roy Marples [Thu, 15 Oct 2009 07:33:24 +0000 (07:33 +0000)] 
The hwaddr could have changed for existing interfaces.

16 years agoOnly work with ethernet by default so firewire does not slow down the boot.
Roy Marples [Thu, 15 Oct 2009 07:32:49 +0000 (07:32 +0000)] 
Only work with ethernet by default so firewire does not slow down the boot.

16 years agoMultiple debug no longer stops backgrounding.
Roy Marples [Thu, 15 Oct 2009 00:33:23 +0000 (00:33 +0000)] 
Multiple debug no longer stops backgrounding.

16 years agoJust have one open socket for AF_NET.
Roy Marples [Thu, 15 Oct 2009 00:30:54 +0000 (00:30 +0000)] 
Just have one open socket for AF_NET.

16 years agoRemove the -w option and make it the default action if at least one
Roy Marples [Wed, 14 Oct 2009 15:16:07 +0000 (15:16 +0000)] 
Remove the -w option and make it the default action if at least one
interface reports a carrier.

16 years agowait -> waitip
Roy Marples [Tue, 13 Oct 2009 06:02:30 +0000 (06:02 +0000)] 
wait -> waitip
It's more descriptive and allows future wait$entity commands.

16 years agowait should work in dhcpcd.conf
Roy Marples [Sat, 10 Oct 2009 16:25:06 +0000 (16:25 +0000)] 
wait should work in dhcpcd.conf

16 years agoAbort when we have an invalid interface list.
Roy Marples [Fri, 9 Oct 2009 19:24:22 +0000 (19:24 +0000)] 
Abort when we have an invalid interface list.

16 years agoAlways unlink the lease file on ARP failure so we never rebind the failed address.
Roy Marples [Fri, 9 Oct 2009 19:23:50 +0000 (19:23 +0000)] 
Always unlink the lease file on ARP failure so we never rebind the failed address.

16 years agoWe need to ensure sockets are open for sending a DECLINE.
Roy Marples [Fri, 9 Oct 2009 19:00:34 +0000 (19:00 +0000)] 
We need to ensure sockets are open for sending a DECLINE.

16 years agoRemeber preferred domain list order so we fall back correctly.
Roy Marples [Fri, 9 Oct 2009 16:26:23 +0000 (16:26 +0000)] 
Remeber preferred domain list order so we fall back correctly.
Stop ypbind when we don't have any domains so we don't stall.

16 years agoAdd new hook, 50-ypbind for BSD ypbind versions.
Roy Marples [Fri, 9 Oct 2009 13:12:20 +0000 (13:12 +0000)] 
Add new hook, 50-ypbind for BSD ypbind versions.
configure now detects ntpd and ypbind for automatic hook install.

16 years agoImprove import so it's more generic.
Roy Marples [Thu, 8 Oct 2009 20:21:23 +0000 (20:21 +0000)] 
Improve import so it's more generic.

16 years agoAdd an extra timeout for IPv4LL when in use.
Roy Marples [Thu, 8 Oct 2009 19:56:52 +0000 (19:56 +0000)] 
Add an extra timeout for IPv4LL when in use.

16 years agoTimeout should not automagically increase when using IPv4LL.
Roy Marples [Thu, 8 Oct 2009 07:07:25 +0000 (07:07 +0000)] 
Timeout should not automagically increase when using IPv4LL.
If we need extra we should handle that at handle_exit_timeout() and log.

16 years ago-w, --wait forces dhcpcd to wait for an ip address or timeout when
Roy Marples [Wed, 7 Oct 2009 21:11:14 +0000 (21:11 +0000)] 
-w, --wait forces dhcpcd to wait for an ip address or timeout when
running on more than one interface.

16 years agoDon't export git .gitignore file
Roy Marples [Fri, 2 Oct 2009 20:57:44 +0000 (20:57 +0000)] 
Don't export git .gitignore file

16 years agoImprove config generation style more
Roy Marples [Fri, 2 Oct 2009 19:08:59 +0000 (19:08 +0000)] 
Improve config generation style more

16 years agoStyle config.h a little better.
Roy Marples [Fri, 2 Oct 2009 18:39:03 +0000 (18:39 +0000)] 
Style config.h a little better.

16 years agoReport ClientID being used in debug.
Roy Marples [Sat, 26 Sep 2009 08:00:25 +0000 (08:00 +0000)] 
Report ClientID being used in debug.

16 years agoAdd -fno-common to debugging CFLAGS.
Roy Marples [Thu, 24 Sep 2009 21:29:18 +0000 (21:29 +0000)] 
Add -fno-common to debugging CFLAGS.
Declare udp_dhcp_len as extern.
Include common.h in dhcp.h to get _packed definition.
Thanks to David Wu for pointing this out.

16 years agoRelease dhcpcd-5.1.1 v5.1.1
Roy Marples [Tue, 22 Sep 2009 06:26:04 +0000 (06:26 +0000)] 
Release dhcpcd-5.1.1

16 years agoAdd a comment about enabling a ClientID.
Roy Marples [Sun, 20 Sep 2009 16:20:31 +0000 (16:20 +0000)] 
Add a comment about enabling a ClientID.

16 years agoFix various typos and grammatical errors.
Roy Marples [Sat, 19 Sep 2009 14:25:48 +0000 (14:25 +0000)] 
Fix various typos and grammatical errors.

16 years agoSimplify config.
Roy Marples [Wed, 9 Sep 2009 10:32:48 +0000 (10:32 +0000)] 
Simplify config.

16 years agoDon't null terminate gratuitously when handling quotes.
Roy Marples [Mon, 7 Sep 2009 21:05:46 +0000 (21:05 +0000)] 
Don't null terminate gratuitously when handling quotes.

16 years agoReally fix no debug by default.
Roy Marples [Fri, 4 Sep 2009 23:27:53 +0000 (23:27 +0000)] 
Really fix no debug by default.

16 years agoDisable debugging by default if not built from git.
Roy Marples [Fri, 4 Sep 2009 23:15:18 +0000 (23:15 +0000)] 
Disable debugging by default if not built from git.

16 years agoAccept --bindir and --sbindir to modify SBINDIR - we don't use BINDIR.
Roy Marples [Thu, 3 Sep 2009 12:18:03 +0000 (12:18 +0000)] 
Accept --bindir and --sbindir to modify SBINDIR - we don't use BINDIR.
--help now prints a simple message.

16 years agoUse our defined CPPFLAGS and CFLAGS for compile tests.
Roy Marples [Thu, 3 Sep 2009 10:10:51 +0000 (10:10 +0000)] 
Use our defined CPPFLAGS and CFLAGS for compile tests.

16 years agoRelease dhcpcd-5.1.0 v5.1.0
Roy Marples [Wed, 2 Sep 2009 20:21:11 +0000 (20:21 +0000)] 
Release dhcpcd-5.1.0

16 years agoRemove escapes in man pages for vendor ,"hello world"
Roy Marples [Wed, 2 Sep 2009 18:32:28 +0000 (18:32 +0000)] 
Remove escapes in man pages for vendor ,"hello world"

16 years agoAllow an un-encapsulated vendor option.
Roy Marples [Tue, 1 Sep 2009 20:38:01 +0000 (20:38 +0000)] 
Allow an un-encapsulated vendor option.

16 years agoFix parsing of escape codes.
Roy Marples [Tue, 1 Sep 2009 20:37:34 +0000 (20:37 +0000)] 
Fix parsing of escape codes.

16 years agoWe should not affect other interfaces when handling new interface
Roy Marples [Tue, 1 Sep 2009 07:45:11 +0000 (07:45 +0000)] 
We should not affect other interfaces when handling new interface
notifications.

16 years agoDon't pass "dhcpcd $iface" to discover_interfaces so our
Roy Marples [Mon, 31 Aug 2009 21:51:17 +0000 (21:51 +0000)] 
Don't pass "dhcpcd $iface" to discover_interfaces so our
denyinterfaces config option works for hotplugged interfaces.

16 years agoWhitespace.
Roy Marples [Wed, 12 Aug 2009 08:38:41 +0000 (08:38 +0000)] 
Whitespace.

16 years agoFix timeout of 0 disabling the timeout.
Roy Marples [Tue, 11 Aug 2009 20:13:58 +0000 (20:13 +0000)] 
Fix timeout of 0 disabling the timeout.

16 years agoFix persistent option.
Roy Marples [Tue, 11 Aug 2009 20:13:41 +0000 (20:13 +0000)] 
Fix persistent option.

16 years agoDon't check family on point to point interfaces as we monitor them.
Roy Marples [Wed, 5 Aug 2009 21:39:42 +0000 (21:39 +0000)] 
Don't check family on point to point interfaces as we monitor them.

16 years agoSome drivers report ENODEV when bring the interface up if their kill switch is on.
Roy Marples [Wed, 5 Aug 2009 21:16:09 +0000 (21:16 +0000)] 
Some drivers report ENODEV when bring the interface up if their kill switch is on.
This stops dhcpcd from using the interface, so we now just blunder on and await
a carrier up event.
IMO, ENODEV is the wrong error code as the device IS present, it's just disabled.
But the patch here still makes sense.

16 years agoEnable debugging for git by default.
Roy Marples [Wed, 5 Aug 2009 21:15:50 +0000 (21:15 +0000)] 
Enable debugging for git by default.

16 years agoOnly allow hardware families we know we can work with by default.
Roy Marples [Wed, 5 Aug 2009 21:08:44 +0000 (21:08 +0000)] 
Only allow hardware families we know we can work with by default.
If an interface with a different hardware family is requested by the user then
emit a warning.

16 years agoMove icc to the back of the queue
Roy Marples [Wed, 5 Aug 2009 20:36:31 +0000 (20:36 +0000)] 
Move icc to the back of the queue

16 years agoInclude sys/types.h to compile on NetBSD-4
Roy Marples [Wed, 29 Jul 2009 08:59:36 +0000 (08:59 +0000)] 
Include sys/types.h to compile on NetBSD-4

16 years agoRemove superfluous support words.
Roy Marples [Sun, 26 Jul 2009 21:56:43 +0000 (21:56 +0000)] 
Remove superfluous support words.

16 years agoPretty hooks output and abort if no cc found.
Roy Marples [Sun, 26 Jul 2009 19:37:46 +0000 (19:37 +0000)] 
Pretty hooks output and abort if no cc found.

16 years agoSupport more autotools options
Roy Marples [Sun, 26 Jul 2009 19:29:37 +0000 (19:29 +0000)] 
Support more autotools options

16 years agoIgnore some autotool options.
Roy Marples [Sun, 26 Jul 2009 17:26:18 +0000 (17:26 +0000)] 
Ignore some autotool options.

16 years agoAllow multiple hooks
Roy Marples [Sun, 26 Jul 2009 17:18:10 +0000 (17:18 +0000)] 
Allow multiple hooks

16 years agoWarn for unknown options
Roy Marples [Sun, 26 Jul 2009 16:40:47 +0000 (16:40 +0000)] 
Warn for unknown options

16 years agoFix -f /path/to/config, #176.
Roy Marples [Sun, 26 Jul 2009 15:27:00 +0000 (15:27 +0000)] 
Fix -f /path/to/config, #176.
Also, warn if we cannot open the file.

16 years agoFix usage.
Roy Marples [Sat, 25 Jul 2009 23:37:20 +0000 (23:37 +0000)] 
Fix usage.

16 years ago-e, --env var=value
Roy Marples [Sat, 25 Jul 2009 23:22:10 +0000 (23:22 +0000)] 
-e, --env var=value
now pushes var=value to the environment when dhcpcd-run-hooks is run.
This allows the possibility to set env vars that hook scripts can work off.
A good example of this is 30-hostname so that force_hostname=YES can set
the hostname regardless of the current hostname.

--reconfigure now takes the short option -g.

16 years agoFix section.
Roy Marples [Sat, 25 Jul 2009 23:11:07 +0000 (23:11 +0000)] 
Fix section.

16 years agoDocumentation updates.
Roy Marples [Sat, 25 Jul 2009 17:57:49 +0000 (17:57 +0000)] 
Documentation updates.
A few minor corrections, but mainly updates the expected behaviour for the hostname being sent.

16 years agocd .. vs cd -, so we don't echo the directory
Roy Marples [Tue, 21 Jul 2009 20:51:00 +0000 (20:51 +0000)] 
cd .. vs cd -, so we don't echo the directory

16 years agoBump version to indicate a new branch.
Roy Marples [Tue, 21 Jul 2009 20:09:46 +0000 (20:09 +0000)] 
Bump version to indicate a new branch.

16 years agoDon't leave configure test files around when aborting.
Roy Marples [Tue, 21 Jul 2009 20:07:13 +0000 (20:07 +0000)] 
Don't leave configure test files around when aborting.

16 years agoTest for fqdn name.
Roy Marples [Mon, 20 Jul 2009 15:49:05 +0000 (15:49 +0000)] 
Test for fqdn name.

16 years agoDon't FAIL the script when testing
Roy Marples [Sun, 19 Jul 2009 20:03:58 +0000 (20:03 +0000)] 
Don't FAIL the script when testing

16 years agoTest for getifaddrs support.
Roy Marples [Sat, 18 Jul 2009 11:31:56 +0000 (11:31 +0000)] 
Test for getifaddrs support.

16 years agoFix import.
Roy Marples [Thu, 16 Jul 2009 11:03:09 +0000 (11:03 +0000)] 
Fix import.

16 years agoAdd import target for easy import into NetBSD
Roy Marples [Wed, 15 Jul 2009 09:36:43 +0000 (09:36 +0000)] 
Add import target for easy import into NetBSD

16 years agoDocumentation update
Roy Marples [Tue, 14 Jul 2009 22:01:42 +0000 (22:01 +0000)] 
Documentation update

16 years agoAdd comment about GNUMakefile
Roy Marples [Tue, 14 Jul 2009 21:52:43 +0000 (21:52 +0000)] 
Add comment about GNUMakefile

16 years agoFix compile without memory debug
Roy Marples [Tue, 14 Jul 2009 21:01:59 +0000 (21:01 +0000)] 
Fix compile without memory debug
Add configure option for --with-hook=ntp
Add debug CFLAGS for git clones
Fix manpage installation

16 years agoFix tests and compile for NetBSD.
Roy Marples [Tue, 14 Jul 2009 15:10:09 +0000 (15:10 +0000)] 
Fix tests and compile for NetBSD.

16 years agoReplace the mk stubs with a autotools like configure script.
Roy Marples [Tue, 14 Jul 2009 13:59:30 +0000 (13:59 +0000)] 
Replace the mk stubs with a autotools like configure script.
Split compat libc functions out into subdir.

16 years agoAdd some logging for errors reading/writing the leasefile.
Roy Marples [Sun, 12 Jul 2009 15:10:16 +0000 (15:10 +0000)] 
Add some logging for errors reading/writing the leasefile.

16 years agoWe should remove the leasefile for IPv4LL addresses also on release.
Roy Marples [Sat, 11 Jul 2009 21:19:42 +0000 (21:19 +0000)] 
We should remove the leasefile for IPv4LL addresses also on release.

16 years agoRemove the leasefile on release.
Roy Marples [Sat, 11 Jul 2009 21:02:41 +0000 (21:02 +0000)] 
Remove the leasefile on release.

16 years agoDon't run the script with NAK when testing.
Roy Marples [Sat, 11 Jul 2009 20:00:03 +0000 (20:00 +0000)] 
Don't run the script with NAK when testing.

16 years agoAllow testing of INFORM and REQUEST messages.
Roy Marples [Sat, 11 Jul 2009 18:54:43 +0000 (18:54 +0000)] 
Allow testing of INFORM and REQUEST messages.

16 years agoDon't alter the MTU when testing.
Roy Marples [Sat, 11 Jul 2009 15:14:54 +0000 (15:14 +0000)] 
Don't alter the MTU when testing.

16 years agoDon't print (null) when there is no NAK message.
Roy Marples [Sat, 11 Jul 2009 15:14:31 +0000 (15:14 +0000)] 
Don't print (null) when there is no NAK message.

16 years agoPromote bytes to size_t for sizeof comparison.
Roy Marples [Sat, 11 Jul 2009 15:04:13 +0000 (15:04 +0000)] 
Promote bytes to size_t for sizeof comparison.

16 years agoUse ssize_t which is a signed int and test if read() returns -1.
Roy Marples [Sat, 11 Jul 2009 07:03:23 +0000 (07:03 +0000)] 
Use ssize_t which is a signed int and test if read() returns -1.

16 years agoRelease dhcpcd-5.0.6 v5.0.6
Roy Marples [Wed, 8 Jul 2009 22:18:39 +0000 (22:18 +0000)] 
Release dhcpcd-5.0.6

16 years agoEnsure that DBDIR and RUNDIR exist if defined as /var/db/dhcpcd and/or /var/run/dhcpcd.
Roy Marples [Wed, 8 Jul 2009 19:22:31 +0000 (19:22 +0000)] 
Ensure that DBDIR and RUNDIR exist if defined as /var/db/dhcpcd and/or /var/run/dhcpcd.

16 years agoEnsure that ntp.conf exists before removing markers.
Roy Marples [Wed, 8 Jul 2009 17:05:29 +0000 (17:05 +0000)] 
Ensure that ntp.conf exists before removing markers.

16 years agoChange get_option_addr to accept struct in_addr * instead of uint32_t *
Roy Marples [Wed, 8 Jul 2009 17:01:38 +0000 (17:01 +0000)] 
Change get_option_addr to accept struct in_addr * instead of uint32_t *
to fix an alignment issue on SGI MIPS.

16 years agoAdd -W, --whitelist addr/cidr
Roy Marples [Sun, 5 Jul 2009 11:33:46 +0000 (11:33 +0000)] 
Add -W, --whitelist addr/cidr
This only allows packets from the addresses listed and overrides
blacklist if set.

16 years agoSilence more GCC warnings about unused return values.
Roy Marples [Sat, 4 Jul 2009 00:58:03 +0000 (00:58 +0000)] 
Silence more GCC warnings about unused return values.

16 years agoDocument nooption
Roy Marples [Sat, 4 Jul 2009 00:38:55 +0000 (00:38 +0000)] 
Document nooption

16 years agoWhen we get an ACK we should close DHCP sockets so we don't handle any NAKs
Roy Marples [Sat, 4 Jul 2009 00:06:25 +0000 (00:06 +0000)] 
When we get an ACK we should close DHCP sockets so we don't handle any NAKs
during ARP testing.

This is important as some broken DHCP servers NAK immediately after an ACK
in some situations.

16 years agoLog the MTU changes.
Roy Marples [Sat, 4 Jul 2009 00:03:01 +0000 (00:03 +0000)] 
Log the MTU changes.