]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoFix compile warnings dhcpcd-5 origin/dhcpcd-5
Roy Marples [Sun, 22 Dec 2013 14:40:54 +0000 (14:40 +0000)] 
Fix compile warnings

13 years agoFix Linux compile. v5.5.6
Roy Marples [Wed, 28 Mar 2012 10:26:20 +0000 (10:26 +0000)] 
Fix Linux compile.

13 years agoRelease dhcpcd-5.5.6
Roy Marples [Wed, 28 Mar 2012 10:07:48 +0000 (10:07 +0000)] 
Release dhcpcd-5.5.6

13 years agoFix adding resolvconf
Roy Marples [Tue, 27 Mar 2012 21:15:25 +0000 (21:15 +0000)] 
Fix adding resolvconf

13 years agoSimplify API a little.
Roy Marples [Tue, 27 Mar 2012 19:01:49 +0000 (19:01 +0000)] 
Simplify API a little.

13 years agoDon't corrupt our route table when we fail to add a route for any reason.
Roy Marples [Tue, 27 Mar 2012 17:59:41 +0000 (17:59 +0000)] 
Don't corrupt our route table when we fail to add a route for any reason.

13 years agoWhen sending signals, respect the interface it was started on.
roy@uberlaptop.marples.name [Tue, 27 Mar 2012 16:47:43 +0000 (16:47 +0000)] 
When sending signals, respect the interface it was started on.

13 years agoFix some valgrind errors on FreeBSD
roy@uberlaptop.marples.name [Tue, 27 Mar 2012 16:30:33 +0000 (16:30 +0000)] 
Fix some valgrind errors on FreeBSD

13 years agoAdd a suffix to our per interface config files for non IPv4 states.
Roy Marples [Mon, 26 Mar 2012 17:32:18 +0000 (17:32 +0000)] 
Add a suffix to our per interface config files for non IPv4 states.
This stops RA from stamping on NTP and YP configs.

13 years agoFix a double free, #243.
Roy Marples [Sat, 24 Mar 2012 12:58:12 +0000 (12:58 +0000)] 
Fix a double free, #243.
Stop leaking memory on interface restart with prior RA.

13 years agoFix Dd and Dt arguments.
Roy Marples [Sat, 24 Mar 2012 10:41:40 +0000 (10:41 +0000)] 
Fix Dd and Dt arguments.
New sentence, new line.
Sort options and option descriptions.
Sort SEE ALSO.
Use Fl Fl for long options.
Sync the usage output by the program with the one from the man page.
Thanks to Thomas Klausner.

13 years agoRelease dhcpcd-5.5.5 v5.5.5
Roy Marples [Fri, 23 Mar 2012 09:07:59 +0000 (09:07 +0000)] 
Release dhcpcd-5.5.5

13 years agoRemove buffer overrun that leads to a segfault on ipv6 network.
Roy Marples [Fri, 23 Mar 2012 07:38:39 +0000 (07:38 +0000)] 
Remove buffer overrun that leads to a segfault on ipv6 network.

strcpy copies the \0 of its src argument, therefore the following line
is unneeded. Ironically, it can lead to a nasty segfault on a network
that supports ipv6. In fact, it prevented me from access such a
network using DHCP.

Signed-off-by: Sidney Amani <seed95@gmail.com>
13 years agoFreeBSD 7 does not support IFT_INFINIBAND
roy@uberlaptop.marples.name [Wed, 21 Mar 2012 19:11:07 +0000 (19:11 +0000)] 
FreeBSD 7 does not support IFT_INFINIBAND

13 years agoIf the CSR decode fails to return any routes, then use the older DHCP
Roy Marples [Tue, 20 Mar 2012 14:11:41 +0000 (14:11 +0000)] 
If the CSR decode fails to return any routes, then use the older DHCP
routing options if available.

13 years agoFix an issue where we would only use a CSR if we had not warned about using it.
Roy Marples [Tue, 20 Mar 2012 13:59:41 +0000 (13:59 +0000)] 
Fix an issue where we would only use a CSR if we had not warned about using it.

13 years agoUse correct event loop timeout deletion to stop occasional segfaults.
Roy Marples [Tue, 20 Mar 2012 13:46:35 +0000 (13:46 +0000)] 
Use correct event loop timeout deletion to stop occasional segfaults.
Fix a memory leak and free our global buffers if debugging memory.

13 years agoSupport bridge and VLAN interfaces on BSD.
Roy Marples [Tue, 20 Mar 2012 09:19:01 +0000 (09:19 +0000)] 
Support bridge and VLAN interfaces on BSD.
Fall back to ethernet if unknown and specified.

13 years agoIf no ClientID or hardware address, don't report a blank hardware address.
Roy Marples [Tue, 20 Mar 2012 09:18:20 +0000 (09:18 +0000)] 
If no ClientID or hardware address, don't report a blank hardware address.

13 years agoAdd .Lk macro to URLs
Roy Marples [Mon, 19 Mar 2012 11:07:56 +0000 (11:07 +0000)] 
Add .Lk macro to URLs

13 years agoAdd an option to control dhcpcd forking or not if the RA does not contain
Roy Marples [Wed, 7 Mar 2012 10:06:45 +0000 (10:06 +0000)] 
Add an option to control dhcpcd forking or not if the RA does not contain
a RDNSS option.
This involves changing our options to an unsigned long long so we can use
more than 32 bits.

13 years agoDon't fork on IPv6 RA unless we have an RDNSS option.
Roy Marples [Mon, 5 Mar 2012 16:45:10 +0000 (16:45 +0000)] 
Don't fork on IPv6 RA unless we have an RDNSS option.

13 years agoUse sysfs if we don't have ifconfig(8) on Linux.
Roy Marples [Mon, 5 Mar 2012 11:13:06 +0000 (11:13 +0000)] 
Use sysfs if we don't have ifconfig(8) on Linux.
Thanks to Dave Reisner.

13 years agoTry to emulate hostname(1) if it doens't exist.
Roy Marples [Mon, 5 Mar 2012 11:11:49 +0000 (11:11 +0000)] 
Try to emulate hostname(1) if it doens't exist.

13 years agoSet hostname via /proc if file is available
Roy Marples [Mon, 5 Mar 2012 10:35:00 +0000 (10:35 +0000)] 
Set hostname via /proc if file is available

On Linux, the hostname can be set via this file if available, precluding
the need for a `hostname` binary.

Signed-off-by: Dan McGee <dan@archlinux.org>
13 years agoRespect an accept_ra setting of 2, fixes #240.
Roy Marples [Mon, 5 Mar 2012 10:04:26 +0000 (10:04 +0000)] 
Respect an accept_ra setting of 2, fixes #240.
Detect IPv6 settings per interface if the platform allows, fixed #241.

13 years agoStore the RA data for the interface so we can do a comparison.
Roy Marples [Mon, 13 Feb 2012 08:37:54 +0000 (08:37 +0000)] 
Store the RA data for the interface so we can do a comparison.
Only log the fact we received an RA if the new RA is different or any
part of the old one has expired.

13 years agoRelease dhcpcd-5.5.4 v5.5.4
Roy Marples [Sun, 5 Feb 2012 20:18:04 +0000 (20:18 +0000)] 
Release dhcpcd-5.5.4

13 years agoStop checking for IFF_RUNNING in handle_carrier as it is invalid for BSD
Roy Marples [Sun, 5 Feb 2012 19:32:17 +0000 (19:32 +0000)] 
Stop checking for IFF_RUNNING in handle_carrier as it is invalid for BSD
and should already have been checked for Linux.

13 years agoBetter tests.
Roy Marples [Sat, 4 Feb 2012 15:45:38 +0000 (15:45 +0000)] 
Better tests.

13 years agoAdd kernel IPv6 RA and forwarding detection on Linux.
Roy Marples [Sat, 4 Feb 2012 15:37:42 +0000 (15:37 +0000)] 
Add kernel IPv6 RA and forwarding detection on Linux.

13 years agoIf the kernel is not configured to accept IPv6 or RA's then don't
roy@uberlaptop.marples.name [Sat, 4 Feb 2012 15:15:25 +0000 (15:15 +0000)] 
If the kernel is not configured to accept IPv6 or RA's then don't
needless attempt to solicit an IPv6 RA.

13 years agoFix configure test for arc4random on FreeBSD 7
Roy Marples [Sat, 4 Feb 2012 14:25:11 +0000 (14:25 +0000)] 
Fix configure test for arc4random on FreeBSD 7

13 years agoFix a compile issue and releae dhcpcd-5.5.3 v5.5.3
Roy Marples [Fri, 3 Feb 2012 00:02:03 +0000 (00:02 +0000)] 
Fix a compile issue and releae dhcpcd-5.5.3

13 years agoRelease dhcpcd-5.5.2 v5.5.2
Roy Marples [Thu, 2 Feb 2012 23:30:41 +0000 (23:30 +0000)] 
Release dhcpcd-5.5.2

13 years agoDefault back to gcc as it seems clang isn't good for powerpc.
Roy Marples [Thu, 2 Feb 2012 23:30:13 +0000 (23:30 +0000)] 
Default back to gcc as it seems clang isn't good for powerpc.

13 years agoSet if_up if_down correctly per RA or DHCP
Roy Marples [Thu, 2 Feb 2012 18:23:06 +0000 (18:23 +0000)] 
Set if_up if_down correctly per RA or DHCP

13 years agoFix some more copyrights
Roy Marples [Thu, 2 Feb 2012 16:22:40 +0000 (16:22 +0000)] 
Fix some more copyrights
RA expiry timers now trigger off options as well
Stop prefixing new_ for RA options
if_up and if_down are now set by dhcpcd itself
Correctly prefer a DHCP lease over an IPv4LL entry

13 years agoFix carrier handling on BSD for interfaces that don't support link status
Roy Marples [Tue, 31 Jan 2012 16:32:10 +0000 (16:32 +0000)] 
Fix carrier handling on BSD for interfaces that don't support link status

13 years agoFix more copyright
Roy Marples [Tue, 31 Jan 2012 09:51:12 +0000 (09:51 +0000)] 
Fix more copyright

13 years agoRelease dhcpcd-5.5.1 v5.5.1
Roy Marples [Tue, 31 Jan 2012 09:33:26 +0000 (09:33 +0000)] 
Release dhcpcd-5.5.1

13 years agoStop trunctating netmask sockaddr
Roy Marples [Mon, 30 Jan 2012 20:11:47 +0000 (20:11 +0000)] 
Stop trunctating netmask sockaddr

13 years agoDon't attempt to run the script if it's an NULL, an empty string or /dev/null
Roy Marples [Mon, 30 Jan 2012 16:59:48 +0000 (16:59 +0000)] 
Don't attempt to run the script if it's an NULL, an empty string or /dev/null

13 years agoAllow dhcpcd to run on a read-only filesystem.
Roy Marples [Sun, 29 Jan 2012 17:28:05 +0000 (17:28 +0000)] 
Allow dhcpcd to run on a read-only filesystem.
You'll get a lot of errors, but you will get a working address and routing.

13 years agoRemove the RA's before reporting no carrier.
Roy Marples [Sun, 29 Jan 2012 16:49:04 +0000 (16:49 +0000)] 
Remove the RA's before reporting no carrier.

13 years agoOnly set if_up for a ROUTERADVERT if we have any RAs
Roy Marples [Sun, 29 Jan 2012 16:45:14 +0000 (16:45 +0000)] 
Only set if_up for a ROUTERADVERT if we have any RAs
Conversely, we need to pretend it's up without any RAs to successfully
remove it.

13 years agoDon't start IPv6 if it's disabled globally.
Roy Marples [Sun, 29 Jan 2012 16:32:06 +0000 (16:32 +0000)] 
Don't start IPv6 if it's disabled globally.

13 years agoFix RA state detection
Roy Marples [Wed, 25 Jan 2012 17:30:41 +0000 (17:30 +0000)] 
Fix RA state detection

13 years agoRelease dhcpcd-5.5.0 v5.5.0
Roy Marples [Tue, 24 Jan 2012 11:27:55 +0000 (11:27 +0000)] 
Release dhcpcd-5.5.0

13 years agoAdd and prefer clang to the compiler list.
Roy Marples [Tue, 24 Jan 2012 11:26:20 +0000 (11:26 +0000)] 
Add and prefer clang to the compiler list.
The compiler version is now shown during configure.

13 years agoJust log the fact that the leased IP address was removed instead of
Roy Marples [Sun, 18 Dec 2011 12:12:08 +0000 (12:12 +0000)] 
Just log the fact that the leased IP address was removed instead of
expiring the lease. This allows --reconfigure, -g to fully work as
intended.

13 years agoStop the --reconfigure, -g option from spinning needlessly.
Roy Marples [Sun, 18 Dec 2011 12:11:08 +0000 (12:11 +0000)] 
Stop the --reconfigure, -g option from spinning needlessly.
Thanks to Mike Crowe.

13 years agoFix hook for non RA's.
Roy Marples [Fri, 16 Dec 2011 12:20:04 +0000 (12:20 +0000)] 
Fix hook for non RA's.
Remove RA's before the DHCP lease.
Correctly send 3 RA solicitations.

13 years agoDisable IPv6RS on p2p, lo and mcast interfaces.
Roy Marples [Thu, 15 Dec 2011 03:37:27 +0000 (03:37 +0000)] 
Disable IPv6RS on p2p, lo and mcast interfaces.

13 years agoFix warnings on Linux
Roy Marples [Thu, 15 Dec 2011 03:22:47 +0000 (03:22 +0000)] 
Fix warnings on Linux

13 years agoAdd ROUTERADVERT to dhcpcd-run-hooks(8)
Roy Marples [Thu, 15 Dec 2011 03:13:15 +0000 (03:13 +0000)] 
Add ROUTERADVERT to dhcpcd-run-hooks(8)

13 years agoHook the new RA options into resolv.conf
Roy Marples [Thu, 15 Dec 2011 03:02:46 +0000 (03:02 +0000)] 
Hook the new RA options into resolv.conf

13 years agoFix copyright dates
Roy Marples [Thu, 15 Dec 2011 02:41:10 +0000 (02:41 +0000)] 
Fix copyright dates

13 years agoAdd an implementation of an IPv6 Router Solicitor as specified in
Roy Marples [Thu, 15 Dec 2011 02:35:47 +0000 (02:35 +0000)] 
Add an implementation of an IPv6 Router Solicitor as specified in
RFC6016 with regards to RDNSS and DNSSL.

13 years agoFix a potential error if we need to alter the sip server string.
Roy Marples [Wed, 14 Dec 2011 09:57:56 +0000 (09:57 +0000)] 
Fix a potential error if we need to alter the sip server string.

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.