]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
13 years agoOnly regen resolv.conf if we need to as some processes could monitor it
Roy Marples [Wed, 14 Dec 2011 07:59:54 +0000 (07:59 +0000)] 
Only regen resolv.conf if we need to as some processes could monitor it
for changes and restart themselves needlessly.

13 years agoIf we a 3rd party removes our assigned address, drop our lease.
Roy Marples [Sun, 11 Dec 2011 22:03:52 +0000 (22:03 +0000)] 
If we a 3rd party removes our assigned address, drop our lease.

13 years agoIf an address is whipped out after adding it by something else,
Roy Marples [Sun, 11 Dec 2011 21:14:49 +0000 (21:14 +0000)] 
If an address is whipped out after adding it by something else,
don't crash.

13 years agoFix SIP server support, RFC 3361 which has been broken since dhcpcd-3.3.
Roy Marples [Fri, 9 Dec 2011 19:40:05 +0000 (19:40 +0000)] 
Fix SIP server support, RFC 3361 which has been broken since dhcpcd-3.3.
Thanks to Egil Hjelmeland.

13 years agoAdd SixRD support, RFC5969.
Roy Marples [Fri, 9 Dec 2011 19:09:55 +0000 (19:09 +0000)] 
Add SixRD support, RFC5969.
Thanks to Jeroen Vreeken.

13 years agoStore the assigned metric against the route.
Roy Marples [Wed, 23 Nov 2011 20:30:24 +0000 (20:30 +0000)] 
Store the assigned metric against the route.
This allows us to change the route metric via dhcpcd -n --metric $val $if

13 years agoDon't removed interfaces anymore when sending commands to an interface.
Roy Marples [Wed, 23 Nov 2011 20:29:25 +0000 (20:29 +0000)] 
Don't removed interfaces anymore when sending commands to an interface.
To remove an interface, it now has to be done explicty.

13 years agoBridge interfaces set IFF_LOWER_UP when they have a valid
Roy Marples [Wed, 23 Nov 2011 13:49:44 +0000 (13:49 +0000)] 
Bridge interfaces set IFF_LOWER_UP when they have a valid
hardware address. To trigger a valid hardware address pickup
we need to pretend that that don't exist until they have
IFF_LOWER_UP set.

13 years agoOptimize bitwise useage a little.
Roy Marples [Wed, 23 Nov 2011 11:59:53 +0000 (11:59 +0000)] 
Optimize bitwise useage a little.

13 years agoFix bitwise logic
Roy Marples [Wed, 23 Nov 2011 10:53:53 +0000 (10:53 +0000)] 
Fix bitwise logic

13 years agoFix carrier handling on BSD
Roy Marples [Wed, 23 Nov 2011 09:57:34 +0000 (09:57 +0000)] 
Fix carrier handling on BSD

13 years agoRespect each kernel message on carrier change instead of checking carrier
Roy Marples [Wed, 23 Nov 2011 09:03:24 +0000 (09:03 +0000)] 
Respect each kernel message on carrier change instead of checking carrier
after receiving the message as it's possible for the kernel to react faster
than dhcpcd.

13 years agoChange default reboot timeout to 5 seconds.
Roy Marples [Tue, 22 Nov 2011 23:44:32 +0000 (23:44 +0000)] 
Change default reboot timeout to 5 seconds.
When rebooting and we haven't daemonised, reduce the discover timeout
to allow for fallback or IPv4LL addresses.

14 years agoCorrectly restart ntp on Debian.
Roy Marples [Tue, 14 Jun 2011 08:37:06 +0000 (08:37 +0000)] 
Correctly restart ntp on Debian.

14 years agoDetect ntp.conf exists before copying.
Roy Marples [Tue, 14 Jun 2011 06:17:40 +0000 (06:17 +0000)] 
Detect ntp.conf exists before copying.
Fixes Debian #630420

14 years agoRemove unknown variable
Roy Marples [Fri, 3 Jun 2011 20:11:53 +0000 (20:11 +0000)] 
Remove unknown variable

14 years agoUse printf correctly
Roy Marples [Fri, 3 Jun 2011 20:08:28 +0000 (20:08 +0000)] 
Use printf correctly

14 years agoShell portability fixes
Roy Marples [Wed, 1 Jun 2011 06:28:41 +0000 (06:28 +0000)] 
Shell portability fixes

14 years agoFix compile on some sytems, fixes #223.
Roy Marples [Fri, 27 May 2011 16:30:04 +0000 (16:30 +0000)] 
Fix compile on some sytems, fixes #223.

14 years agoFix Arch Linux SERVICESTATUS override.
Roy Marples [Sun, 22 May 2011 06:19:33 +0000 (06:19 +0000)] 
Fix Arch Linux SERVICESTATUS override.
Thanks to Clemens Fischer.

14 years agoTypo
Roy Marples [Sat, 9 Apr 2011 18:45:55 +0000 (18:45 +0000)] 
Typo

14 years agoRelease dhcpcd-5.2.12 v5.2.12
Roy Marples [Wed, 6 Apr 2011 08:25:51 +0000 (08:25 +0000)] 
Release dhcpcd-5.2.12

14 years agoEscape | and & characters when passing to the shell.
Roy Marples [Wed, 6 Apr 2011 08:16:32 +0000 (08:16 +0000)] 
Escape | and & characters when passing to the shell.
Add functions for hooks to check validity of domain names and paths.
Ensure we set a valid hostname, DNS domain and NIS domain.
Document the need for input validation in dhcpcd-run-hooks(8).

Fixes CVE-2011-996.
Based on patches to dhcpcd-3 by Marius Tomaschewski <mt@suse.de>.

14 years agoWhen operating on one interface only, respect the configured timeout.
Roy Marples [Tue, 29 Mar 2011 10:36:17 +0000 (10:36 +0000)] 
When operating on one interface only, respect the configured timeout.

14 years agoWhen requesting an address, note this in the broadcasting message.
Roy Marples [Fri, 25 Mar 2011 20:19:03 +0000 (20:19 +0000)] 
When requesting an address, note this in the broadcasting message.

14 years agoUpdate some copyrights.
Roy Marples [Thu, 24 Mar 2011 18:08:16 +0000 (18:08 +0000)] 
Update some copyrights.

14 years agoNot needed
Roy Marples [Thu, 24 Mar 2011 18:04:06 +0000 (18:04 +0000)] 
Not needed

14 years agoWhen the dhcp server is running in dom0 and the client in domU,
Roy Marples [Thu, 24 Mar 2011 17:59:20 +0000 (17:59 +0000)] 
When the dhcp server is running in dom0 and the client in domU,
packets (that are not explicitely checksumed in the userspace)
sent to the another domain have partial UDP checksums (offload)
only, but are marked as such. This patch reads and checks the
mark to decide whether to verify the UDP checksum or not.
Based on the ISC dhcp patch by David Cantrell.
Thanks to Marius Tomaschewski.

14 years agoWhen the leased address changes on the interface but existing routes
Roy Marples [Thu, 24 Mar 2011 17:08:31 +0000 (17:08 +0000)] 
When the leased address changes on the interface but existing routes
remain the same, we need to change the routes so that the source address
changes as well.

14 years agoValidate the IP address offered, as some faulty DHCP servers like to
Roy Marples [Thu, 24 Mar 2011 01:55:06 +0000 (01:55 +0000)] 
Validate the IP address offered, as some faulty DHCP servers like to
give is an invalid one.

14 years agoMake logger calls resemble dhcpcd calls to syslog(3).
Roy Marples [Tue, 22 Mar 2011 12:49:06 +0000 (12:49 +0000)] 
Make logger calls resemble dhcpcd calls to syslog(3).

14 years agoParse subnet_mask= static option instead of deriving from ip_address=
Roy Marples [Tue, 22 Mar 2011 12:18:47 +0000 (12:18 +0000)] 
Parse subnet_mask= static option instead of deriving from ip_address=

14 years agoExclude interface specific values when dumping the lease.
Roy Marples [Fri, 11 Mar 2011 12:25:01 +0000 (12:25 +0000)] 
Exclude interface specific values when dumping the lease.

14 years agoFix compile issue on RedHat 9
Roy Marples [Tue, 8 Mar 2011 20:38:26 +0000 (20:38 +0000)] 
Fix compile issue on RedHat 9

14 years agoUse $ifmetric instead of $metric.
Roy Marples [Mon, 7 Feb 2011 17:40:15 +0000 (17:40 +0000)] 
Use $ifmetric instead of $metric.

14 years agoactual -> actually
Roy Marples [Fri, 4 Feb 2011 15:31:50 +0000 (15:31 +0000)] 
actual -> actually

14 years ago2011 and new version. v5.2.11
Roy Marples [Fri, 4 Feb 2011 14:56:03 +0000 (14:56 +0000)] 
2011 and new version.

14 years agoUse RT_ROUNDUP and friends so that we work with NetBSD 64-bit routing.
Roy Marples [Fri, 4 Feb 2011 14:43:51 +0000 (14:43 +0000)] 
Use RT_ROUNDUP and friends so that we work with NetBSD 64-bit routing.

14 years agoWelcome to 2011!
Roy Marples [Mon, 3 Jan 2011 11:42:43 +0000 (11:42 +0000)] 
Welcome to 2011!

14 years agoUpdate documentation about --request.
Roy Marples [Mon, 3 Jan 2011 11:41:40 +0000 (11:41 +0000)] 
Update documentation about --request.

14 years agoRelease dhcpcd-5.2.10 v5.2.10
Roy Marples [Mon, 3 Jan 2011 10:54:58 +0000 (10:54 +0000)] 
Release dhcpcd-5.2.10

14 years agoFix -r, --request address option
Roy Marples [Thu, 23 Dec 2010 22:18:56 +0000 (22:18 +0000)] 
Fix -r, --request address option

14 years agoCompile on Mac OSX 10.4.
Roy Marples [Mon, 6 Dec 2010 15:01:56 +0000 (15:01 +0000)] 
Compile on Mac OSX 10.4.
Thanks to David Brownlee.

14 years agoNo need to restart twice. v5.2.9
Roy Marples [Fri, 19 Nov 2010 10:17:14 +0000 (10:17 +0000)] 
No need to restart twice.

14 years agoRelease dhcpcd-5.2.9
Roy Marples [Thu, 18 Nov 2010 19:12:55 +0000 (19:12 +0000)] 
Release dhcpcd-5.2.9

14 years agoImprove comments.
Roy Marples [Thu, 18 Nov 2010 19:12:22 +0000 (19:12 +0000)] 
Improve comments.

14 years agoFix ypbind and remove un-needed quoting.
Roy Marples [Thu, 18 Nov 2010 19:09:02 +0000 (19:09 +0000)] 
Fix ypbind and remove un-needed quoting.

14 years agoDocument RELEASE reason, fixes #205.
Roy Marples [Thu, 18 Nov 2010 09:40:50 +0000 (09:40 +0000)] 
Document RELEASE reason, fixes #205.

14 years agoNo point in building handle_hwaddr if we don't have RTM_CHGADDR
Roy Marples [Fri, 12 Nov 2010 20:39:29 +0000 (20:39 +0000)] 
No point in building handle_hwaddr if we don't have RTM_CHGADDR

14 years agoSupport RTM_CHGADDR in NetBSD-6 for detecting link layer address changes.
Roy Marples [Fri, 12 Nov 2010 16:33:45 +0000 (16:33 +0000)] 
Support RTM_CHGADDR in NetBSD-6 for detecting link layer address changes.

14 years agoFix working out the inform address if none given.
Roy Marples [Thu, 11 Nov 2010 21:07:50 +0000 (21:07 +0000)] 
Fix working out the inform address if none given.

14 years agoAdd the hwaddr to be used to debugging.
Roy Marples [Tue, 9 Nov 2010 00:35:40 +0000 (00:35 +0000)] 
Add the hwaddr to be used to debugging.

14 years agoDon't configure the interface twice.
Roy Marples [Tue, 9 Nov 2010 00:34:38 +0000 (00:34 +0000)] 
Don't configure the interface twice.

14 years agoDon't redefine _GNU_SOURCE.
Roy Marples [Fri, 5 Nov 2010 08:13:07 +0000 (08:13 +0000)] 
Don't redefine _GNU_SOURCE.

14 years agoRespect $SED
Roy Marples [Thu, 4 Nov 2010 09:12:14 +0000 (09:12 +0000)] 
Respect $SED

14 years agoAnother kFreeBSD fix.
Roy Marples [Wed, 27 Oct 2010 14:17:21 +0000 (14:17 +0000)] 
Another kFreeBSD fix.

14 years agoFix invoke-rc.d detection, #202.
Roy Marples [Sat, 23 Oct 2010 00:15:42 +0000 (00:15 +0000)] 
Fix invoke-rc.d detection, #202.

14 years agowhitespace.
Roy Marples [Fri, 22 Oct 2010 17:55:44 +0000 (17:55 +0000)] 
whitespace.

14 years agoAdd link_addr from NetBSD so that we compile on kFreeBSD as nothing
Roy Marples [Wed, 20 Oct 2010 11:27:32 +0000 (11:27 +0000)] 
Add link_addr from NetBSD so that we compile on kFreeBSD as nothing
there seems to provide that function.

14 years agoMan page corrections.
Roy Marples [Sun, 17 Oct 2010 10:44:54 +0000 (10:44 +0000)] 
Man page corrections.

14 years agoFix syntax.
Roy Marples [Mon, 11 Oct 2010 16:34:39 +0000 (16:34 +0000)] 
Fix syntax.

14 years agoChange delete_timeouts into a macro.
Roy Marples [Mon, 11 Oct 2010 14:53:06 +0000 (14:53 +0000)] 
Change delete_timeouts into a macro.

14 years agoAllow queues to be defined at the start.
Roy Marples [Mon, 11 Oct 2010 08:52:43 +0000 (08:52 +0000)] 
Allow queues to be defined at the start.

14 years agoPunt empty line
Roy Marples [Thu, 7 Oct 2010 14:43:12 +0000 (14:43 +0000)] 
Punt empty line

14 years agoRelease dhcpcd-5.2.8
Roy Marples [Wed, 6 Oct 2010 08:53:28 +0000 (08:53 +0000)] 
Release dhcpcd-5.2.8

14 years agoSome DHCP servers assign a host route via static routes by setting the
Roy Marples [Mon, 27 Sep 2010 19:24:10 +0000 (19:24 +0000)] 
Some DHCP servers assign a host route via static routes by setting the
gateway address to the leased address. This differs from the normal
approach of making the gateway address match the destination address,
so we change it when building our routing table.

14 years agoInstall the dump hook by default.
Roy Marples [Mon, 27 Sep 2010 19:08:17 +0000 (19:08 +0000)] 
Install the dump hook by default.

14 years agoIf we get a NAK during a test, we should not read the old lease as
Roy Marples [Thu, 9 Sep 2010 18:27:00 +0000 (18:27 +0000)] 
If we get a NAK during a test, we should not read the old lease as
it's not dropped during the NAK handling.

14 years agoMove service detection and interaction logic from the hooks to the
Roy Marples [Thu, 9 Sep 2010 14:40:27 +0000 (14:40 +0000)] 
Move service detection and interaction logic from the hooks to the
configure script. This makes the hooks a lot less messy.

14 years agoDocument --version.
Roy Marples [Tue, 31 Aug 2010 08:43:13 +0000 (08:43 +0000)] 
Document --version.

14 years agoDon't need this.
Roy Marples [Tue, 24 Aug 2010 13:35:15 +0000 (13:35 +0000)] 
Don't need this.

14 years agoMove dump into it's own file and remove new_ from the variable names.
Roy Marples [Tue, 24 Aug 2010 10:52:24 +0000 (10:52 +0000)] 
Move dump into it's own file and remove new_ from the variable names.

14 years agoAllow interface to also be a path to a DHCP wire formatted file.
Roy Marples [Tue, 24 Aug 2010 10:36:20 +0000 (10:36 +0000)] 
Allow interface to also be a path to a DHCP wire formatted file.

14 years agoExit correctly on error.
Roy Marples [Tue, 24 Aug 2010 10:25:32 +0000 (10:25 +0000)] 
Exit correctly on error.

14 years agoImprove scripts for DUMP
Roy Marples [Tue, 24 Aug 2010 10:18:31 +0000 (10:18 +0000)] 
Improve scripts for DUMP

14 years agoJust dump the lease, not any runtime options.
Roy Marples [Tue, 24 Aug 2010 10:04:10 +0000 (10:04 +0000)] 
Just dump the lease, not any runtime options.

14 years agoWups, remove silly commit.
Roy Marples [Tue, 24 Aug 2010 09:48:57 +0000 (09:48 +0000)] 
Wups, remove silly commit.

14 years agoImprove memory debug for dumping leases.
Roy Marples [Tue, 24 Aug 2010 09:34:21 +0000 (09:34 +0000)] 
Improve memory debug for dumping leases.

14 years ago-U, --dumplease now dumps the lease for the specified interface
Roy Marples [Tue, 24 Aug 2010 09:16:07 +0000 (09:16 +0000)] 
-U, --dumplease now dumps the lease for the specified interface
dhcpcd does not have to be running for this to work

15 years agoif_up and if_down variables allow more flexability.
Roy Marples [Sat, 7 Aug 2010 19:44:21 +0000 (19:44 +0000)] 
if_up and if_down variables allow more flexability.

15 years agoRelease dhcpcd-5.2.7 v5.2.7
Roy Marples [Wed, 4 Aug 2010 06:59:15 +0000 (06:59 +0000)] 
Release dhcpcd-5.2.7

15 years agoUse the active link layer address if supported.
Roy Marples [Wed, 4 Aug 2010 06:44:56 +0000 (06:44 +0000)] 
Use the active link layer address if supported.

15 years agoFix syslog function.
Roy Marples [Tue, 3 Aug 2010 23:16:35 +0000 (23:16 +0000)] 
Fix syslog function.
Thanks to William Hubbs.

15 years agoeloop functions can now specify a queue.
Roy Marples [Fri, 23 Jul 2010 16:18:03 +0000 (16:18 +0000)] 
eloop functions can now specify a queue.
This allows us to build future IPv6 queues that do not affect the
main IPv4 queue.

15 years agoUse a dynamic buffer for managing link messages.
Roy Marples [Wed, 21 Jul 2010 20:45:41 +0000 (20:45 +0000)] 
Use a dynamic buffer for managing link messages.

15 years agoWork out the size of the buffer we need to read netlink messages as recent
Roy Marples [Wed, 21 Jul 2010 08:51:47 +0000 (08:51 +0000)] 
Work out the size of the buffer we need to read netlink messages as recent
64-bit Linux kernels have increased their header size and overflowed
the fixed buffer we used.

Could also fix #192.

15 years agoFix build for slackware.
Roy Marples [Sun, 11 Jul 2010 13:33:25 +0000 (13:33 +0000)] 
Fix build for slackware.

15 years agoRelease dhcpcd-5.2.6 v5.2.6
Roy Marples [Wed, 7 Jul 2010 21:09:20 +0000 (21:09 +0000)] 
Release dhcpcd-5.2.6

15 years agoRever prior patch that added an extra second per interface now we
Roy Marples [Sat, 26 Jun 2010 10:36:20 +0000 (10:36 +0000)] 
Rever prior patch that added an extra second per interface now we
always daemonise in master mode.

15 years agoAlways daemonise on timeout if running in master mode.
Roy Marples [Sat, 26 Jun 2010 09:17:54 +0000 (09:17 +0000)] 
Always daemonise on timeout if running in master mode.

15 years agoImprove config file handling some more on Debian systems.
Roy Marples [Sat, 26 Jun 2010 09:09:59 +0000 (09:09 +0000)] 
Improve config file handling some more on Debian systems.

15 years agoWait an extra second per interface for IPv4LL timeout.
Roy Marples [Sat, 26 Jun 2010 09:08:47 +0000 (09:08 +0000)] 
Wait an extra second per interface for IPv4LL timeout.

15 years agoFix compile on NetBSD
Roy Marples [Thu, 10 Jun 2010 10:38:37 +0000 (10:38 +0000)] 
Fix compile on NetBSD

15 years agoSupport Debian NTP init script
Roy Marples [Thu, 10 Jun 2010 09:24:55 +0000 (09:24 +0000)] 
Support Debian NTP init script

15 years agoAdd distclean target
Roy Marples [Wed, 9 Jun 2010 21:16:04 +0000 (21:16 +0000)] 
Add distclean target

15 years agoFix crash with last patch for rebinding interfaces
Roy Marples [Wed, 9 Jun 2010 16:51:40 +0000 (16:51 +0000)] 
Fix crash with last patch for rebinding interfaces

15 years agoBuild correctly for Debian packages
Roy Marples [Wed, 9 Jun 2010 15:32:03 +0000 (15:32 +0000)] 
Build correctly for Debian packages

15 years ago-n, --rebind now re-reads the configuration file, removes stale
Roy Marples [Wed, 9 Jun 2010 15:26:55 +0000 (15:26 +0000)] 
-n, --rebind now re-reads the configuration file, removes stale
interfaces and rebinds existing ones.

15 years agoRelease dhcpcd-5.2.4 v5.2.4
Roy Marples [Fri, 4 Jun 2010 08:34:28 +0000 (08:34 +0000)] 
Release dhcpcd-5.2.4

15 years agoThese files were updated in 2010, so fix copyrights.
Roy Marples [Fri, 4 Jun 2010 08:33:16 +0000 (08:33 +0000)] 
These files were updated in 2010, so fix copyrights.