]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
10 years agoFix IPv6 prefix underflow when confirming deprecated but valid leases.
Roy Marples [Wed, 6 May 2015 15:21:56 +0000 (15:21 +0000)] 
Fix IPv6 prefix underflow when confirming deprecated but valid leases.

10 years agoRelease dhcpcd-6.8.2 v6.8.2
Roy Marples [Sat, 2 May 2015 14:07:59 +0000 (14:07 +0000)] 
Release dhcpcd-6.8.2

10 years agoFix compile on FreeBSD.
Roy Marples [Sat, 2 May 2015 14:00:37 +0000 (14:00 +0000)] 
Fix compile on FreeBSD.

10 years agoKNF
Roy Marples [Fri, 1 May 2015 20:13:46 +0000 (20:13 +0000)] 
KNF

10 years agoFix compile on non NetBSD-8
Roy Marples [Fri, 1 May 2015 20:08:57 +0000 (20:08 +0000)] 
Fix compile on non NetBSD-8

10 years agoFix some compiler warnings.
Roy Marples [Fri, 1 May 2015 16:06:39 +0000 (16:06 +0000)] 
Fix some compiler warnings.

10 years agoOn carrier down, rebuild routes and expire RA's if keeping IP addressses.
Roy Marples [Fri, 1 May 2015 15:52:34 +0000 (15:52 +0000)] 
On carrier down, rebuild routes and expire RA's if keeping IP addressses.
On carrier up, set RA's to expire comletely after a few seconds.
If no valid RA's are available, kill DHCPv6.

10 years agoDelete duplicated addresses.
Roy Marples [Fri, 1 May 2015 14:02:36 +0000 (14:02 +0000)] 
Delete duplicated addresses.

10 years agoFix reporting of non existant DHCPv6 lease.
Roy Marples [Fri, 1 May 2015 12:55:06 +0000 (12:55 +0000)] 
Fix reporting of non existant DHCPv6 lease.

10 years agoFix compile on Linux.
Roy Marples [Fri, 1 May 2015 12:40:05 +0000 (12:40 +0000)] 
Fix compile on Linux.

10 years agoIf config file changed, drop leases and re-disover.
Roy Marples [Fri, 1 May 2015 12:39:06 +0000 (12:39 +0000)] 
If config file changed, drop leases and re-disover.
Fix minor issues with IN_IFF_TENTATIVE.

10 years agoMove address learning into a separate function for future use.
Roy Marples [Fri, 1 May 2015 12:34:07 +0000 (12:34 +0000)] 
Move address learning into a separate function for future use.

10 years agoAdd initial support for keeping addresses at carrier down for supported platforms.
Roy Marples [Fri, 1 May 2015 09:53:45 +0000 (09:53 +0000)] 
Add initial support for keeping addresses at carrier down for supported platforms.

10 years agoFix compile and warnings on Linux for prior patch.
Roy Marples [Fri, 1 May 2015 09:52:04 +0000 (09:52 +0000)] 
Fix compile and warnings on Linux for prior patch.

10 years agoSupport IN_IFF_TENTATIVE and IN_IFF_DUPLICATED on NetBSD.
Roy Marples [Fri, 1 May 2015 09:41:54 +0000 (09:41 +0000)] 
Support IN_IFF_TENTATIVE and IN_IFF_DUPLICATED on NetBSD.

10 years agoRemove this unused function.
Roy Marples [Fri, 1 May 2015 08:12:19 +0000 (08:12 +0000)] 
Remove this unused function.

10 years agoLet arp_new take an address so we never have duplicate
Roy Marples [Fri, 1 May 2015 08:10:16 +0000 (08:10 +0000)] 
Let arp_new take an address so we never have duplicate
ARP states.

10 years agoMake code cleaner with UNUSED
Roy Marples [Thu, 30 Apr 2015 10:25:16 +0000 (10:25 +0000)] 
Make code cleaner with UNUSED

10 years agoEnsure errno is set if we dont find an interface.
Roy Marples [Thu, 30 Apr 2015 10:18:45 +0000 (10:18 +0000)] 
Ensure errno is set if we dont find an interface.

10 years agoMake finding interfaces take an interface list rather than a dhcpcd_ctx.
Roy Marples [Thu, 30 Apr 2015 10:16:06 +0000 (10:16 +0000)] 
Make finding interfaces take an interface list rather than a dhcpcd_ctx.

10 years agoMove carrier state higher up the interface preference for sorting.
Roy Marples [Fri, 24 Apr 2015 09:21:47 +0000 (09:21 +0000)] 
Move carrier state higher up the interface preference for sorting.

10 years agoAdd dhcpcd_drop function to reduce code complexity.
Roy Marples [Fri, 24 Apr 2015 09:18:42 +0000 (09:18 +0000)] 
Add dhcpcd_drop function to reduce code complexity.

10 years agoFix some more -Wconversion issues.
Roy Marples [Tue, 21 Apr 2015 16:20:04 +0000 (16:20 +0000)] 
Fix some more -Wconversion issues.

10 years agoGive up on _BSD_SOURCE and use _GNU_SOURCE for Linux.
Roy Marples [Mon, 20 Apr 2015 09:02:58 +0000 (09:02 +0000)] 
Give up on _BSD_SOURCE and use _GNU_SOURCE for Linux.
This is requires for newer Linux headers as there is no easy way to get at the
in6_pktinfo structure, so we have to fallback to the glibc variant which
requires _GNU_SOURCE being set.
This does have the advantage of no longer sprinkling _GNU_SOURCE around and
no longer having to cast ipi.ipi_ifindex but may break compile on older Linux.

10 years agoCopy out some route types.
Roy Marples [Thu, 16 Apr 2015 16:08:54 +0000 (16:08 +0000)] 
Copy out some route types.

10 years agoBSD handles a subnet route for addresses of /32.
Roy Marples [Thu, 16 Apr 2015 16:08:24 +0000 (16:08 +0000)] 
BSD handles a subnet route for addresses of /32.

10 years agoEnsure static routes are in multiples of 8 and the destination is not the default...
Roy Marples [Thu, 16 Apr 2015 15:31:28 +0000 (15:31 +0000)] 
Ensure static routes are in multiples of 8 and the destination is not the default route as noted in RFC2132 5.8

10 years agoStore a host route as the kernel would like it, rather than varying forms of
Roy Marples [Wed, 15 Apr 2015 22:02:15 +0000 (22:02 +0000)] 
Store a host route as the kernel would like it, rather than varying forms of
how it's set in a DHCP message.

10 years agoFix routing generation when we receive a host route over CSR.
Roy Marples [Wed, 15 Apr 2015 21:09:40 +0000 (21:09 +0000)] 
Fix routing generation when we receive a host route over CSR.

10 years agoFix a segfault when finding a route without an interface.
Roy Marples [Sun, 12 Apr 2015 08:57:13 +0000 (08:57 +0000)] 
Fix a segfault when finding a route without an interface.
Thanks to Paul Walrath.

10 years agoOnly take into account useable IPv6 public addresses.
Roy Marples [Tue, 7 Apr 2015 21:16:31 +0000 (21:16 +0000)] 
Only take into account useable IPv6 public addresses.

10 years agoNo point in sending Maximum Message Size DHCP option for BOOTP messages.
Roy Marples [Tue, 7 Apr 2015 08:41:18 +0000 (08:41 +0000)] 
No point in sending Maximum Message Size DHCP option for BOOTP messages.
More for [c59e71d5fa].

10 years agoThe bootp option will stop sending the DHCP Message Type option.
Roy Marples [Mon, 6 Apr 2015 13:07:19 +0000 (13:07 +0000)] 
The bootp option will stop sending the DHCP Message Type option.
This allows dhcpcd it interact with BOOTP servers only if both are on
the same network. All other DHCP options still work.
Fixes [c59e71d5fa].

10 years agoRemove sockaddr_storage reference in sockaddr unions as the other addresses
Roy Marples [Sun, 5 Apr 2015 21:50:53 +0000 (21:50 +0000)] 
Remove sockaddr_storage reference in sockaddr unions as the other addresses
should be big enough.

10 years agoCheck the magic cookie when retreiving an option.
Roy Marples [Sun, 5 Apr 2015 16:28:54 +0000 (16:28 +0000)] 
Check the magic cookie when retreiving an option.

10 years agoIf we receieve an RA without a public prefix but with the Managed flag set,
Roy Marples [Sat, 4 Apr 2015 21:40:47 +0000 (21:40 +0000)] 
If we receieve an RA without a public prefix but with the Managed flag set,
ignore the RA until we recieve a DHCPv6 lease with a public address at
which point it is applied.

10 years agoCheck we're creating an autoconf address.
Roy Marples [Sat, 4 Apr 2015 20:51:29 +0000 (20:51 +0000)] 
Check we're creating an autoconf address.

10 years agoInstead of not installed a default route for RA's that don't have public
Roy Marples [Sat, 4 Apr 2015 20:43:08 +0000 (20:43 +0000)] 
Instead of not installed a default route for RA's that don't have public
prefixes, we need to ignore the whole RA if it doesn't have any public prefixes
AND the Managed flag is not set as some RA options could rely on a public
address we don't have working.

10 years agoReset no default warning on new data.
Roy Marples [Fri, 3 Apr 2015 23:43:42 +0000 (23:43 +0000)] 
Reset no default warning on new data.

10 years agoIf a IPv6 router claims it's a valid router but doesn't have any public
Roy Marples [Fri, 3 Apr 2015 23:36:06 +0000 (23:36 +0000)] 
If a IPv6 router claims it's a valid router but doesn't have any public
prefixes, don't install a default route for it.
If we did, some OS's will just stall trying to reach global addresses.
By not installing the default route, they can fall back to IPv4 faster.
This can be overridden with ipv6ra_always_default.

10 years agoFix more -Wconversion issues.
Roy Marples [Thu, 2 Apr 2015 18:27:22 +0000 (18:27 +0000)] 
Fix more -Wconversion issues.

10 years agoAvoid printing the leasefile on error with a valid interface.
Roy Marples [Wed, 1 Apr 2015 22:53:00 +0000 (22:53 +0000)] 
Avoid printing the leasefile on error with a valid interface.

10 years agoINFORM will not have any leases so don't validate.
Roy Marples [Wed, 1 Apr 2015 22:41:15 +0000 (22:41 +0000)] 
INFORM will not have any leases so don't validate.
While here, improve dump messages when lease file is not found.

10 years agoReally fix prior.
Roy Marples [Wed, 1 Apr 2015 22:06:33 +0000 (22:06 +0000)] 
Really fix prior.

10 years agoDumping leases should not change kernel IPv6 setup.
Roy Marples [Wed, 1 Apr 2015 22:02:34 +0000 (22:02 +0000)] 
Dumping leases should not change kernel IPv6 setup.

10 years agoDon't attmept IPv6 ownage when dumping leases.
Roy Marples [Wed, 1 Apr 2015 21:29:13 +0000 (21:29 +0000)] 
Don't attmept IPv6 ownage when dumping leases.

10 years agoCID 1292550: Missing call to va_end().
Roy Marples [Tue, 31 Mar 2015 21:16:34 +0000 (21:16 +0000)] 
CID 1292550: Missing call to va_end().

10 years agoFix more htons and uint16_t issues.
Roy Marples [Sat, 28 Mar 2015 20:34:18 +0000 (20:34 +0000)] 
Fix more htons and uint16_t issues.
Thanks to Christos.

10 years agoFix casting.
Roy Marples [Sat, 28 Mar 2015 09:45:41 +0000 (09:45 +0000)] 
Fix casting.

10 years agoFix casting with htons()
Roy Marples [Sat, 28 Mar 2015 09:44:22 +0000 (09:44 +0000)] 
Fix casting with htons()

10 years agoRelease dhcpcd-6.8.1 v6.8.1
Roy Marples [Fri, 27 Mar 2015 11:17:28 +0000 (11:17 +0000)] 
Release dhcpcd-6.8.1

10 years agoIf we have route metrics and the kernel claims our new route exists and
Roy Marples [Thu, 26 Mar 2015 22:26:38 +0000 (22:26 +0000)] 
If we have route metrics and the kernel claims our new route exists and
we have an old route to delete, we have to delete the old route and then
add the new route.

10 years agoFix detecting fake default routes.
Roy Marples [Thu, 26 Mar 2015 22:25:26 +0000 (22:25 +0000)] 
Fix detecting fake default routes.

10 years agoWhite space.
Roy Marples [Thu, 26 Mar 2015 21:40:42 +0000 (21:40 +0000)] 
White space.

10 years agoFix detecting host routes.
Roy Marples [Thu, 26 Mar 2015 21:39:02 +0000 (21:39 +0000)] 
Fix detecting host routes.

10 years agoFix logging quietly.
Roy Marples [Thu, 26 Mar 2015 20:25:57 +0000 (20:25 +0000)] 
Fix logging quietly.

10 years agoInclude if.h for HAVE_ROUTE_METRIC
Roy Marples [Thu, 26 Mar 2015 20:00:54 +0000 (20:00 +0000)] 
Include if.h for HAVE_ROUTE_METRIC

10 years agoEnsure our configured routes are allocated correctly.
Roy Marples [Thu, 26 Mar 2015 19:49:59 +0000 (19:49 +0000)] 
Ensure our configured routes are allocated correctly.

10 years agoCast away another conversion error.
Roy Marples [Thu, 26 Mar 2015 10:34:05 +0000 (10:34 +0000)] 
Cast away another conversion error.

10 years agoRelease dhcpcd-6.8.0 v6.8.0
Roy Marples [Thu, 26 Mar 2015 09:26:19 +0000 (09:26 +0000)] 
Release dhcpcd-6.8.0

10 years agocaddr_t -> void *
Roy Marples [Thu, 19 Mar 2015 21:52:28 +0000 (21:52 +0000)] 
caddr_t -> void *

10 years agoSupport SIOCIFAFATTACH.
Roy Marples [Thu, 19 Mar 2015 13:59:26 +0000 (13:59 +0000)] 
Support SIOCIFAFATTACH.
Only open a PF_INET6 socket the one during IPv6 checking.

10 years agoFix compile on OpenBSD-5.7
Roy Marples [Thu, 19 Mar 2015 13:10:55 +0000 (13:10 +0000)] 
Fix compile on OpenBSD-5.7

10 years agoFix ./configure --debug=yes
Roy Marples [Wed, 18 Mar 2015 18:31:07 +0000 (18:31 +0000)] 
Fix ./configure --debug=yes

10 years agoFix kernel route detection after adding our delegated addresses.
Roy Marples [Wed, 18 Mar 2015 14:38:17 +0000 (14:38 +0000)] 
Fix kernel route detection after adding our delegated addresses.

10 years agoLet dhcpcd rotate the logfile itself.
Roy Marples [Wed, 18 Mar 2015 12:11:40 +0000 (12:11 +0000)] 
Let dhcpcd rotate the logfile itself.

10 years agoFix creation of normal IPv6 link-local addresses overflowing the
Roy Marples [Wed, 18 Mar 2015 12:07:02 +0000 (12:07 +0000)] 
Fix creation of normal IPv6 link-local addresses overflowing the
address and fooling dhcpcd into thinking it's not tentative when added.

10 years agoAlways prefer master interfaces
Roy Marples [Wed, 18 Mar 2015 11:54:23 +0000 (11:54 +0000)] 
Always prefer master interfaces

10 years agoEnsure IPv6 RA/NA and DHCPv6 work on the master interface.
Roy Marples [Wed, 18 Mar 2015 08:55:09 +0000 (08:55 +0000)] 
Ensure IPv6 RA/NA and DHCPv6 work on the master interface.

10 years agoFix dprintf compat.
Roy Marples [Wed, 18 Mar 2015 00:01:03 +0000 (00:01 +0000)] 
Fix dprintf compat.

10 years agosyslogd(8) may not always be running before dhcpcd so any startup errors are
Roy Marples [Tue, 17 Mar 2015 23:46:38 +0000 (23:46 +0000)] 
syslogd(8) may not always be running before dhcpcd so any startup errors are
lost. Also, it's output with LOG_PERROR is ugly and LOG_PERROR isn't portable.

logger is a new function to solve the above which is identical to syslog(3)
but takes a dhcpcd_ctx for context so it functions in the RTEMS OS.
When writing to stdout/stderr or a given logfile, logger will convert %m
into the error string based on errno, just like syslog(3) does.
If your libc supports %m via printf, then define HAVE_PRINTF_M to remove
a fair chunk of code. There is no way of working out if your libc supports
this, especially in cross-compiled environment.
If the logfile is rotated, send dhcpcd a SIGUSR2 and the logfile will be
re-opened.

This does add about an exta 4K on 64-bit platforms so for size constraints
this can be compiled out by defining USE_LOGFILE to 0.

10 years agoFix another gcc warning.
Roy Marples [Tue, 17 Mar 2015 15:18:41 +0000 (15:18 +0000)] 
Fix another gcc warning.

10 years agoFix more gcc errors with -Wconversion.
Roy Marples [Tue, 17 Mar 2015 15:07:29 +0000 (15:07 +0000)] 
Fix more gcc errors with -Wconversion.

10 years agoNote that -w does not accept an argument but --waitip does.
Roy Marples [Mon, 16 Mar 2015 20:11:31 +0000 (20:11 +0000)] 
Note that -w does not accept an argument but --waitip does.

10 years agoNote that -w does not accept an argument but --waitip does.
Roy Marples [Mon, 16 Mar 2015 20:06:47 +0000 (20:06 +0000)] 
Note that -w does not accept an argument but --waitip does.

10 years agoFix some more conversion errors on Linux.
Roy Marples [Sun, 15 Mar 2015 16:12:20 +0000 (16:12 +0000)] 
Fix some more conversion errors on Linux.

10 years agoFix some more conversion errors on Linux.
Roy Marples [Sun, 15 Mar 2015 16:09:52 +0000 (16:09 +0000)] 
Fix some more conversion errors on Linux.

10 years agoIf compile if IPV6_MANAGETEMPADDR is unset on Linux.
Roy Marples [Sun, 15 Mar 2015 16:03:52 +0000 (16:03 +0000)] 
If compile if IPV6_MANAGETEMPADDR is unset on Linux.
Thanks to Gabriele.

10 years agoNew beta tarball
Roy Marples [Sat, 14 Mar 2015 11:21:21 +0000 (11:21 +0000)] 
New beta tarball

10 years agoImprove pseudo interface handling.
Roy Marples [Sat, 14 Mar 2015 11:06:19 +0000 (11:06 +0000)] 
Improve pseudo interface handling.

10 years agoImprove debug flags.
Roy Marples [Sat, 14 Mar 2015 11:04:36 +0000 (11:04 +0000)] 
Improve debug flags.

10 years agoDuh, not IPv6 here.
Roy Marples [Sat, 14 Mar 2015 00:58:02 +0000 (00:58 +0000)] 
Duh, not IPv6 here.

10 years agoOnly copy route flags to IPv6 routes.
Roy Marples [Sat, 14 Mar 2015 00:57:37 +0000 (00:57 +0000)] 
Only copy route flags to IPv6 routes.

10 years agoDetect RTF_REJECT routes.
Roy Marples [Sat, 14 Mar 2015 00:40:17 +0000 (00:40 +0000)] 
Detect RTF_REJECT routes.

10 years agoRemove some dead code.
Roy Marples [Fri, 13 Mar 2015 22:31:53 +0000 (22:31 +0000)] 
Remove some dead code.

10 years agoWups, not the same type.
Roy Marples [Fri, 13 Mar 2015 22:13:46 +0000 (22:13 +0000)] 
Wups, not the same type.

10 years agoCast away some more gcc errors.
Roy Marples [Fri, 13 Mar 2015 22:11:18 +0000 (22:11 +0000)] 
Cast away some more gcc errors.

10 years agoCast away some more gcc errors.
Roy Marples [Fri, 13 Mar 2015 22:08:46 +0000 (22:08 +0000)] 
Cast away some more gcc errors.

10 years agoCast away some more gcc errors.
Roy Marples [Fri, 13 Mar 2015 22:06:05 +0000 (22:06 +0000)] 
Cast away some more gcc errors.

10 years agoCast away more gcc errors.
Roy Marples [Fri, 13 Mar 2015 21:26:20 +0000 (21:26 +0000)] 
Cast away more gcc errors.

10 years agoCast away more gcc errors.
Roy Marples [Fri, 13 Mar 2015 21:10:57 +0000 (21:10 +0000)] 
Cast away more gcc errors.

10 years agoCast away a gcc error.
Roy Marples [Fri, 13 Mar 2015 20:58:32 +0000 (20:58 +0000)] 
Cast away a gcc error.

10 years agoCast more for gcc and fix vendor class parsing.
Roy Marples [Fri, 13 Mar 2015 20:21:29 +0000 (20:21 +0000)] 
Cast more for gcc and fix vendor class parsing.

10 years agoCast random for gcc.
Roy Marples [Fri, 13 Mar 2015 19:51:33 +0000 (19:51 +0000)] 
Cast random for gcc.

10 years agoCast away some gcc errors.
Roy Marples [Fri, 13 Mar 2015 17:41:07 +0000 (17:41 +0000)] 
Cast away some gcc errors.

10 years agoCast here for gcc.
Roy Marples [Fri, 13 Mar 2015 16:19:53 +0000 (16:19 +0000)] 
Cast here for gcc.

10 years agoCast correctly for kevent.
Roy Marples [Fri, 13 Mar 2015 16:15:36 +0000 (16:15 +0000)] 
Cast correctly for kevent.

10 years agoTurn on Large File Support for Linux systems.
Roy Marples [Thu, 12 Mar 2015 15:57:42 +0000 (15:57 +0000)] 
Turn on Large File Support for Linux systems.
Fixes [6ae09d0514] thanks to Mike Frysinger.

10 years agoNote that some non-RFC compliant DHCP servers reject DUID in the ClientID.
Roy Marples [Wed, 11 Mar 2015 12:28:03 +0000 (12:28 +0000)] 
Note that some non-RFC compliant DHCP servers reject DUID in the ClientID.

10 years agoFix ypbind on BSD
Roy Marples [Tue, 10 Mar 2015 13:36:47 +0000 (13:36 +0000)] 
Fix ypbind on BSD