]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
12 years agoChange from _unused to __unused to match NetBSD cdefs and avoid dhcpcd-5.6 origin/dhcpcd-5.6
Roy Marples [Wed, 24 Apr 2013 09:31:31 +0000 (09:31 +0000)] 
Change from _unused to __unused to match NetBSD cdefs and avoid
a compiler failure on linux-headers-3.7

12 years agoFix a memory leak
Roy Marples [Thu, 4 Apr 2013 22:20:33 +0000 (22:20 +0000)] 
Fix a memory leak

12 years agoQuickly backport an IPv6 router expiry fix for multi-homed systems. v5.6.8
Roy Marples [Thu, 4 Apr 2013 21:08:31 +0000 (21:08 +0000)] 
Quickly backport an IPv6 router expiry fix for multi-homed systems.

12 years agoRelease dhcpcd-5.6.8
Roy Marples [Thu, 4 Apr 2013 20:59:26 +0000 (20:59 +0000)] 
Release dhcpcd-5.6.8

12 years agoCreate lease files so they are user writeable.
Roy Marples [Wed, 27 Mar 2013 16:05:45 +0000 (16:05 +0000)] 
Create lease files so they are user writeable.

12 years agoChange arp errno to match what we use in dhcpcd.
Roy Marples [Tue, 19 Feb 2013 17:00:49 +0000 (17:00 +0000)] 
Change arp errno to match what we use in dhcpcd.

12 years agoFix last commit.
Roy Marples [Tue, 19 Feb 2013 16:32:48 +0000 (16:32 +0000)] 
Fix last commit.

12 years agoAvoid a potential buffer overflow.
Roy Marples [Tue, 19 Feb 2013 16:28:43 +0000 (16:28 +0000)] 
Avoid a potential buffer overflow.
Thanks to Christos Zoulas.

12 years agoFix last commit a little.
Roy Marples [Fri, 15 Feb 2013 20:36:33 +0000 (20:36 +0000)] 
Fix last commit a little.

12 years agoInstead of opening link, ipv6, ipv6rs and ipv6ns sockets globally,
Roy Marples [Fri, 15 Feb 2013 20:14:32 +0000 (20:14 +0000)] 
Instead of opening link, ipv6, ipv6rs and ipv6ns sockets globally,
only open when the first link wanting this features needs it.
Hopefully fixes #263 and #264.

12 years agoAdd -h|--help option to configure
Roy Marples [Fri, 15 Feb 2013 12:55:38 +0000 (12:55 +0000)] 
Add -h|--help option to configure

12 years agoIf we have one interface enabled for IPv6 RS, we stupidly process
Roy Marples [Tue, 5 Feb 2013 10:18:31 +0000 (10:18 +0000)] 
If we have one interface enabled for IPv6 RS, we stupidly process
RAs for all interfaces we control. This patch fixes this and
updates the man page to reflect this better.

12 years agoFix potential issue if we don't want routes and we fail a decode. v5.6.7
Roy Marples [Mon, 28 Jan 2013 09:54:03 +0000 (09:54 +0000)] 
Fix potential issue if we don't want routes and we fail a decode.

12 years agoRelease dhcpcd-5.6.7
Roy Marples [Mon, 28 Jan 2013 09:48:14 +0000 (09:48 +0000)] 
Release dhcpcd-5.6.7

12 years agoEnsure that nooption correctly woks for routes.
Roy Marples [Mon, 28 Jan 2013 09:47:40 +0000 (09:47 +0000)] 
Ensure that nooption correctly woks for routes.

12 years agoCheck the correct interface the RAP came from before overwriting it.
Roy Marples [Mon, 28 Jan 2013 09:47:15 +0000 (09:47 +0000)] 
Check the correct interface the RAP came from before overwriting it.
Thanks to Taylor R Campbell.

12 years agoPreserve the space in static routes on the command line.
Roy Marples [Thu, 20 Dec 2012 19:35:26 +0000 (19:35 +0000)] 
Preserve the space in static routes on the command line.
Thanks to br@waldteufel.eu.

12 years agoRelease dhcpcd-5.6.6 v5.6.6
Roy Marples [Wed, 19 Dec 2012 09:34:16 +0000 (09:34 +0000)] 
Release dhcpcd-5.6.6

12 years agoGrow -4, --ipv4only and -6, --ipv6only options.
Roy Marples [Wed, 19 Dec 2012 09:32:42 +0000 (09:32 +0000)] 
Grow -4, --ipv4only and -6, --ipv6only options.

12 years agoRelease dhcpcd-5.6.5 v5.6.5
Roy Marples [Wed, 19 Dec 2012 09:04:18 +0000 (09:04 +0000)] 
Release dhcpcd-5.6.5

12 years agoRespect AUTO and ONLINK flags for each prefix in the RA.
Roy Marples [Tue, 11 Dec 2012 08:45:33 +0000 (08:45 +0000)] 
Respect AUTO and ONLINK flags for each prefix in the RA.

12 years agoRelease dhcpcd-5.6.4 v5.6.4
Roy Marples [Thu, 6 Dec 2012 10:53:42 +0000 (10:53 +0000)] 
Release dhcpcd-5.6.4

12 years agoAvoid sillyness if not a valid IPv6 address
Roy Marples [Sat, 24 Nov 2012 20:36:20 +0000 (20:36 +0000)] 
Avoid sillyness if not a valid IPv6 address

12 years agoSet %interface for exported IPv6 link local addresses.
Roy Marples [Sat, 24 Nov 2012 20:17:33 +0000 (20:17 +0000)] 
Set %interface for exported IPv6 link local addresses.

12 years agoRelease dhcpcd-5.6.3 v5.6.3
Roy Marples [Fri, 16 Nov 2012 20:50:18 +0000 (20:50 +0000)] 
Release dhcpcd-5.6.3

12 years agoFix compile
Roy Marples [Wed, 14 Nov 2012 10:46:38 +0000 (10:46 +0000)] 
Fix compile

12 years agoStop probing when dropped
Roy Marples [Wed, 14 Nov 2012 10:46:07 +0000 (10:46 +0000)] 
Stop probing when dropped

12 years agoAlways close this fd
Roy Marples [Wed, 14 Nov 2012 10:45:14 +0000 (10:45 +0000)] 
Always close this fd

12 years agoWe should check start len >0 as len will be zero at this point.
Roy Marples [Wed, 14 Nov 2012 10:44:26 +0000 (10:44 +0000)] 
We should check start len >0 as len will be zero at this point.

12 years agoWhen decoding RCC3397 domains we should ensure that we have
Roy Marples [Wed, 14 Nov 2012 10:43:55 +0000 (10:43 +0000)] 
When decoding RCC3397 domains we should ensure that we have
decoded something before changing the last '.' to ' ' and
NULL terminating the string.

12 years agoEnsure we have a big enough buffer for an escaped DNSSL option.
Roy Marples [Wed, 14 Nov 2012 10:42:56 +0000 (10:42 +0000)] 
Ensure we have a big enough buffer for an escaped DNSSL option.

Conflicts:
ipv6rs.c

12 years agoWhen an RA is forced to expire, don't run the script twice.
Roy Marples [Wed, 14 Nov 2012 10:39:13 +0000 (10:39 +0000)] 
When an RA is forced to expire, don't run the script twice.

Conflicts:
ipv6rs.c

12 years agoFix some more potential leaks and allow full build with dmalloc.
Roy Marples [Wed, 14 Nov 2012 10:32:08 +0000 (10:32 +0000)] 
Fix some more potential leaks and allow full build with dmalloc.

12 years agoPlug some memory leaks.
Roy Marples [Wed, 14 Nov 2012 10:31:49 +0000 (10:31 +0000)] 
Plug some memory leaks.

12 years agoIf we receive >1 MTU option, last one takes precendence.
Roy Marples [Wed, 14 Nov 2012 10:31:25 +0000 (10:31 +0000)] 
If we receive >1 MTU option, last one takes precendence.

12 years agoSave a few bytes
Roy Marples [Wed, 14 Nov 2012 10:31:11 +0000 (10:31 +0000)] 
Save a few bytes

12 years agoExpire RDNSS and DNSSL options if the RA expires.
Roy Marples [Wed, 14 Nov 2012 10:30:50 +0000 (10:30 +0000)] 
Expire RDNSS and DNSSL options if the RA expires.

12 years agoMerge multiple options together as per RFC4861 section 6.3.4
Roy Marples [Wed, 14 Nov 2012 10:30:30 +0000 (10:30 +0000)] 
Merge multiple options together as per RFC4861 section 6.3.4

12 years agowhitespace
Roy Marples [Wed, 14 Nov 2012 10:29:58 +0000 (10:29 +0000)] 
whitespace

12 years agoProvide TAILQ_FOREACH_REVERSE_SAFE if not defined.
Roy Marples [Wed, 14 Nov 2012 10:29:30 +0000 (10:29 +0000)] 
Provide TAILQ_FOREACH_REVERSE_SAFE if not defined.
When removing routes, do it in reverse order.

12 years agoWhen we receive a RA with a lifetime of 0, we should just remove
Roy Marples [Wed, 14 Nov 2012 10:25:04 +0000 (10:25 +0000)] 
When we receive a RA with a lifetime of 0, we should just remove
the default router and let any options expire as set in accordance
with RFC4861 section 4.2

Conflicts:
ipv6rs.c

12 years agoMove the RS state into a struct in a generic data array.
Roy Marples [Wed, 14 Nov 2012 10:20:12 +0000 (10:20 +0000)] 
Move the RS state into a struct in a generic data array.
We should move the DHCP code there, but more importantly allows
DHCP6 to slot in later.

12 years agoOnly remove IPv6 addresses when no RA's have them configured.
Roy Marples [Wed, 14 Nov 2012 10:16:30 +0000 (10:16 +0000)] 
Only remove IPv6 addresses when no RA's have them configured.

12 years agoIf we receive a RA with a lifetime of 0, just expire it right away
Roy Marples [Wed, 14 Nov 2012 10:15:38 +0000 (10:15 +0000)] 
If we receive a RA with a lifetime of 0, just expire it right away
and continue.

12 years agoImprove reported timings.
Roy Marples [Wed, 14 Nov 2012 10:15:10 +0000 (10:15 +0000)] 
Improve reported timings.

12 years agoShow renew and rebind times when debugging is enabled.
Roy Marples [Wed, 14 Nov 2012 10:14:52 +0000 (10:14 +0000)] 
Show renew and rebind times when debugging is enabled.
Trying to help #259.

12 years agoFix stupid length validation check.
Roy Marples [Wed, 14 Nov 2012 10:14:28 +0000 (10:14 +0000)] 
Fix stupid length validation check.

12 years agoFix compile fr systems without RTF_CLONING such as FreeBSD-8
Roy Marples [Wed, 14 Nov 2012 10:14:13 +0000 (10:14 +0000)] 
Fix compile fr systems without RTF_CLONING such as FreeBSD-8

12 years agoMore fixes to validation lengths.
Roy Marples [Wed, 14 Nov 2012 10:13:56 +0000 (10:13 +0000)] 
More fixes to validation lengths.

12 years agoFix variable length encodings
Roy Marples [Wed, 14 Nov 2012 10:13:37 +0000 (10:13 +0000)] 
Fix variable length encodings

12 years agoIf we receive a packet with two options the same which is not
Roy Marples [Wed, 14 Nov 2012 10:13:12 +0000 (10:13 +0000)] 
If we receive a packet with two options the same which is not
supposed to be an array then we now trim to the correct size
rather than just discarding the option.
This also means that if any garbage at the end of the singule
occurance of an option is also discarded.

12 years agoFix DUID support.
Roy Marples [Wed, 14 Nov 2012 10:12:29 +0000 (10:12 +0000)] 
Fix DUID support.
In the case where we cannot write a DUID file, then create a LL ID
instead of a LLT ID.

12 years agoMake this file actually work
Roy Marples [Wed, 14 Nov 2012 10:11:40 +0000 (10:11 +0000)] 
Make this file actually work

12 years agoRestart the interface immediately after a NAK instead of
Roy Marples [Wed, 14 Nov 2012 10:10:57 +0000 (10:10 +0000)] 
Restart the interface immediately after a NAK instead of
waiting one second.

12 years agoRelease dhcpcd-5.6.2 v5.6.2
Roy Marples [Mon, 3 Sep 2012 08:49:14 +0000 (08:49 +0000)] 
Release dhcpcd-5.6.2

12 years agoEnsure we have correct memory allocation for number of prefixes.
Roy Marples [Thu, 30 Aug 2012 16:26:38 +0000 (16:26 +0000)] 
Ensure we have correct memory allocation for number of prefixes.

12 years agoOnly accept netlink messages from the kernel.
Roy Marples [Fri, 24 Aug 2012 19:05:26 +0000 (19:05 +0000)] 
Only accept netlink messages from the kernel.
Thanks to Mikhail Efremov.

12 years agoOnly add our own host or destination routes to the build table when
Roy Marples [Thu, 23 Aug 2012 08:39:16 +0000 (08:39 +0000)] 
Only add our own host or destination routes to the build table when
we are adding gateways.
Thanks to Nazarov Yuriy Pavlovich.

12 years agoRemove -v from --version in usage.
Roy Marples [Sat, 18 Aug 2012 13:58:53 +0000 (13:58 +0000)] 
Remove -v from --version in usage.

13 years agoFor some reason, Linux likes to re-add the IPv6 network route even if
Roy Marples [Tue, 7 Aug 2012 07:03:13 +0000 (07:03 +0000)] 
For some reason, Linux likes to re-add the IPv6 network route even if
it exists on a different metric than the default.

13 years agoSeems we need braces here.
Roy Marples [Mon, 6 Aug 2012 20:31:33 +0000 (20:31 +0000)] 
Seems we need braces here.

13 years agoAdd pltime and vltime to our IPv6 addresses.
Roy Marples [Mon, 6 Aug 2012 20:13:47 +0000 (20:13 +0000)] 
Add pltime and vltime to our IPv6 addresses.

13 years agoChange the NS times so that we assume reachable until the reachable
Roy Marples [Mon, 6 Aug 2012 19:32:15 +0000 (19:32 +0000)] 
Change the NS times so that we assume reachable until the reachable
time expires, then send probes at retrans intervals until
DELAY_FIRST_PROBE_TIME is reached at which point we expire the router.

13 years agoWe should send our NS solicitation directly to the router.
Roy Marples [Mon, 6 Aug 2012 12:31:42 +0000 (12:31 +0000)] 
We should send our NS solicitation directly to the router.

13 years agoAdd MTU to IPv6 routes on Linux.
Roy Marples [Mon, 6 Aug 2012 10:52:48 +0000 (10:52 +0000)] 
Add MTU to IPv6 routes on Linux.

13 years agoIf we fail to open sockets, don't bother sending the request.
Roy Marples [Mon, 6 Aug 2012 10:24:13 +0000 (10:24 +0000)] 
If we fail to open sockets, don't bother sending the request.

13 years agora%d_prefix is now a space separated array of the finished address/len
Roy Marples [Wed, 18 Jul 2012 08:35:17 +0000 (08:35 +0000)] 
ra%d_prefix is now a space separated array of the finished address/len

13 years agoDon't set if_up or if_down as true when testing.
Roy Marples [Wed, 18 Jul 2012 08:35:07 +0000 (08:35 +0000)] 
Don't set if_up or if_down as true when testing.

13 years agoDisable kernel interface RA as early as possible on Linux.
Roy Marples [Fri, 13 Jul 2012 08:22:04 +0000 (08:22 +0000)] 
Disable kernel interface RA as early as possible on Linux.
Don't add duplicate interfaces to the restore kernel RA on Linux.

13 years agoRelease dhcpcd-5.6.1 v5.6.1
Roy Marples [Thu, 12 Jul 2012 16:34:33 +0000 (16:34 +0000)] 
Release dhcpcd-5.6.1

13 years agoFix BSD restoring kernel RA.
Roy Marples [Thu, 12 Jul 2012 09:36:51 +0000 (09:36 +0000)] 
Fix BSD restoring kernel RA.

13 years agoDon't restore kernel RA defaults or drop RA's when forking.
Roy Marples [Thu, 12 Jul 2012 09:19:14 +0000 (09:19 +0000)] 
Don't restore kernel RA defaults or drop RA's when forking.
Add some more memory cleanups when testing forking.

13 years agoImprove IPv6 RA support by allowing dhcpcd to manage the address and routes v5.6.0
Roy Marples [Thu, 5 Jul 2012 16:37:41 +0000 (16:37 +0000)] 
Improve IPv6 RA support by allowing dhcpcd to manage the address and routes
instead of the kernel. dhcpcd will only do this if RA is disabled in the kernel
or dhcpcd has been instructed to do this via dhcpcd.conf(5) ipv6ra_own and
ipv6ra_own_default directives.

Send and process IPv6 Neighbor Solicitions and Adverts to prove router
reachability. If a router cannot be reached in this way then it is expired.

When debugging, all ND messages are displayed which will create a lot of log
spam.

To ease packaging, ./configure now accepts LDFLAGS and --enable-static.

13 years agoReport RA information when testing.
Roy Marples [Thu, 28 Jun 2012 09:11:24 +0000 (09:11 +0000)] 
Report RA information when testing.

13 years agoEnsure that if_up and if_down are always set
Roy Marples [Tue, 1 May 2012 21:17:44 +0000 (21:17 +0000)] 
Ensure that if_up and if_down are always set

13 years agoChange system services warning to match as autoconf.
Roy Marples [Sat, 21 Apr 2012 17:18:14 +0000 (17:18 +0000)] 
Change system services warning to match as autoconf.
Thanks to Gilles Espinasse.

13 years agoFix valid length checks for single ipv4 addresses
Roy Marples [Sat, 21 Apr 2012 11:59:24 +0000 (11:59 +0000)] 
Fix valid length checks for single ipv4 addresses

13 years agoFix some alignment problems.
Roy Marples [Fri, 6 Apr 2012 09:15:03 +0000 (09:15 +0000)] 
Fix some alignment problems.

13 years agoRemove a needless set and fix length check of an array of IPv4 addresss.
Roy Marples [Wed, 4 Apr 2012 23:09:48 +0000 (23:09 +0000)] 
Remove a needless set and fix length check of an array of IPv4 addresss.

13 years agoRemove unused variables
Roy Marples [Sun, 1 Apr 2012 07:38:52 +0000 (07:38 +0000)] 
Remove unused variables

13 years agoFix compile on Linux
Roy Marples [Fri, 30 Mar 2012 09:42:01 +0000 (09:42 +0000)] 
Fix compile on Linux

13 years agoInterface index should persist and be unique for the interface lifetime.
Roy Marples [Fri, 30 Mar 2012 09:37:21 +0000 (09:37 +0000)] 
Interface index should persist and be unique for the interface lifetime.
As such, store it at discover and stop using if_nametoindex(3).

13 years agoRemove FreeBSD memory debug as I submitted a fix for their libc: PR bin/166483.
Roy Marples [Thu, 29 Mar 2012 09:11:48 +0000 (09:11 +0000)] 
Remove FreeBSD memory debug as I submitted a fix for their libc: PR bin/166483.

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.