]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
15 years agoQuiet should always be quiet on the console regardless of debug.
Roy Marples [Tue, 27 Apr 2010 10:46:44 +0000 (10:46 +0000)] 
Quiet should always be quiet on the console regardless of debug.

16 years agoReorganise the opening and closing of sockets a bit.
Roy Marples [Mon, 19 Apr 2010 12:36:28 +0000 (12:36 +0000)] 
Reorganise the opening and closing of sockets a bit.
Attempt at addressing #190.

16 years agoForce gatetway to zero instead of adding a host route when the interface
Roy Marples [Mon, 19 Apr 2010 11:16:43 +0000 (11:16 +0000)] 
Force gatetway to zero instead of adding a host route when the interface
does not support ARP. This improves performance slighty.
Addresses #188.

16 years agoCheck to see if any routers require a host route if they are on a
Roy Marples [Thu, 15 Apr 2010 13:22:41 +0000 (13:22 +0000)] 
Check to see if any routers require a host route if they are on a
different subnet.
This fixes issues with badly configured DHCP servers.
We may need to extent this check to any route with a host destination
in the future.

16 years agoclosefrom(3) on FreeBSD is a void return.
Roy Marples [Tue, 13 Apr 2010 12:10:16 +0000 (12:10 +0000)] 
closefrom(3) on FreeBSD is a void return.
Thanks to Naohiro Aota.

16 years agoWe don't use arpble anymore.
Roy Marples [Thu, 1 Apr 2010 19:13:22 +0000 (19:13 +0000)] 
We don't use arpble anymore.

16 years agoRelease dhcpcd-5.2.2 v5.2.2
Roy Marples [Wed, 31 Mar 2010 08:48:44 +0000 (08:48 +0000)] 
Release dhcpcd-5.2.2

16 years agoUpdate copyright
Roy Marples [Wed, 31 Mar 2010 08:46:46 +0000 (08:46 +0000)] 
Update copyright

16 years agoEnsure SSID is terminated.
Roy Marples [Tue, 30 Mar 2010 19:46:03 +0000 (19:46 +0000)] 
Ensure SSID is terminated.

16 years agoRandomize ip_id and remove IPTOS_LOWDELAY and IP_DF flags.
Roy Marples [Fri, 12 Mar 2010 20:33:15 +0000 (20:33 +0000)] 
Randomize ip_id and remove IPTOS_LOWDELAY and IP_DF flags.
This makes us a better net citizen.

16 years agoFix compile on old systems with broken headers.
Roy Marples [Thu, 11 Mar 2010 10:02:03 +0000 (10:02 +0000)] 
Fix compile on old systems with broken headers.

16 years agoWe should not set a maximum message size bigger than what we can
Roy Marples [Sat, 6 Mar 2010 17:46:01 +0000 (17:46 +0000)] 
We should not set a maximum message size bigger than what we can
actually handle.

16 years agoClose the fp.
Roy Marples [Sat, 6 Mar 2010 17:16:20 +0000 (17:16 +0000)] 
Close the fp.

16 years agoDon't display NULL platforms.
Roy Marples [Fri, 5 Mar 2010 15:51:31 +0000 (15:51 +0000)] 
Don't display NULL platforms.

16 years agoSet the broadcast flag for interfaces that say they need it.
Roy Marples [Fri, 5 Mar 2010 15:47:46 +0000 (15:47 +0000)] 
Set the broadcast flag for interfaces that say they need it.

16 years agoRelease dhcpcd-5.2.1 v5.2.1
Roy Marples [Sat, 27 Feb 2010 16:00:28 +0000 (16:00 +0000)] 
Release dhcpcd-5.2.1

16 years agoInclude platform.h
Roy Marples [Sat, 27 Feb 2010 15:57:44 +0000 (15:57 +0000)] 
Include platform.h

16 years agoFix import target.
Roy Marples [Sat, 27 Feb 2010 15:33:18 +0000 (15:33 +0000)] 
Fix import target.

16 years agoRelease dhcpcd-5.2.0 v5.2.0
Roy Marples [Sat, 27 Feb 2010 08:58:55 +0000 (08:58 +0000)] 
Release dhcpcd-5.2.0

16 years agoOnly UDP based on current state, not the offer.
Roy Marples [Sat, 27 Feb 2010 08:37:00 +0000 (08:37 +0000)] 
Only UDP based on current state, not the offer.

16 years agoEnable net.ipv4.conf.$iface.promote_secondaries on Linux so that
Roy Marples [Fri, 26 Feb 2010 20:37:30 +0000 (20:37 +0000)] 
Enable net.ipv4.conf.$iface.promote_secondaries on Linux so that
we keep the subnet when changing addresses on the same subnet.

16 years agoWhen trying IPv4LL from a DHCP lease with an IPv4LL address, just
Roy Marples [Fri, 26 Feb 2010 15:06:51 +0000 (15:06 +0000)] 
When trying IPv4LL from a DHCP lease with an IPv4LL address, just
use the address and nothing else.

16 years agoOpen and close sockets better.
Roy Marples [Fri, 26 Feb 2010 15:06:23 +0000 (15:06 +0000)] 
Open and close sockets better.

16 years agoDeleting all timeouts for the interface is better.
Roy Marples [Fri, 26 Feb 2010 13:46:07 +0000 (13:46 +0000)] 
Deleting all timeouts for the interface is better.

16 years agoClear timeouts when starting ipv4ll.
Roy Marples [Fri, 26 Feb 2010 13:41:38 +0000 (13:41 +0000)] 
Clear timeouts when starting ipv4ll.

16 years agoFix a crash when server sends more than one of the same option.
Roy Marples [Thu, 25 Feb 2010 09:22:30 +0000 (09:22 +0000)] 
Fix a crash when server sends more than one of the same option.
Thanks to Xia Weizhong.

16 years agoAllow IPv4LL address range to be configured by DHCP.
Roy Marples [Wed, 17 Feb 2010 22:23:17 +0000 (22:23 +0000)] 
Allow IPv4LL address range to be configured by DHCP.
We now check the message for a DHCP cookie instead of the address
assigned to test for local link.

16 years agoUse a more descriptive vendorid, to include OS arch and platform.
Roy Marples [Wed, 17 Feb 2010 13:26:45 +0000 (13:26 +0000)] 
Use a more descriptive vendorid, to include OS arch and platform.

16 years agoRelease dhcpcd-5.1.5 v5.1.5
Roy Marples [Sun, 31 Jan 2010 20:17:35 +0000 (20:17 +0000)] 
Release dhcpcd-5.1.5

16 years ago-J, --broadcast now sets the broadcast flag in DHCP messages.
Roy Marples [Thu, 28 Jan 2010 20:12:54 +0000 (20:12 +0000)] 
-J, --broadcast now sets the broadcast flag in DHCP messages.

16 years agoClear leased address when discarding.
Roy Marples [Wed, 27 Jan 2010 11:51:30 +0000 (11:51 +0000)] 
Clear leased address when discarding.
Another fix for #185.

16 years agoIf we reboot an old valid lease but fail to ACK it, we need to
Roy Marples [Tue, 26 Jan 2010 08:07:21 +0000 (08:07 +0000)] 
If we reboot an old valid lease but fail to ACK it, we need to
clear the address when discovering.

16 years agoEnsure that we don't inherit OS and others from env.
Roy Marples [Mon, 25 Jan 2010 20:06:15 +0000 (20:06 +0000)] 
Ensure that we don't inherit OS and others from env.

16 years agoSpelling corrections.
Roy Marples [Sun, 24 Jan 2010 21:01:59 +0000 (21:01 +0000)] 
Spelling corrections.
Thanks to Soren Jacobsen.

16 years agoInfinite lease times are always valid when reading leases.
Roy Marples [Thu, 14 Jan 2010 02:23:19 +0000 (02:23 +0000)] 
Infinite lease times are always valid when reading leases.

16 years ago-H, --xidhwaddr will use the last four bytes of the hardware address
Roy Marples [Thu, 14 Jan 2010 02:04:41 +0000 (02:04 +0000)] 
-H, --xidhwaddr will use the last four bytes of the hardware address
as the xid instead of generating a random number.
Thanks to Aurelien.

16 years agoUpdate copyright
Roy Marples [Thu, 14 Jan 2010 01:44:49 +0000 (01:44 +0000)] 
Update copyright

16 years agoDon't warn about unsupported family for infiniband.
Roy Marples [Wed, 13 Jan 2010 23:54:45 +0000 (23:54 +0000)] 
Don't warn about unsupported family for infiniband.
Thanks to Aurelien.

16 years agoImport cut down arc4ramdom.c from OpenBSD for better randomness.
Roy Marples [Wed, 13 Jan 2010 23:44:14 +0000 (23:44 +0000)] 
Import cut down arc4ramdom.c from OpenBSD for better randomness.
Partially addresses #183.

16 years agoRelease dhcpcd-5.1.4 v5.1.4
Roy Marples [Wed, 23 Dec 2009 08:22:32 +0000 (08:22 +0000)] 
Release dhcpcd-5.1.4

16 years agoFix compile.
Roy Marples [Wed, 23 Dec 2009 08:05:57 +0000 (08:05 +0000)] 
Fix compile.

16 years agoOnly warn about CSR when binding.
Roy Marples [Wed, 23 Dec 2009 07:18:22 +0000 (07:18 +0000)] 
Only warn about CSR when binding.

16 years agoFix finding deleted routes on Linux.
Roy Marples [Mon, 14 Dec 2009 14:47:16 +0000 (14:47 +0000)] 
Fix finding deleted routes on Linux.

16 years agoStyle
Roy Marples [Mon, 14 Dec 2009 14:46:54 +0000 (14:46 +0000)] 
Style

16 years agoWait 1/100th of a second before release as testing shows the
Roy Marples [Thu, 3 Dec 2009 13:30:09 +0000 (13:30 +0000)] 
Wait 1/100th of a second before release as testing shows the
release is sent correctly even in a heavy load.

16 years agoFix the -S option, #181.
Roy Marples [Tue, 1 Dec 2009 00:57:45 +0000 (00:57 +0000)] 
Fix the -S option, #181.

16 years agoGive the RELEASE packet a chance to leave the kernel
Roy Marples [Tue, 24 Nov 2009 01:15:08 +0000 (01:15 +0000)] 
Give the RELEASE packet a chance to leave the kernel
before dropping the ip.

16 years agoIf we have to bring an interface up, and we don't have any carriers
Roy Marples [Fri, 20 Nov 2009 15:14:27 +0000 (15:14 +0000)] 
If we have to bring an interface up, and we don't have any carriers
then we need to wait for a second to allow an interface to settle.

16 years agoSmall code optimisation.
Roy Marples [Fri, 20 Nov 2009 14:35:36 +0000 (14:35 +0000)] 
Small code optimisation.

16 years agoFix the import target a little.
Roy Marples [Fri, 20 Nov 2009 12:40:59 +0000 (12:40 +0000)] 
Fix the import target a little.

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.