]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
9 years agoOnly mask off the signals we are interested in catching.
Roy Marples [Fri, 12 Aug 2016 16:34:01 +0000 (16:34 +0000)] 
Only mask off the signals we are interested in catching.

9 years agoAdd more notes about BSD OS issues with prefix lifetimes.
Roy Marples [Sun, 7 Aug 2016 21:06:39 +0000 (21:06 +0000)] 
Add more notes about BSD OS issues with prefix lifetimes.

9 years agoSet route flags for IPv6 routes, allowing RTF_REJECT to work again.
Roy Marples [Sun, 7 Aug 2016 20:47:57 +0000 (20:47 +0000)] 
Set route flags for IPv6 routes, allowing RTF_REJECT to work again.
Thanks to Guy Yur.

9 years agoFix the gateway to the route interface for IPv6 routes.
Roy Marples [Sat, 6 Aug 2016 23:00:50 +0000 (23:00 +0000)] 
Fix the gateway to the route interface for IPv6 routes.
Thanks to Guy Yur.

9 years agoNote that the prior issue was fixed in OpenBSD-5.9
Roy Marples [Fri, 5 Aug 2016 12:56:02 +0000 (12:56 +0000)] 
Note that the prior issue was fixed in OpenBSD-5.9

9 years agoWorkaround an issue on BSD where the kernel pretends a freshly added address is from...
Roy Marples [Fri, 5 Aug 2016 09:41:51 +0000 (09:41 +0000)] 
Workaround an issue on BSD where the kernel pretends a freshly added address is from a RA and uses it's liftetime for the prefix route.
See comments in the changeset for more details.

9 years agoExpire IPv6 RA Prefix routes.
Roy Marples [Wed, 3 Aug 2016 20:38:31 +0000 (20:38 +0000)] 
Expire IPv6 RA Prefix routes.

9 years agoChange wording on non dhcpcd removed addresses and routes.
Roy Marples [Wed, 3 Aug 2016 20:31:09 +0000 (20:31 +0000)] 
Change wording on non dhcpcd removed addresses and routes.

9 years agoRelease dhcpcd-6.11.2 v6.11.2
Roy Marples [Fri, 29 Jul 2016 09:35:48 +0000 (09:35 +0000)] 
Release dhcpcd-6.11.2

9 years agoWhen deactivating an interface, set the carrier to unknown as it's no longer being...
Roy Marples [Thu, 28 Jul 2016 13:10:20 +0000 (13:10 +0000)] 
When deactivating an interface, set the carrier to unknown as it's no longer being tracked.
Thanks to Koichi Okamoto.

9 years agoEnsure sockaddrs are zero's correctly.
Roy Marples [Thu, 28 Jul 2016 10:58:22 +0000 (10:58 +0000)] 
Ensure sockaddrs are zero's correctly.

9 years agoSimplify BSD routing by having a common function to make the message
Roy Marples [Thu, 28 Jul 2016 10:51:36 +0000 (10:51 +0000)] 
Simplify BSD routing by having a common function to make the message
and the IP specific routines just generating the sockaddrs and flags.

9 years agoAllow resolvconf to be user tunable.
Roy Marples [Thu, 28 Jul 2016 10:02:42 +0000 (10:02 +0000)] 
Allow resolvconf to be user tunable.

9 years agoAdd --inactive which makes all interfaces inactive on initial start.
Roy Marples [Wed, 27 Jul 2016 16:47:34 +0000 (16:47 +0000)] 
Add --inactive which makes all interfaces inactive on initial start.
Subsequent dhcpcd commands will start each interface.

9 years agoAdd some commentary for ALIAS_ADDR remove and unused define.
Roy Marples [Wed, 27 Jul 2016 15:46:53 +0000 (15:46 +0000)] 
Add some commentary for ALIAS_ADDR remove and unused define.

9 years agoWhen aliasing to an existing address, check it is already aliased.
Roy Marples [Wed, 27 Jul 2016 15:39:29 +0000 (15:39 +0000)] 
When aliasing to an existing address, check it is already aliased.
Add debug to say which alias will use the address.
Fixes Solaris.

9 years agoAlways check if_addrflags{,6}() error of -1.
Roy Marples [Wed, 27 Jul 2016 08:55:42 +0000 (08:55 +0000)] 
Always check if_addrflags{,6}() error of -1.
While here, fix compile on OpenBSD.

9 years agoFix compile
Roy Marples [Wed, 27 Jul 2016 08:09:34 +0000 (08:09 +0000)] 
Fix compile

9 years agoFix expiration of a single default router with static routes.
Roy Marples [Wed, 27 Jul 2016 05:29:09 +0000 (05:29 +0000)] 
Fix expiration of a single default router with static routes.

9 years agoFix aliasing on Solaris.
Roy Marples [Wed, 27 Jul 2016 04:59:32 +0000 (04:59 +0000)] 
Fix aliasing on Solaris.

9 years ago#undef RTF_CLONING for Solaris in if.h so it's picked up everywhere.
Roy Marples [Wed, 27 Jul 2016 04:11:00 +0000 (04:11 +0000)] 
#undef RTF_CLONING for Solaris in if.h so it's picked up everywhere.

9 years agoSolaris can disable LL generation, so we can add our own view.
Roy Marples [Wed, 27 Jul 2016 03:57:52 +0000 (03:57 +0000)] 
Solaris can disable LL generation, so we can add our own view.

9 years agoJuggle #define ordering.
Roy Marples [Wed, 27 Jul 2016 03:54:22 +0000 (03:54 +0000)] 
Juggle #define ordering.
Note that Solaris does not support routes from the ip address to localhost.

9 years agoSync Solaris driver to latest API.
Roy Marples [Tue, 26 Jul 2016 21:18:03 +0000 (21:18 +0000)] 
Sync Solaris driver to latest API.
Simplify generating route messages and address management.
As of now, this should mostly work :)

9 years agoSolaris doesn't really have a machine/arch afaik.
Roy Marples [Tue, 26 Jul 2016 21:11:32 +0000 (21:11 +0000)] 
Solaris doesn't really have a machine/arch afaik.

9 years agoRemove Solaris IN6_IFF_* defines from configure and add the to ipv6.h,
Roy Marples [Tue, 26 Jul 2016 21:09:35 +0000 (21:09 +0000)] 
Remove Solaris IN6_IFF_* defines from configure and add the to ipv6.h,
similar to Linux.
While here, add IN_IFF_* counter-parts in ipv4.h.

9 years agoFix a crash accidently introduced prior patch.
Roy Marples [Tue, 26 Jul 2016 21:05:18 +0000 (21:05 +0000)] 
Fix a crash accidently introduced prior patch.

9 years agoFix compile on BSD.
Roy Marples [Tue, 26 Jul 2016 20:55:42 +0000 (20:55 +0000)] 
Fix compile on BSD.

9 years agoSimplify handling of IPv6 address from kernel messages, similar to IPv4.
Roy Marples [Tue, 26 Jul 2016 20:52:31 +0000 (20:52 +0000)] 
Simplify handling of IPv6 address from kernel messages, similar to IPv4.
While here, drop the flags argument from the ifa routines.
Instead, grab it in the main ifa handler - it was only for IPv6 addresses
in Linux anyway.

9 years agoFix compile on BSD.
Roy Marples [Tue, 26 Jul 2016 19:12:21 +0000 (19:12 +0000)] 
Fix compile on BSD.

9 years agoBecause struct rt has src addr, we no longer need ipv4_srcaddr.
Roy Marples [Tue, 26 Jul 2016 19:06:54 +0000 (19:06 +0000)] 
Because struct rt has src addr, we no longer need ipv4_srcaddr.
While here, add src to struct rt6 as well for future use.

9 years agouname always returns -1 on error on all supported platforms, so test for that.
Roy Marples [Tue, 26 Jul 2016 15:52:15 +0000 (15:52 +0000)] 
uname always returns -1 on error on all supported platforms, so test for that.

9 years agoAdd support for adding/deleting routes in Solaris.
Roy Marples [Sat, 23 Jul 2016 13:36:51 +0000 (13:36 +0000)] 
Add support for adding/deleting routes in Solaris.
This currently failes with EINVAL, and am unsure why.

9 years agoMatch if_address
Roy Marples [Fri, 22 Jul 2016 21:01:24 +0000 (21:01 +0000)] 
Match if_address

9 years agoAdd initial support for aliased addresses on Solaris.
Roy Marples [Fri, 22 Jul 2016 20:59:04 +0000 (20:59 +0000)] 
Add initial support for aliased addresses on Solaris.

9 years agoFree after logging error incase free generates an error.
Roy Marples [Thu, 21 Jul 2016 08:50:48 +0000 (08:50 +0000)] 
Free after logging error incase free generates an error.

9 years agoRelease option memory if there is a problem allocating a large
Roy Marples [Thu, 21 Jul 2016 08:45:00 +0000 (08:45 +0000)] 
Release option memory if there is a problem allocating a large
enough buffer to read the file.
Thanks to Koichi Okamoto for the initial patch.

9 years agoNeed this header for strtoi.
Roy Marples [Thu, 21 Jul 2016 08:40:43 +0000 (08:40 +0000)] 
Need this header for strtoi.

9 years agoFix BYTE_ORDER for Solaris which does not define it readily.
Roy Marples [Mon, 18 Jul 2016 13:13:40 +0000 (13:13 +0000)] 
Fix BYTE_ORDER for Solaris which does not define it readily.

9 years agoAdd if_nametospec helper to decode and interface name such as bge1:2 into
Roy Marples [Mon, 18 Jul 2016 10:53:45 +0000 (10:53 +0000)] 
Add if_nametospec helper to decode and interface name such as bge1:2 into
device name, lun, ppa and driver name.
Use this function when discovering addresesses and when they arrive
via the kernel listening socket so they can be assigned to the correct
physical interface.

This change does also stop `dhcpcd eth0:1` working on Linux, but is needed
for basic Solaris support.

9 years agoFix API for sun.
Roy Marples [Sun, 17 Jul 2016 14:35:11 +0000 (14:35 +0000)] 
Fix API for sun.

9 years agoApply command line options to profile.
Roy Marples [Fri, 8 Jul 2016 19:44:18 +0000 (19:44 +0000)] 
Apply command line options to profile.
Fixes [87d9d6b583].

9 years agoDon't add our own IPv6 LLADDR if the OS doesn't allow us turning the OS doing it...
Roy Marples [Thu, 30 Jun 2016 10:39:28 +0000 (10:39 +0000)] 
Don't add our own IPv6 LLADDR if the OS doesn't allow us turning the OS doing it off.

9 years agoClarify udp_len being out of bounds checked.
Roy Marples [Tue, 28 Jun 2016 12:32:16 +0000 (12:32 +0000)] 
Clarify udp_len being out of bounds checked.

9 years agoRevert [da213b6490] because the fd we're reading from could be a generic
Roy Marples [Tue, 28 Jun 2016 12:22:51 +0000 (12:22 +0000)] 
Revert [da213b6490] because the fd we're reading from could be a generic
file descriptor and have no concept of packet boundaries
(this is true for BPF).
Re-implement, but cleaner and with more commentary.

9 years agoFix spelling mistakes, [944ac40b82].
Roy Marples [Mon, 27 Jun 2016 15:40:57 +0000 (15:40 +0000)] 
Fix spelling mistakes, [944ac40b82].

9 years agoCheck we have an assigned address when an ARP conflict occurs to avoid a NULL
Roy Marples [Sat, 25 Jun 2016 11:43:58 +0000 (11:43 +0000)] 
Check we have an assigned address when an ARP conflict occurs to avoid a NULL
pointer deference. Fixes [61803be50b].

9 years agoAllow pkg-config to be host selectable like the compiler.
Roy Marples [Tue, 21 Jun 2016 08:39:19 +0000 (08:39 +0000)] 
Allow pkg-config to be host selectable like the compiler.
Tjhanks to Heiko Becker <heirecka@exherbo.org>.

9 years agoRework prior so it works.
Roy Marples [Mon, 20 Jun 2016 13:02:35 +0000 (13:02 +0000)] 
Rework prior so it works.

9 years agoAllow the possibility to exclude the vendor class option.
Roy Marples [Mon, 20 Jun 2016 12:34:27 +0000 (12:34 +0000)] 
Allow the possibility to exclude the vendor class option.

9 years agoRelease dhcpcd-6.11.1 v6.11.1
Roy Marples [Fri, 17 Jun 2016 19:08:33 +0000 (19:08 +0000)] 
Release dhcpcd-6.11.1

9 years agoRemove mistakenly added debug.
Roy Marples [Thu, 16 Jun 2016 08:28:34 +0000 (08:28 +0000)] 
Remove mistakenly added debug.

9 years agoHostname documentation fixes, thanks to Olaf Seibert.
Roy Marples [Tue, 14 Jun 2016 21:54:24 +0000 (21:54 +0000)] 
Hostname documentation fixes, thanks to Olaf Seibert.

9 years agoRemove debug mistakenly added, [c4df3c6b97].
Roy Marples [Fri, 10 Jun 2016 09:15:12 +0000 (09:15 +0000)] 
Remove debug mistakenly added, [c4df3c6b97].

9 years agoAlways set the aquired time for renewed delegated addreses, fixes [c4df3c6b97].
Roy Marples [Fri, 10 Jun 2016 09:01:25 +0000 (09:01 +0000)] 
Always set the aquired time for renewed delegated addreses, fixes [c4df3c6b97].

9 years agoOnly log the once we have logged the delegated prefix.
Roy Marples [Fri, 10 Jun 2016 08:56:00 +0000 (08:56 +0000)] 
Only log the once we have logged the delegated prefix.

9 years agoAlways show the prefix we are delegated in debug, aids [c4df3c6b97].
Roy Marples [Wed, 8 Jun 2016 11:30:38 +0000 (11:30 +0000)] 
Always show the prefix we are delegated in debug, aids [c4df3c6b97].

9 years agoReserve enough space for a fully escaped SSID.
Roy Marples [Tue, 7 Jun 2016 19:09:39 +0000 (19:09 +0000)] 
Reserve enough space for a fully escaped SSID.

9 years agoAllow an SLA 0 and prefix length of 0 to delegate the whole prefix which
Roy Marples [Wed, 1 Jun 2016 06:21:04 +0000 (06:21 +0000)] 
Allow an SLA 0 and prefix length of 0 to delegate the whole prefix which
allows the following config:
ia_pd 1 wm1/0

9 years agoAdd lastlease informational message.
Roy Marples [Wed, 1 Jun 2016 05:44:47 +0000 (05:44 +0000)] 
Add lastlease informational message.

9 years agoWe can work with saved leases without a full vendor area.
Roy Marples [Wed, 1 Jun 2016 05:44:22 +0000 (05:44 +0000)] 
We can work with saved leases without a full vendor area.

9 years agoDon't drop DHCPv6 if we have a delegated address on router expiry.
Roy Marples [Thu, 26 May 2016 08:54:45 +0000 (08:54 +0000)] 
Don't drop DHCPv6 if we have a delegated address on router expiry.

9 years agoRemove debug
Roy Marples [Wed, 25 May 2016 19:58:00 +0000 (19:58 +0000)] 
Remove debug

9 years agoReport the first non requested address.
Roy Marples [Wed, 25 May 2016 19:54:07 +0000 (19:54 +0000)] 
Report the first non requested address.

9 years agoEnsure mask and bcast as always set.
Roy Marples [Wed, 25 May 2016 13:50:05 +0000 (13:50 +0000)] 
Ensure mask and bcast as always set.

9 years agoCalc requested netmask at start rather than in get_lease.
Roy Marples [Wed, 25 May 2016 10:35:52 +0000 (10:35 +0000)] 
Calc requested netmask at start rather than in get_lease.
If we didn't request a specific address, use the existing address
netmask and broadcast addresses rather than any given by DHCP.

9 years agoFix some routing issues for POINTOPOINT interfaces.
Roy Marples [Wed, 25 May 2016 10:32:39 +0000 (10:32 +0000)] 
Fix some routing issues for POINTOPOINT interfaces.

9 years agoDisable ARP for POINTOPOINT.
Roy Marples [Wed, 25 May 2016 09:38:51 +0000 (09:38 +0000)] 
Disable ARP for POINTOPOINT.

9 years agoWe need to store INADDR_ANY addresses for Solaris.
Roy Marples [Tue, 24 May 2016 13:02:31 +0000 (13:02 +0000)] 
We need to store INADDR_ANY addresses for Solaris.

9 years agoConstity and void
Roy Marples [Mon, 23 May 2016 20:08:57 +0000 (20:08 +0000)] 
Constity and void

9 years agoRestore setting of secs.
Roy Marples [Mon, 23 May 2016 19:32:18 +0000 (19:32 +0000)] 
Restore setting of secs.

9 years agoTest for hostname_fqdn being set to server (new preferred value) or blank
Roy Marples [Mon, 23 May 2016 19:27:30 +0000 (19:27 +0000)] 
Test for hostname_fqdn being set to server (new preferred value) or blank
(old value). Thanks to Paul Walrath.

9 years agoDon't create blank dns entries, thanks to Jacques.
Roy Marples [Mon, 23 May 2016 19:17:14 +0000 (19:17 +0000)] 
Don't create blank dns entries, thanks to Jacques.

9 years agoConstify and fix alignment.
Roy Marples [Mon, 23 May 2016 15:41:48 +0000 (15:41 +0000)] 
Constify and fix alignment.

9 years agoAdd support for parsing route messages on Solaris - similar to BSD.
Roy Marples [Fri, 20 May 2016 16:00:33 +0000 (16:00 +0000)] 
Add support for parsing route messages on Solaris - similar to BSD.

9 years agowhitespace police.
Roy Marples [Fri, 20 May 2016 15:57:49 +0000 (15:57 +0000)] 
whitespace police.

9 years agoUse more void.
Roy Marples [Thu, 19 May 2016 21:12:26 +0000 (21:12 +0000)] 
Use more void.

9 years agoFix adding static address masks.
Roy Marples [Thu, 19 May 2016 20:50:15 +0000 (20:50 +0000)] 
Fix adding static address masks.

9 years agoFix compile
Roy Marples [Thu, 19 May 2016 20:29:24 +0000 (20:29 +0000)] 
Fix compile

9 years agoSpit handlelink into smaller functions to increase read-ability.
Roy Marples [Thu, 19 May 2016 20:27:07 +0000 (20:27 +0000)] 
Spit handlelink into smaller functions to increase read-ability.

9 years agoSpecify AF_UNPSEC
Roy Marples [Thu, 19 May 2016 15:32:20 +0000 (15:32 +0000)] 
Specify AF_UNPSEC

9 years agoFix compile.
Roy Marples [Thu, 19 May 2016 15:21:14 +0000 (15:21 +0000)] 
Fix compile.

9 years agoProvide a better getifaddrs(3).
Roy Marples [Thu, 19 May 2016 15:10:26 +0000 (15:10 +0000)] 
Provide a better getifaddrs(3).

9 years agoFix a compile issue adding loopback routes.
Roy Marples [Thu, 19 May 2016 15:07:52 +0000 (15:07 +0000)] 
Fix a compile issue adding loopback routes.

9 years agomanagelink -> hanlelink
Roy Marples [Thu, 19 May 2016 15:01:47 +0000 (15:01 +0000)] 
managelink -> hanlelink

9 years agoUse named initialiser.
Roy Marples [Thu, 19 May 2016 12:56:06 +0000 (12:56 +0000)] 
Use named initialiser.

9 years agoGrab the state before freeing the address.
Roy Marples [Thu, 19 May 2016 09:15:46 +0000 (09:15 +0000)] 
Grab the state before freeing the address.

9 years agoFix compile on NetBSD.
Roy Marples [Thu, 19 May 2016 08:38:13 +0000 (08:38 +0000)] 
Fix compile on NetBSD.

9 years agoFix compile
Roy Marples [Wed, 18 May 2016 19:41:19 +0000 (19:41 +0000)] 
Fix compile

9 years agoFix requesting a lease witout an existing address.
Roy Marples [Wed, 18 May 2016 16:40:28 +0000 (16:40 +0000)] 
Fix requesting a lease witout an existing address.

9 years agoFix compile
Roy Marples [Wed, 18 May 2016 16:27:39 +0000 (16:27 +0000)] 
Fix compile

9 years agoRework if_address to just use an ipv4_addr structure, similar to how
Roy Marples [Wed, 18 May 2016 16:23:28 +0000 (16:23 +0000)] 
Rework if_address to just use an ipv4_addr structure, similar to how
if_address6 works.
Use a pointer to the ipv4_addr for the address we added for dhcp and ipv4ll
states.
This is quite some churn throughout the IPv4 stack, but makes the
binary smaller (at least on Linux/amd64).
It will be needed to support adding addresses on Solaris.

9 years agomask is more descriptive than net. Churn.
Roy Marples [Tue, 17 May 2016 21:13:49 +0000 (21:13 +0000)] 
mask is more descriptive than net. Churn.

9 years agoSet correct netmask for INFORM as requested.
Roy Marples [Tue, 17 May 2016 20:53:42 +0000 (20:53 +0000)] 
Set correct netmask for INFORM as requested.
Ignore netmask and broadcast addresses when INFORMing.

9 years agoUse DLPI to send and receive ARP and BOOTP packets.
Roy Marples [Tue, 17 May 2016 20:26:09 +0000 (20:26 +0000)] 
Use DLPI to send and receive ARP and BOOTP packets.
Use pfmod to filter the packets we want in the kernel.

9 years agoOnly accept BOOTREPLY.
Roy Marples [Mon, 16 May 2016 15:43:23 +0000 (15:43 +0000)] 
Only accept BOOTREPLY.

9 years agoMore DHCP -> BOOTP.
Roy Marples [Mon, 16 May 2016 15:19:28 +0000 (15:19 +0000)] 
More DHCP -> BOOTP.

9 years agodhcp_bpf_filter -> bootp_bpf_filter (and DHCP -> BOOTP for ports).
Roy Marples [Sat, 14 May 2016 16:35:23 +0000 (16:35 +0000)] 
dhcp_bpf_filter -> bootp_bpf_filter (and DHCP -> BOOTP for ports).

9 years agoNo point in looping on the raw socket anymore thanks to eloop.
Roy Marples [Sat, 14 May 2016 12:57:32 +0000 (12:57 +0000)] 
No point in looping on the raw socket anymore thanks to eloop.
This allows endless DHCP / ARP to be interuptable.

9 years agoUse UNCONST
Roy Marples [Sat, 14 May 2016 10:38:15 +0000 (10:38 +0000)] 
Use UNCONST