]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoWhite space.
Roy Marples [Thu, 26 Mar 2015 21:40:42 +0000 (21:40 +0000)] 
White space.

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

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

11 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

11 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.

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

11 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

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

11 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.

11 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

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

11 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.

11 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.

11 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.

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

11 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.

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

11 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.

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

11 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.

11 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.

11 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.

11 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.

11 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.

11 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.

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

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

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

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

11 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.

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

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

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

11 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.

11 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.

11 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.

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

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

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

11 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.

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

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

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

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

11 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.

11 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.

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

11 years agoFor DHCP, use a .dhcp suffix.
Roy Marples [Tue, 10 Mar 2015 13:28:11 +0000 (13:28 +0000)] 
For DHCP, use a .dhcp suffix.
Change from using :dhcp6 and :ra to .dhcp6 and .ra to be more inline with Debian resolvconf.

11 years agoEnsure that we only have a 0 sla once.
Roy Marples [Sat, 7 Mar 2015 19:15:14 +0000 (19:15 +0000)] 
Ensure that we only have a 0 sla once.

11 years agoIf the SLA is zero and the required prefix length is zero, just use the
Roy Marples [Sat, 7 Mar 2015 16:31:22 +0000 (16:31 +0000)] 
If the SLA is zero and the required prefix length is zero, just use the
delegated prefix length.

11 years agoFix compile without INET6 and/or INET
Roy Marples [Sat, 7 Mar 2015 12:16:38 +0000 (12:16 +0000)] 
Fix compile without INET6 and/or INET

11 years agoInclude IPv6RA and DHCPv6 in the sorting of interfaces.
Roy Marples [Sat, 7 Mar 2015 12:08:32 +0000 (12:08 +0000)] 
Include IPv6RA and DHCPv6 in the sorting of interfaces.

11 years agoSupport runit (untested)
Roy Marples [Fri, 6 Mar 2015 10:03:25 +0000 (10:03 +0000)] 
Support runit (untested)

11 years agoAdd why dhcpcd is ignoring an interface in debug output.
Roy Marples [Fri, 6 Mar 2015 08:40:35 +0000 (08:40 +0000)] 
Add why dhcpcd is ignoring an interface in debug output.

11 years agoAdd support for IFT_PPP and IFT_PROPVIRTUAL.
Roy Marples [Thu, 5 Mar 2015 19:43:46 +0000 (19:43 +0000)] 
Add support for IFT_PPP and IFT_PROPVIRTUAL.
Thanks to Guy Yur.

11 years agoReport correct interface type on failure.
Roy Marples [Thu, 5 Mar 2015 19:34:00 +0000 (19:34 +0000)] 
Report correct interface type on failure.
Thanks to Guy Yur.

11 years agoRemove erroneous goto.
Roy Marples [Thu, 5 Mar 2015 17:40:56 +0000 (17:40 +0000)] 
Remove erroneous goto.

11 years agoRequeue events when using epoll.
Roy Marples [Thu, 5 Mar 2015 15:07:21 +0000 (15:07 +0000)] 
Requeue events when using epoll.

11 years agoSet poll filters before writing eloop event.
Roy Marples [Thu, 5 Mar 2015 11:34:47 +0000 (11:34 +0000)] 
Set poll filters before writing eloop event.

11 years agoFix signal handling on Linux.
Roy Marples [Thu, 5 Mar 2015 03:30:14 +0000 (03:30 +0000)] 
Fix signal handling on Linux.

11 years agoFix epoll fd moving read only.
Roy Marples [Thu, 5 Mar 2015 02:55:53 +0000 (02:55 +0000)] 
Fix epoll fd moving read only.

11 years agoFix compile on Linux
Roy Marples [Wed, 4 Mar 2015 21:28:21 +0000 (21:28 +0000)] 
Fix compile on Linux

11 years agoFix crash when handling routes on interfaces we don't know about.
Roy Marples [Wed, 4 Mar 2015 20:16:16 +0000 (20:16 +0000)] 
Fix crash when handling routes on interfaces we don't know about.

11 years agoFix signal handling
Roy Marples [Wed, 4 Mar 2015 20:03:22 +0000 (20:03 +0000)] 
Fix signal handling

11 years agokqueue is lost on fork, so re-queue everything.
Roy Marples [Wed, 4 Mar 2015 19:29:17 +0000 (19:29 +0000)] 
kqueue is lost on fork, so re-queue everything.
kqueue and epoll don't need massive memory to read active events.

11 years agoFix compile on FreeBSD
Roy Marples [Wed, 4 Mar 2015 17:28:27 +0000 (17:28 +0000)] 
Fix compile on FreeBSD

11 years agoTest for kqueue1 or set O_CLOEXEC on the kqueue fd.
Roy Marples [Wed, 4 Mar 2015 16:40:21 +0000 (16:40 +0000)] 
Test for kqueue1 or set O_CLOEXEC on the kqueue fd.

11 years agoSupport kqueue(2).
Roy Marples [Wed, 4 Mar 2015 15:47:04 +0000 (15:47 +0000)] 
Support kqueue(2).

11 years agoSupport epoll(7)
Roy Marples [Wed, 4 Mar 2015 11:51:55 +0000 (11:51 +0000)] 
Support epoll(7)

11 years agoMove this struct to a better place
Roy Marples [Wed, 4 Mar 2015 11:41:53 +0000 (11:41 +0000)] 
Move this struct to a better place

11 years agoFix compile on Linux
Roy Marples [Tue, 3 Mar 2015 18:31:14 +0000 (18:31 +0000)] 
Fix compile on Linux

11 years agoRemove RTM_GET code as we now read all kernel routes before building our own.
Roy Marples [Tue, 3 Mar 2015 17:38:35 +0000 (17:38 +0000)] 
Remove RTM_GET code as we now read all kernel routes before building our own.

11 years agoReplace timeval with timespec.
Roy Marples [Tue, 3 Mar 2015 17:27:25 +0000 (17:27 +0000)] 
Replace timeval with timespec.

11 years agoFix route finding on Linux.
Roy Marples [Mon, 2 Mar 2015 20:37:28 +0000 (20:37 +0000)] 
Fix route finding on Linux.

11 years agoNeed to call initstate here.
Roy Marples [Mon, 2 Mar 2015 20:20:43 +0000 (20:20 +0000)] 
Need to call initstate here.

11 years agoCheck we manage the protocol before handling it.
Roy Marples [Mon, 2 Mar 2015 20:08:10 +0000 (20:08 +0000)] 
Check we manage the protocol before handling it.

11 years agoStop pretending that OpenBSD route priority is like Linux route metric.
Roy Marples [Mon, 2 Mar 2015 09:39:34 +0000 (09:39 +0000)] 
Stop pretending that OpenBSD route priority is like Linux route metric.

11 years agoDon't warn about CSR or host routes until we actually use a lease.
Roy Marples [Sat, 28 Feb 2015 19:22:58 +0000 (19:22 +0000)] 
Don't warn about CSR or host routes until we actually use a lease.

11 years agoFix IPv6 routing on OpenBSD and document includes and defines better.
Roy Marples [Sat, 28 Feb 2015 17:41:24 +0000 (17:41 +0000)] 
Fix IPv6 routing on OpenBSD and document includes and defines better.

11 years agoStyle
Roy Marples [Sat, 28 Feb 2015 17:26:52 +0000 (17:26 +0000)] 
Style

11 years agoRevert prior
Roy Marples [Fri, 27 Feb 2015 21:32:51 +0000 (21:32 +0000)] 
Revert prior

11 years agoChange ipv6_freeaddr into a macro for a minor size improvement.
Roy Marples [Fri, 27 Feb 2015 20:55:38 +0000 (20:55 +0000)] 
Change ipv6_freeaddr into a macro for a minor size improvement.

11 years agoAdd a helper function to free IPv6 addresses to ensure all
Roy Marples [Fri, 27 Feb 2015 20:40:17 +0000 (20:40 +0000)] 
Add a helper function to free IPv6 addresses to ensure all
timeouts are cleared.

11 years agoRemove the address from the eloop tiemout queue before freeing.
Roy Marples [Fri, 27 Feb 2015 19:53:03 +0000 (19:53 +0000)] 
Remove the address from the eloop tiemout queue before freeing.

11 years agoUse strlcpy
Roy Marples [Fri, 27 Feb 2015 19:52:00 +0000 (19:52 +0000)] 
Use strlcpy

11 years agoOnly warn about adding a host route to the router the once.
Roy Marples [Fri, 27 Feb 2015 14:58:13 +0000 (14:58 +0000)] 
Only warn about adding a host route to the router the once.

11 years agoIf RTF_CLONING is supported, create a cloning network route to the host instead
Roy Marples [Fri, 27 Feb 2015 14:33:09 +0000 (14:33 +0000)] 
If RTF_CLONING is supported, create a cloning network route to the host instead
of a host route.
This avoids the kernel printing ARP diagnositic messages.

11 years agoStop using link_addr(3).
Roy Marples [Fri, 27 Feb 2015 14:21:01 +0000 (14:21 +0000)] 
Stop using link_addr(3).
Instead just set the sdl_index to specify which interface the route is for.

11 years agoAfter adding an address load the kernel routing table for the interface.
Roy Marples [Thu, 26 Feb 2015 13:22:41 +0000 (13:22 +0000)] 
After adding an address load the kernel routing table for the interface.
When routes are rebuilt try not to remove any existing routes if they
don't need changing.

11 years agoTypo
Roy Marples [Mon, 23 Feb 2015 17:47:25 +0000 (17:47 +0000)] 
Typo

11 years agoAllow snapshots to be built.
Roy Marples [Mon, 23 Feb 2015 12:16:17 +0000 (12:16 +0000)] 
Allow snapshots to be built.

11 years agoOpenBSD has automatic loopback routes
Roy Marples [Mon, 23 Feb 2015 12:05:34 +0000 (12:05 +0000)] 
OpenBSD has automatic loopback routes

11 years agoSupport BSDs where userland is not allowed to set temporary addresses.
Roy Marples [Mon, 23 Feb 2015 10:55:09 +0000 (10:55 +0000)] 
Support BSDs where userland is not allowed to set temporary addresses.

11 years agologger(1) from util-linux-2.26 now has an option argument to -i, so work
Roy Marples [Mon, 23 Feb 2015 09:35:42 +0000 (09:35 +0000)] 
logger(1) from util-linux-2.26 now has an option argument to -i, so work
with this as well.
Fixes [eb1ef6a62b].

11 years agoMove the pidfile into the dhcpcd context.
Roy Marples [Fri, 20 Feb 2015 08:28:04 +0000 (08:28 +0000)] 
Move the pidfile into the dhcpcd context.
When dumping a lease by filename, store the filename in the pidfile.
Fixes an issue where the filename overflows the interface name size.

11 years agoUse the exit code of EXIT_SUCCESS when terminating gracefully.
Roy Marples [Wed, 18 Feb 2015 20:29:42 +0000 (20:29 +0000)] 
Use the exit code of EXIT_SUCCESS when terminating gracefully.

11 years agoipi6.ifiindex differes between OS's so have a cast function
Roy Marples [Wed, 18 Feb 2015 20:09:57 +0000 (20:09 +0000)] 
ipi6.ifiindex differes between OS's so have a cast function

11 years agoCheck IPv6 state before regenerating random seeds. Fixes [eb1ef6a62b].
Roy Marples [Wed, 18 Feb 2015 16:52:49 +0000 (16:52 +0000)] 
Check IPv6 state before regenerating random seeds. Fixes [eb1ef6a62b].

11 years agoNo need to check this again.
Roy Marples [Wed, 18 Feb 2015 16:43:54 +0000 (16:43 +0000)] 
No need to check this again.

11 years agoTidy definitions
Roy Marples [Wed, 18 Feb 2015 13:40:40 +0000 (13:40 +0000)] 
Tidy definitions