]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoUse RTF_PINNED if available.
Roy Marples [Tue, 7 Oct 2014 12:27:46 +0000 (12:27 +0000)] 
Use RTF_PINNED if available.
Allows us to delete in-use subnet routes on FreeBSD.

11 years agoRelease dhcpcd-6.5.0 v6.5.0
Roy Marples [Mon, 6 Oct 2014 18:00:25 +0000 (18:00 +0000)] 
Release dhcpcd-6.5.0

11 years agoThis is no longer true.
Roy Marples [Mon, 6 Oct 2014 14:28:59 +0000 (14:28 +0000)] 
This is no longer true.

11 years agoCallout to handlecarrier when we don't have real carrier support
Roy Marples [Mon, 6 Oct 2014 12:34:59 +0000 (12:34 +0000)] 
Callout to handlecarrier when we don't have real carrier support
and rely on looking at IFF_UP and IFF_RUNNING.
This allows our hooks to know that dhcpcd thinks we have a carrier or not.

11 years agoCorrect wording
Roy Marples [Mon, 6 Oct 2014 12:15:43 +0000 (12:15 +0000)] 
Correct wording

11 years agoFix compile on Linux
Roy Marples [Mon, 6 Oct 2014 08:31:57 +0000 (08:31 +0000)] 
Fix compile on Linux

11 years agoOpenBSD dropped IPV6CTL_ACCEPT_RTADV but kept the define.
Roy Marples [Sun, 5 Oct 2014 20:55:39 +0000 (20:55 +0000)] 
OpenBSD dropped IPV6CTL_ACCEPT_RTADV but kept the define.
They also added IFXF_NOINET6 and IFXF_AUTOCONF6 which dhcpcd now disables
when it needs to so dhcpcd works with IPv6 on OpenBSD-5.6 again.

11 years agoAdjust link-local scope for KAME based stacks in all needed places.
Roy Marples [Sun, 5 Oct 2014 11:03:07 +0000 (11:03 +0000)] 
Adjust link-local scope for KAME based stacks in all needed places.

11 years agoFix compile on BSD.
Roy Marples [Sat, 4 Oct 2014 10:19:00 +0000 (10:19 +0000)] 
Fix compile on BSD.

11 years agoImprove the dev API a little.
Roy Marples [Sat, 4 Oct 2014 08:26:15 +0000 (08:26 +0000)] 
Improve the dev API a little.

11 years agoFree control memory on fork
Roy Marples [Sat, 4 Oct 2014 08:22:09 +0000 (08:22 +0000)] 
Free control memory on fork

11 years agoWrong month, duh.
Roy Marples [Fri, 3 Oct 2014 18:29:08 +0000 (18:29 +0000)] 
Wrong month, duh.

11 years agoRename dhcp6_prefix to delegated_dhcp6_prefix incase a user makes a
Roy Marples [Fri, 3 Oct 2014 17:54:06 +0000 (17:54 +0000)] 
Rename dhcp6_prefix to delegated_dhcp6_prefix incase a user makes a
DHCPv6 option just called prefix.
Send delegated interfaces to listeners as well.

11 years agoFix IPv6 address announcements from kernel generated link-local addresses.
Roy Marples [Fri, 3 Oct 2014 14:43:35 +0000 (14:43 +0000)] 
Fix IPv6 address announcements from kernel generated link-local addresses.

11 years agodhcpcd has been able to handle IPv6 routing on BSD for a while now.
Roy Marples [Fri, 3 Oct 2014 11:07:41 +0000 (11:07 +0000)] 
dhcpcd has been able to handle IPv6 routing on BSD for a while now.

11 years agoFix a segfault.
Roy Marples [Thu, 2 Oct 2014 15:20:07 +0000 (15:20 +0000)] 
Fix a segfault.

11 years agoReally fix double fork.
Roy Marples [Thu, 2 Oct 2014 13:38:18 +0000 (13:38 +0000)] 
Really fix double fork.

11 years agoFix double fork.
Roy Marples [Thu, 2 Oct 2014 13:24:22 +0000 (13:24 +0000)] 
Fix double fork.

11 years agoThe decode and print functions should not including the trailing NUL
Roy Marples [Thu, 2 Oct 2014 13:21:29 +0000 (13:21 +0000)] 
The decode and print functions should not including the trailing NUL
in their return values to match other functions.

11 years agoDon't drop delegated reject route when forking.
Roy Marples [Thu, 2 Oct 2014 11:07:00 +0000 (11:07 +0000)] 
Don't drop delegated reject route when forking.

11 years agoDon't daemonise on delegated address dad.
Roy Marples [Thu, 2 Oct 2014 10:54:02 +0000 (10:54 +0000)] 
Don't daemonise on delegated address dad.

11 years agoFix some errors
Roy Marples [Thu, 2 Oct 2014 10:51:32 +0000 (10:51 +0000)] 
Fix some errors

11 years agoRemove strcpy as it's "dangerous".
Roy Marples [Thu, 2 Oct 2014 10:07:59 +0000 (10:07 +0000)] 
Remove strcpy as it's "dangerous".
Can't use stpcpy for the same reason even though it's perfect for the job.

11 years agoMention the encoding in -V
Roy Marples [Thu, 2 Oct 2014 08:35:31 +0000 (08:35 +0000)] 
Mention the encoding in -V

11 years agoRemove vis based encoding - instead expand the DHCP option encoding to a
Roy Marples [Wed, 1 Oct 2014 18:32:03 +0000 (18:32 +0000)] 
Remove vis based encoding - instead expand the DHCP option encoding to a
natural string based on content except as noted:
  *  domain (RFC3397)/dname (string) is strict domain name allowance
     (ie, [alnum] with _- (but not at the start or end))
  *  string is now printable ascii (1-127) until invalid
  *  ascii is all ascii (1-127) until invalid
  *  raw is all chars (1-255) until NUL
  *  binhex is a hex representation of the option including embedded NULs
  *  ssid is still escpaed octal because it's expected to be human readable
     AND can technically be all NUL
  *  everything else has strict option -> value encoding

This removes all shell escaped encoding - dhcpcd will assume that IF the
--script option is a shell, it will quote variables correctly.
The stock dhcpcd-run-hooks does.

dhcpcd -V now prints how the variables will be decoded.

Changed some options in dhcpcd-definitions.conf to more sensible defaults.

11 years agoDocument the possible use of eval.
Roy Marples [Tue, 30 Sep 2014 14:01:22 +0000 (14:01 +0000)] 
Document the possible use of eval.

11 years agoDocument more shell escaped characters, how to strip the shell escaped
Roy Marples [Tue, 30 Sep 2014 12:43:13 +0000 (12:43 +0000)] 
Document more shell escaped characters, how to strip the shell escaped
characters only and how to decode the binary strings.

11 years agoRemove dead increament.
Roy Marples [Mon, 29 Sep 2014 18:35:46 +0000 (18:35 +0000)] 
Remove dead increament.

11 years agoRemove the fast loop trying to up an interface which does not report
Roy Marples [Mon, 29 Sep 2014 18:32:15 +0000 (18:32 +0000)] 
Remove the fast loop trying to up an interface which does not report
carrier.

11 years agoFix bounds check.
Roy Marples [Mon, 29 Sep 2014 13:24:09 +0000 (13:24 +0000)] 
Fix bounds check.

11 years agoDon't use a magic number for print_string flags.
Roy Marples [Mon, 29 Sep 2014 09:03:12 +0000 (09:03 +0000)] 
Don't use a magic number for print_string flags.
Export if_ssid= for non carrier reasons.

11 years agoFix compile
Roy Marples [Sun, 28 Sep 2014 21:04:23 +0000 (21:04 +0000)] 
Fix compile

11 years agoBe more safe, escape * ? [ # ? = % as well.
Roy Marples [Sun, 28 Sep 2014 20:50:43 +0000 (20:50 +0000)] 
Be more safe, escape * ? [ # ? = % as well.

11 years agoFix an unaligned access error on BeagleBone Black with FreeBSD.
Roy Marples [Sun, 28 Sep 2014 20:34:44 +0000 (20:34 +0000)] 
Fix an unaligned access error on BeagleBone Black with FreeBSD.
Thanks to Guy Yur for the patch.

11 years agoSome strings don't need to be shell escaped - for example when sending to
Roy Marples [Sun, 28 Sep 2014 20:26:49 +0000 (20:26 +0000)] 
Some strings don't need to be shell escaped - for example when sending to
syslog(2), so just use vis(3).

11 years agoReference dhcpcd-code(8) as well as unvis(1).
Roy Marples [Sun, 28 Sep 2014 20:02:20 +0000 (20:02 +0000)] 
Reference dhcpcd-code(8) as well as unvis(1).

11 years agoRelease dhcpcd-6.4.7 v6.4.7
Roy Marples [Sat, 27 Sep 2014 07:43:12 +0000 (07:43 +0000)] 
Release dhcpcd-6.4.7

11 years agoFix a compile problem on Linux with IPv6 disabled.
Roy Marples [Sat, 27 Sep 2014 07:37:15 +0000 (07:37 +0000)] 
Fix a compile problem on Linux with IPv6 disabled.

11 years agoFix an impossible clang analyser warning.
Roy Marples [Sat, 27 Sep 2014 02:22:34 +0000 (02:22 +0000)] 
Fix an impossible clang analyser warning.

11 years agoRelease dhcpcd-6.4.6 v6.4.6
Roy Marples [Sat, 27 Sep 2014 00:50:18 +0000 (00:50 +0000)] 
Release dhcpcd-6.4.6

11 years agoWe only supply svis(3) so rename the files as such.
Roy Marples [Sat, 27 Sep 2014 00:12:21 +0000 (00:12 +0000)] 
We only supply svis(3) so rename the files as such.

11 years agoClean up configure _vis files
Roy Marples [Fri, 26 Sep 2014 23:20:35 +0000 (23:20 +0000)] 
Clean up configure _vis files

11 years agoDocument $new_dhcp6_prefix
Roy Marples [Fri, 26 Sep 2014 22:42:01 +0000 (22:42 +0000)] 
Document $new_dhcp6_prefix

11 years agoCall dhcpcd-run-hooks correctly when delegated prefixes already exist.
Roy Marples [Fri, 26 Sep 2014 22:35:46 +0000 (22:35 +0000)] 
Call dhcpcd-run-hooks correctly when delegated prefixes already exist.

11 years agoFix a memory error when ia_* config exists but IPv6 is disabled.
Roy Marples [Fri, 26 Sep 2014 21:50:52 +0000 (21:50 +0000)] 
Fix a memory error when ia_* config exists but IPv6 is disabled.

11 years agoReport delegated addresses, fixes [2887c4de47].
Roy Marples [Fri, 26 Sep 2014 21:22:14 +0000 (21:22 +0000)] 
Report delegated addresses, fixes [2887c4de47].

11 years agoCheck we are writing to a string before checking for enough space.
Roy Marples [Fri, 26 Sep 2014 21:13:17 +0000 (21:13 +0000)] 
Check we are writing to a string before checking for enough space.

11 years agoSanitise the following characters using svis(3) with VIS_CTYLE and VIS_OCTAL:
Roy Marples [Fri, 26 Sep 2014 20:07:07 +0000 (20:07 +0000)] 
Sanitise the following characters using svis(3) with VIS_CTYLE and VIS_OCTAL:
   | ^ & ; < > ( ) $ ` \ " ' <tab> <newline>
This allows a non buggy unvis(1) to decode it 100% and stays compatible with
how dhcpcd used to handle encoding on most platforms.
For systems that supply svis(3) there is a code reduction, for systems that
do not, a slight code increase.

This change mitigates systems affected by bash CVE-2014-6271 and CVE-2014-7169.

11 years agoEnsure servername and bootfile are safely exported.
Roy Marples [Thu, 25 Sep 2014 22:29:01 +0000 (22:29 +0000)] 
Ensure servername and bootfile are safely exported.

11 years agoDocument DELEGATED6.
Roy Marples [Wed, 24 Sep 2014 13:05:50 +0000 (13:05 +0000)] 
Document DELEGATED6.

11 years agoWhitespace
Roy Marples [Wed, 24 Sep 2014 13:03:11 +0000 (13:03 +0000)] 
Whitespace

11 years agoIf a lease has no timers, expire it right away.
Roy Marples [Wed, 24 Sep 2014 12:23:30 +0000 (12:23 +0000)] 
If a lease has no timers, expire it right away.

11 years agoUse ctx options rather than ifp for lease dumping.
Roy Marples [Wed, 24 Sep 2014 10:15:36 +0000 (10:15 +0000)] 
Use ctx options rather than ifp for lease dumping.

11 years agoDon't discard expired leases when dumping.
Roy Marples [Wed, 24 Sep 2014 09:49:09 +0000 (09:49 +0000)] 
Don't discard expired leases when dumping.

11 years agoWe don't need to pass a signal handling function.
Roy Marples [Tue, 23 Sep 2014 09:08:17 +0000 (09:08 +0000)] 
We don't need to pass a signal handling function.

11 years agoFix some sign mismatch errors.
Roy Marples [Mon, 22 Sep 2014 21:02:21 +0000 (21:02 +0000)] 
Fix some sign mismatch errors.

11 years agoFix configure errors without pkg-config installed.
Roy Marples [Mon, 22 Sep 2014 13:57:58 +0000 (13:57 +0000)] 
Fix configure errors without pkg-config installed.

11 years agoDetect IPv6 route deletion on Linux.
Roy Marples [Mon, 22 Sep 2014 10:50:30 +0000 (10:50 +0000)] 
Detect IPv6 route deletion on Linux.

11 years agoFix compile on Linux.
Roy Marples [Mon, 22 Sep 2014 10:27:57 +0000 (10:27 +0000)] 
Fix compile on Linux.

11 years agoWe can't add link-local addresses to POINTOPOINT interfaces,
Roy Marples [Mon, 22 Sep 2014 10:03:03 +0000 (10:03 +0000)] 
We can't add link-local addresses to POINTOPOINT interfaces,
the PPP process has to.
Fixes [8fb17a419d].

11 years agoDetect removal of IPv6 routes on BSD
Roy Marples [Mon, 22 Sep 2014 09:33:29 +0000 (09:33 +0000)] 
Detect removal of IPv6 routes on BSD

11 years agoOnly hunt for a cross compiler if build != host.
Roy Marples [Sun, 21 Sep 2014 20:09:25 +0000 (20:09 +0000)] 
Only hunt for a cross compiler if build != host.

11 years agoRevert faulty patch
Roy Marples [Sun, 21 Sep 2014 20:05:20 +0000 (20:05 +0000)] 
Revert faulty patch

11 years agoOnly hunt for a cross compiler if build != host.
Roy Marples [Sun, 21 Sep 2014 20:01:53 +0000 (20:01 +0000)] 
Only hunt for a cross compiler if build != host.

11 years agoBring back inline in be*enc,dec as it's in a header.
Roy Marples [Sun, 21 Sep 2014 19:50:57 +0000 (19:50 +0000)] 
Bring back inline in be*enc,dec as it's in a header.

11 years agoRedirect fd 3 to config.log.
Roy Marples [Sun, 21 Sep 2014 11:39:02 +0000 (11:39 +0000)] 
Redirect fd 3 to config.log.
Redirect all CC errors to fd 3.

11 years agoCheck that CC works after applying all our CPPFLAGS and CFLAGS as one
Roy Marples [Sun, 21 Sep 2014 10:28:54 +0000 (10:28 +0000)] 
Check that CC works after applying all our CPPFLAGS and CFLAGS as one
of them might stop CC from working.

11 years agoRelease dhcpcd-6.4.5 v6.4.5
Roy Marples [Thu, 18 Sep 2014 20:33:46 +0000 (20:33 +0000)] 
Release dhcpcd-6.4.5

11 years agoRemove some inline keywords, let the compiler work it out better.
Roy Marples [Thu, 18 Sep 2014 15:12:45 +0000 (15:12 +0000)] 
Remove some inline keywords, let the compiler work it out better.

11 years agoCheck we have allocated IPv6 resources before checkings RA's.
Roy Marples [Thu, 18 Sep 2014 13:38:46 +0000 (13:38 +0000)] 
Check we have allocated IPv6 resources before checkings RA's.
Fixes [1e770ea479].

11 years agoAdd _DEFAULT_SOURCE #define to linux builds so glibc-2.20 stops bitching about _BSD_S...
Roy Marples [Thu, 18 Sep 2014 09:06:51 +0000 (09:06 +0000)] 
Add _DEFAULT_SOURCE #define to linux builds so glibc-2.20 stops bitching about _BSD_SOURCE

11 years agoRemove linux/ipv6.h from everywhere except ipv6.h.
Roy Marples [Thu, 18 Sep 2014 08:52:46 +0000 (08:52 +0000)] 
Remove linux/ipv6.h from everywhere except ipv6.h.
Only bring in linux/ipv6.h if linux AND glibc.

11 years agoRemove all caddr_t usage
Roy Marples [Thu, 18 Sep 2014 08:46:10 +0000 (08:46 +0000)] 
Remove all caddr_t usage

11 years agoRemove some caddr_t usage.
Roy Marples [Thu, 18 Sep 2014 08:42:41 +0000 (08:42 +0000)] 
Remove some caddr_t usage.

11 years agoClean up some compile errors.
Roy Marples [Thu, 18 Sep 2014 08:12:43 +0000 (08:12 +0000)] 
Clean up some compile errors.

11 years agoFix compile on BSD
Roy Marples [Thu, 18 Sep 2014 07:02:43 +0000 (07:02 +0000)] 
Fix compile on BSD

11 years agoRemove all instances of if_indextoname and add a replacement
Roy Marples [Thu, 18 Sep 2014 00:35:03 +0000 (00:35 +0000)] 
Remove all instances of if_indextoname and add a replacement
if_findindex as we should already have the interface at this point.

11 years agoRelease dhcpcd-6.4.4 v6.4.4
Roy Marples [Tue, 16 Sep 2014 22:09:42 +0000 (22:09 +0000)] 
Release dhcpcd-6.4.4

11 years agoFix a memory leak handling carrier drops with a psuedo interface.
Roy Marples [Tue, 16 Sep 2014 14:00:25 +0000 (14:00 +0000)] 
Fix a memory leak handling carrier drops with a psuedo interface.

11 years agoThis fix is wrong, real fix in libdhcpcd.
Roy Marples [Tue, 16 Sep 2014 10:22:24 +0000 (10:22 +0000)] 
This fix is wrong, real fix in libdhcpcd.

11 years agoRemove dead code.
Roy Marples [Tue, 16 Sep 2014 00:12:30 +0000 (00:12 +0000)] 
Remove dead code.

11 years agoRandomise IPv4 static setup as well so we don't pick up the kernel delete message...
Roy Marples [Mon, 15 Sep 2014 23:47:01 +0000 (23:47 +0000)] 
Randomise IPv4 static setup as well so we don't pick up the kernel delete message on rebooting.

11 years agoIt's possible to configure a Linux kernel with nl80211 where the
Roy Marples [Mon, 15 Sep 2014 23:05:20 +0000 (23:05 +0000)] 
It's possible to configure a Linux kernel with nl80211 where the
SSID won't be reported, but is available via WEXT.
This is very silly, but dhcpcd still needs to work.
Thus enable both protocols and use nl80211 if WEXT fails.

11 years agoFix FD_LISTEN | FD_UNPRIV flags
Roy Marples [Mon, 15 Sep 2014 22:50:44 +0000 (22:50 +0000)] 
Fix FD_LISTEN | FD_UNPRIV flags

11 years agoThe args sent from control socket do not include a program in argv[0]
Roy Marples [Mon, 15 Sep 2014 22:35:00 +0000 (22:35 +0000)] 
The args sent from control socket do not include a program in argv[0]
so we need to adjustem them to pretend that they do.
Tests show that getopt(3) doesn't look at argv[0] so it's safe(ish).

11 years agoBack out mistaken commit
Roy Marples [Mon, 15 Sep 2014 08:16:36 +0000 (08:16 +0000)] 
Back out mistaken commit

11 years agoDescribe master mode some more.
Roy Marples [Mon, 15 Sep 2014 08:13:45 +0000 (08:13 +0000)] 
Describe master mode some more.

11 years agoAdd an unprivileged control socket so that normal users can
Roy Marples [Sun, 14 Sep 2014 19:12:57 +0000 (19:12 +0000)] 
Add an unprivileged control socket so that normal users can
obtain dhcpcd running state.

11 years agoFix compile without -DINET6
Roy Marples [Sun, 14 Sep 2014 06:53:13 +0000 (06:53 +0000)] 
Fix compile without -DINET6

11 years agoAdd wpa_supplicant_driver option for nl80211 users.
Roy Marples [Sat, 13 Sep 2014 23:42:18 +0000 (23:42 +0000)] 
Add wpa_supplicant_driver option for nl80211 users.

11 years agoNo longer need the header stdarg.h
Roy Marples [Sat, 13 Sep 2014 14:57:45 +0000 (14:57 +0000)] 
No longer need the header stdarg.h

11 years agoPunt this now un-used function eloop_q_timeouts_delete
Roy Marples [Sat, 13 Sep 2014 14:55:55 +0000 (14:55 +0000)] 
Punt this now un-used function eloop_q_timeouts_delete

11 years agoFix typo [afadc40198]
Roy Marples [Sat, 13 Sep 2014 14:21:13 +0000 (14:21 +0000)] 
Fix typo [afadc40198]

11 years agoFix expire and re-solicit on drop
Roy Marples [Fri, 12 Sep 2014 13:26:28 +0000 (13:26 +0000)] 
Fix expire and re-solicit on drop

11 years agoSVCNAME -> RC_SVCNAME
Roy Marples [Fri, 12 Sep 2014 08:34:47 +0000 (08:34 +0000)] 
SVCNAME -> RC_SVCNAME

11 years agoRevert [2a977647fe24819f38b64c8ed7257c0bc27c8328] because if the
Roy Marples [Thu, 11 Sep 2014 14:30:52 +0000 (14:30 +0000)] 
Revert [2a977647fe24819f38b64c8ed7257c0bc27c8328] because if the
services are touched in anyway by an exit hook their status might not
be entirely accurate.
Fixes some issues with parallel service management systems.

11 years agoImprove the waitip test.
Roy Marples [Thu, 11 Sep 2014 13:29:56 +0000 (13:29 +0000)] 
Improve the waitip test.

11 years agoWe should always have the flags variable.
Roy Marples [Thu, 11 Sep 2014 12:33:57 +0000 (12:33 +0000)] 
We should always have the flags variable.

11 years agoFix more clang analyzer errors.
Roy Marples [Thu, 11 Sep 2014 11:37:10 +0000 (11:37 +0000)] 
Fix more clang analyzer errors.

11 years agoFix some clang analyzer errors
Roy Marples [Thu, 11 Sep 2014 11:02:37 +0000 (11:02 +0000)] 
Fix some clang analyzer errors