]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoAndroid ships buggy ICMP6 filter headers.
Roy Marples [Thu, 12 Dec 2013 13:33:09 +0000 (13:33 +0000)] 
Android ships buggy ICMP6 filter headers.
Supply our own until they fix their shit.

11 years agoFix NAK backoff
Roy Marples [Thu, 12 Dec 2013 10:24:14 +0000 (10:24 +0000)] 
Fix NAK backoff

11 years agoFix sending of DHCPv6 FQDN when only hostname specified
Roy Marples [Tue, 10 Dec 2013 13:15:19 +0000 (13:15 +0000)] 
Fix sending of DHCPv6 FQDN when only hostname specified

11 years agoDon't request a DHCPv6 lease when testing
Roy Marples [Tue, 10 Dec 2013 12:28:38 +0000 (12:28 +0000)] 
Don't request a DHCPv6 lease when testing

11 years agoFix some memory issues.
Roy Marples [Fri, 6 Dec 2013 19:56:04 +0000 (19:56 +0000)] 
Fix some memory issues.

11 years agoFix vendor options a litle
Roy Marples [Fri, 6 Dec 2013 19:15:06 +0000 (19:15 +0000)] 
Fix vendor options a litle

11 years agoAdd support for RFC3925 Vendor-Identifying Vendor Options
Roy Marples [Fri, 6 Dec 2013 17:47:53 +0000 (17:47 +0000)] 
Add support for RFC3925 Vendor-Identifying Vendor Options

11 years agoNow that we only use dhcpcd-definitions.conf, remove te static var union.
Roy Marples [Fri, 6 Dec 2013 17:47:52 +0000 (17:47 +0000)] 
Now that we only use dhcpcd-definitions.conf, remove te static var union.

11 years agoFix a compile warning
Roy Marples [Thu, 5 Dec 2013 00:40:03 +0000 (00:40 +0000)] 
Fix a compile warning

11 years agoPedantic change
Roy Marples [Wed, 4 Dec 2013 13:21:45 +0000 (13:21 +0000)] 
Pedantic change

11 years agoFix some memory errors
Roy Marples [Wed, 4 Dec 2013 10:48:22 +0000 (10:48 +0000)] 
Fix some memory errors

11 years agoRemove dead options
Roy Marples [Tue, 3 Dec 2013 23:38:00 +0000 (23:38 +0000)] 
Remove dead options

11 years agoFix brain damage
Roy Marples [Tue, 3 Dec 2013 23:33:13 +0000 (23:33 +0000)] 
Fix brain damage

11 years agoFix a few memory leaks, DHCPv6 prefix definition and the -V option.
Roy Marples [Tue, 3 Dec 2013 23:10:21 +0000 (23:10 +0000)] 
Fix a few memory leaks, DHCPv6 prefix definition and the -V option.

11 years agoFix encapsulated options.
Roy Marples [Tue, 3 Dec 2013 17:55:40 +0000 (17:55 +0000)] 
Fix encapsulated options.
IA_NA, IA_TA and IA_PD can now be expressed fully in our config :)

11 years agoFix a crash freeing our embedded config
Roy Marples [Mon, 2 Dec 2013 20:45:19 +0000 (20:45 +0000)] 
Fix a crash freeing our embedded config

11 years agoMinor correction
Roy Marples [Mon, 2 Dec 2013 17:17:05 +0000 (17:17 +0000)] 
Minor correction

11 years agoRemove hard coded DHCP/DHCPv6 options and then to dhcpcd-definitions.conf
Roy Marples [Mon, 2 Dec 2013 16:42:09 +0000 (16:42 +0000)] 
Remove hard coded DHCP/DHCPv6 options and then to dhcpcd-definitions.conf
This file replaces dhcpcd-embedded.conf
This actually results in a slightly smaller binary than before and has the
added advantage that the option definitions are now all held within one file.

11 years agoIf an embedded or encapsulated option variable differs from the parent
Roy Marples [Mon, 2 Dec 2013 14:34:04 +0000 (14:34 +0000)] 
If an embedded or encapsulated option variable differs from the parent
variable, prefix it with the parent varaible and an underscore.

Document request, norequest and array.

Ignore string arrays.

11 years agoRemove dup type check
Roy Marples [Sun, 1 Dec 2013 17:45:42 +0000 (17:45 +0000)] 
Remove dup type check

11 years agoAllow string and binhex types to have lengths.
Roy Marples [Sun, 1 Dec 2013 17:43:49 +0000 (17:43 +0000)] 
Allow string and binhex types to have lengths.
This is useful when you embed two strings in the same option.

11 years agoFix a warning
Roy Marples [Sat, 30 Nov 2013 09:43:39 +0000 (09:43 +0000)] 
Fix a warning

11 years agoStyle
Roy Marples [Fri, 29 Nov 2013 18:41:02 +0000 (18:41 +0000)] 
Style

11 years agoUse a different buffer for reading our embedded config
Roy Marples [Fri, 29 Nov 2013 18:38:38 +0000 (18:38 +0000)] 
Use a different buffer for reading our embedded config
so we don't lose track of it when dealing with whitespace.

11 years ago-g is more portable than -ggdb
Roy Marples [Fri, 29 Nov 2013 18:38:25 +0000 (18:38 +0000)] 
-g is more portable than -ggdb

11 years agoFix comment about termination correctness.
Roy Marples [Fri, 29 Nov 2013 18:23:39 +0000 (18:23 +0000)] 
Fix comment about termination correctness.

11 years agoRemove whitespace between options
Roy Marples [Fri, 29 Nov 2013 17:38:44 +0000 (17:38 +0000)] 
Remove whitespace between options

11 years agoinitial define lengths are calculated during the make phase
Roy Marples [Fri, 29 Nov 2013 17:10:10 +0000 (17:10 +0000)] 
initial define lengths are calculated during the make phase

11 years agoTrim whitespace between command and argument
Roy Marples [Fri, 29 Nov 2013 17:09:37 +0000 (17:09 +0000)] 
Trim whitespace between command and argument

11 years agoI had no idea what I was smoking when I moved these to dhcp-common.
Roy Marples [Fri, 29 Nov 2013 12:48:52 +0000 (12:48 +0000)] 
I had no idea what I was smoking when I moved these to dhcp-common.
Move them back, mark them static and remove the unused.

11 years agoget_option should not perform length validation based on the option number
Roy Marples [Fri, 29 Nov 2013 12:02:45 +0000 (12:02 +0000)] 
get_option should not perform length validation based on the option number

11 years agoAdd type for rfc3442
Roy Marples [Fri, 29 Nov 2013 12:02:17 +0000 (12:02 +0000)] 
Add type for rfc3442

11 years agoRead the embedded config into global values rather than each time
Roy Marples [Fri, 29 Nov 2013 11:15:03 +0000 (11:15 +0000)] 
Read the embedded config into global values rather than each time
per interface.

Add config toggles to build dhcpcd-embedded.conf into dhcpcd or
to read it at runtime. The build process will now build .c and .h
files based on dhcpcd-embedded.conf and provide defines to reduce
the number or re-allocs if it grows (ie has the full DHCP option list).

11 years agoCheck length before accessing memory to silence valgrind.
Roy Marples [Wed, 27 Nov 2013 21:35:45 +0000 (21:35 +0000)] 
Check length before accessing memory to silence valgrind.

11 years agoFix a crash where we don't care about option length.
Roy Marples [Wed, 27 Nov 2013 21:14:43 +0000 (21:14 +0000)] 
Fix a crash where we don't care about option length.

11 years agoFix debug options and default CFLAGS
Roy Marples [Wed, 27 Nov 2013 21:14:19 +0000 (21:14 +0000)] 
Fix debug options and default CFLAGS

11 years agoAdd support for user defined options with embedded and encapsulated options.
Roy Marples [Wed, 27 Nov 2013 20:21:17 +0000 (20:21 +0000)] 
Add support for user defined options with embedded and encapsulated options.
Install dhcpcd-embedded.conf to LIBEXECDIR which is read before dhcpcd.conf.

The idea is that this dhcpcd-embedded.conf is maintained only by me to support
RFC DHCP/DHCPv6 options that require known embedded or ncapsulated options
which are not easily added to our option structures in dhcp.c and dhcp6.c.
Eventually we may move the whole structure here so that a smaller binary
is produced and the definitions are easier to maintain.

11 years agoFix virtual interfaces without a hardware address.
Roy Marples [Sat, 23 Nov 2013 14:10:00 +0000 (14:10 +0000)] 
Fix virtual interfaces without a hardware address.

11 years agoNote avenue for discussion making PD work with other IA's
Roy Marples [Thu, 21 Nov 2013 08:40:59 +0000 (08:40 +0000)] 
Note avenue for discussion making PD work with other IA's

11 years agoWhen running for a single interface, don't set WAITIP if we are
Roy Marples [Wed, 20 Nov 2013 17:36:41 +0000 (17:36 +0000)] 
When running for a single interface, don't set WAITIP if we are
backgrounding immediatley.

11 years agoWhen releasing, we need to de-configure the interface as well.
Roy Marples [Wed, 20 Nov 2013 11:37:25 +0000 (11:37 +0000)] 
When releasing, we need to de-configure the interface as well.

11 years agoNUL != NULL, so use the correct literal.
Roy Marples [Tue, 19 Nov 2013 09:43:54 +0000 (09:43 +0000)] 
NUL != NULL, so use the correct literal.
Thanks to Joerg Sonnenberger.

11 years agoLinux has had address loopback routes since 2.2
Roy Marples [Sat, 16 Nov 2013 11:55:27 +0000 (11:55 +0000)] 
Linux has had address loopback routes since 2.2
I can't find an easy test for this, so just skip it.

11 years agoDon't log ClientID if using DUID as that's already logged.
Roy Marples [Fri, 15 Nov 2013 16:55:07 +0000 (16:55 +0000)] 
Don't log ClientID if using DUID as that's already logged.

11 years agoChange IAID to default from the last 4 bytes of the MAC address.
Roy Marples [Fri, 15 Nov 2013 16:44:46 +0000 (16:44 +0000)] 
Change IAID to default from the last 4 bytes of the MAC address.
Rationale in the commit, but in a nutshell it allows for a stable
IAID between reboots without persistent storage and across
different OS's who name or number it differently to each other.

11 years agoAllow IAID to be configured in DHCPv4 clientid.
Roy Marples [Fri, 15 Nov 2013 13:43:41 +0000 (13:43 +0000)] 
Allow IAID to be configured in DHCPv4 clientid.
Use this as the default for DHCPv6 IA's as well.
Rename if_iaid to if_ia as it's really an IA containing an IAID.

11 years agoBuild fixes for only INET and only INET6
Roy Marples [Thu, 14 Nov 2013 15:48:07 +0000 (15:48 +0000)] 
Build fixes for only INET and only INET6

11 years agoAvoid pointer gymnastics.
Roy Marples [Thu, 14 Nov 2013 10:29:14 +0000 (10:29 +0000)] 
Avoid pointer gymnastics.
Thanks to Christos Zoulas.

11 years agoCID 1102809: Fix uninitialised variable.
Roy Marples [Thu, 14 Nov 2013 10:20:32 +0000 (10:20 +0000)] 
CID 1102809: Fix uninitialised variable.
Thanks to Christos Zoulas.

11 years agoWhite space, ordering and man corrections.
Roy Marples [Thu, 14 Nov 2013 10:02:29 +0000 (10:02 +0000)] 
White space, ordering and man corrections.
Thanks to Thomas Klausner.

11 years agoImplement RFC4242, Information Refresh Time Option for DHCPv6.
Roy Marples [Tue, 12 Nov 2013 17:30:43 +0000 (17:30 +0000)] 
Implement RFC4242, Information Refresh Time Option for DHCPv6.

11 years agoWarn if dev is started more than once.
Roy Marples [Tue, 12 Nov 2013 17:09:29 +0000 (17:09 +0000)] 
Warn if dev is started more than once.

11 years agoCleanup IPv4 fd opening and closing.
Roy Marples [Tue, 12 Nov 2013 15:00:22 +0000 (15:00 +0000)] 
Cleanup IPv4 fd opening and closing.

11 years agoSet blank CFLAGS/CPPFLAGS and then append user CFLAGS/CPPFLAGS.
Roy Marples [Sun, 10 Nov 2013 11:17:40 +0000 (11:17 +0000)] 
Set blank CFLAGS/CPPFLAGS and then append user CFLAGS/CPPFLAGS.
This allows us to pass them to the configure tests and keep our
sed to extract them portable.

11 years agoFix typo adding CPPFLAGS to XCC.
Roy Marples [Sun, 10 Nov 2013 10:32:01 +0000 (10:32 +0000)] 
Fix typo adding CPPFLAGS to XCC.
Thanks to Michael Forney.

11 years agoFix processing of inet4 addr in vendor options and terminate correctly.
Roy Marples [Fri, 8 Nov 2013 18:28:44 +0000 (18:28 +0000)] 
Fix processing of inet4 addr in vendor options and terminate correctly.

11 years agoPreserve vendor encapsulated options
Roy Marples [Fri, 8 Nov 2013 09:56:54 +0000 (09:56 +0000)] 
Preserve vendor encapsulated options

11 years agoMove the kernel reporting DAD warning to ipv6nd.c to avoid compile spam
Roy Marples [Fri, 8 Nov 2013 09:37:44 +0000 (09:37 +0000)] 
Move the kernel reporting DAD warning to ipv6nd.c to avoid compile spam

11 years agoFix renewal of Prefix Delegation.
Roy Marples [Thu, 10 Oct 2013 10:09:48 +0000 (10:09 +0000)] 
Fix renewal of Prefix Delegation.
Only spam the log if a lease has a new address or changes the vltime
of an existing address.

11 years agoAdd noipv4 and noipv6 options.
Roy Marples [Thu, 10 Oct 2013 09:22:44 +0000 (09:22 +0000)] 
Add noipv4 and noipv6 options.

11 years agoWarn about missing interfaces which require prefix delegation.
Roy Marples [Sun, 6 Oct 2013 16:35:43 +0000 (16:35 +0000)] 
Warn about missing interfaces which require prefix delegation.

Also if a non OK status code is given without any addresses display it
instead of the fact there are missing addresses.

11 years agoIf we timeout, remove any waitip config so that we daemonise
Roy Marples [Sat, 5 Oct 2013 16:28:33 +0000 (16:28 +0000)] 
If we timeout, remove any waitip config so that we daemonise
correctly.

11 years agoFix a small memory leak
Roy Marples [Wed, 2 Oct 2013 08:11:05 +0000 (08:11 +0000)] 
Fix a small memory leak

11 years agoRemove the IPv6 forwarding router check as valid use cases exist
Roy Marples [Wed, 2 Oct 2013 08:00:09 +0000 (08:00 +0000)] 
Remove the IPv6 forwarding router check as valid use cases exist
where you would want IPv6 RS/RA on a router.

11 years agoWe should abort if no specified interfaces are found.
Roy Marples [Fri, 27 Sep 2013 06:23:31 +0000 (06:23 +0000)] 
We should abort if no specified interfaces are found.

11 years agoDon't stop dev management on fork
Roy Marples [Fri, 27 Sep 2013 06:15:32 +0000 (06:15 +0000)] 
Don't stop dev management on fork

11 years agoClarify the timeout behaviour if in master mode or per interface.
Roy Marples [Sat, 21 Sep 2013 19:50:49 +0000 (19:50 +0000)] 
Clarify the timeout behaviour if in master mode or per interface.

11 years agoTest for wpa_supplicant.conf in /etc/wpa_supplicant as well
Roy Marples [Sat, 21 Sep 2013 14:47:17 +0000 (14:47 +0000)] 
Test for wpa_supplicant.conf in /etc/wpa_supplicant as well

11 years agoPass the correct run directory to dhcpcd-run-hooks
Roy Marples [Sat, 21 Sep 2013 14:31:06 +0000 (14:31 +0000)] 
Pass the correct run directory to dhcpcd-run-hooks

11 years agoRelease dhcpcd-6.1.0 v6.1.0
Roy Marples [Fri, 20 Sep 2013 10:27:24 +0000 (10:27 +0000)] 
Release dhcpcd-6.1.0

11 years agoAllow dev to recieve errors from managers handle_device.
Roy Marples [Sat, 14 Sep 2013 08:50:41 +0000 (08:50 +0000)] 
Allow dev to recieve errors from managers handle_device.

11 years agoFix warning
Roy Marples [Thu, 12 Sep 2013 22:11:04 +0000 (22:11 +0000)] 
Fix warning

11 years agoIt seems that some older udev versions support filtering but not
Roy Marples [Thu, 12 Sep 2013 21:43:17 +0000 (21:43 +0000)] 
It seems that some older udev versions support filtering but not
per device initialization checks.
Add a test for this.

11 years agoStart dev after link for a more sane interface rename.
Roy Marples [Thu, 12 Sep 2013 21:35:33 +0000 (21:35 +0000)] 
Start dev after link for a more sane interface rename.
Only start dev in master mode.

11 years agoDev module start now returns an fd to monitor so the eloop additions
Roy Marples [Thu, 12 Sep 2013 21:13:41 +0000 (21:13 +0000)] 
Dev module start now returns an fd to monitor so the eloop additions
can go into dev.c
Create a new struct to pass dhcpcd handle_interface to dev plugins
This allows us to build the dhcpcd binary normally and save a few k
disk space.

11 years agoFix dev building again
Roy Marples [Thu, 12 Sep 2013 17:16:51 +0000 (17:16 +0000)] 
Fix dev building again

11 years agoFix building with a dev manager
Roy Marples [Thu, 12 Sep 2013 17:08:34 +0000 (17:08 +0000)] 
Fix building with a dev manager

11 years agoSupport older udev versions where we need to rely on udev-settle.
Roy Marples [Thu, 12 Sep 2013 16:46:41 +0000 (16:46 +0000)] 
Support older udev versions where we need to rely on udev-settle.

11 years agoInstead of linking directly to libudev, create a plugin system for /dev
Roy Marples [Thu, 12 Sep 2013 15:43:20 +0000 (15:43 +0000)] 
Instead of linking directly to libudev, create a plugin system for /dev
management. This allows dhcpcd to work even if udev removed and adds the
ability to change from udev to something else in the future.

11 years agoInstead of just renaming the interface on Linux, take the FreeBSD
Roy Marples [Tue, 10 Sep 2013 09:56:11 +0000 (09:56 +0000)] 
Instead of just renaming the interface on Linux, take the FreeBSD
approach and remove the old and create a new one.
This simple change allows the the allow/deny rules to be followed.

11 years agoCheck if udev has actually initialized the interface rather than just detecting if...
Roy Marples [Tue, 10 Sep 2013 08:52:45 +0000 (08:52 +0000)] 
Check if udev has actually initialized the interface rather than just detecting if udev has a device node for it.

11 years agoFix compile warning on BSD
Roy Marples [Mon, 9 Sep 2013 23:09:29 +0000 (23:09 +0000)] 
Fix compile warning on BSD

11 years agoFix interface renaming and carrier reporting when using udev
Roy Marples [Mon, 9 Sep 2013 20:22:12 +0000 (20:22 +0000)] 
Fix interface renaming and carrier reporting when using udev

11 years agoImprove udev handling a little.
Roy Marples [Mon, 9 Sep 2013 20:21:03 +0000 (20:21 +0000)] 
Improve udev handling a little.

11 years agoOnly start on settled devices.
Roy Marples [Mon, 9 Sep 2013 18:17:54 +0000 (18:17 +0000)] 
Only start on settled devices.

11 years agoFix udev filter test.
Roy Marples [Mon, 9 Sep 2013 16:28:05 +0000 (16:28 +0000)] 
Fix udev filter test.

11 years agoAdd udev support for interface arrival and departure.
Roy Marples [Mon, 9 Sep 2013 16:14:06 +0000 (16:14 +0000)] 
Add udev support for interface arrival and departure.
This is because udev likes to rename the interface, which it can't
do if dhcpcd grabs it first.

11 years agoFix requesting >1 DHCPv6 address
Roy Marples [Sat, 7 Sep 2013 23:16:36 +0000 (23:16 +0000)] 
Fix requesting >1 DHCPv6 address

11 years agoDon't bother managing a /128 prefix.
Roy Marples [Sat, 7 Sep 2013 11:13:05 +0000 (11:13 +0000)] 
Don't bother managing a /128 prefix.

11 years agoPlug a leak
Roy Marples [Fri, 6 Sep 2013 15:50:25 +0000 (15:50 +0000)] 
Plug a leak

11 years agoNo need for this include now.
Roy Marples [Fri, 6 Sep 2013 15:24:42 +0000 (15:24 +0000)] 
No need for this include now.

11 years agoTry and fix removal of the ip address when using INFORM.
Roy Marples [Fri, 6 Sep 2013 15:23:22 +0000 (15:23 +0000)] 
Try and fix removal of the ip address when using INFORM.

11 years agoFix linux support for new RTM handling.
Roy Marples [Fri, 6 Sep 2013 15:21:26 +0000 (15:21 +0000)] 
Fix linux support for new RTM handling.

11 years agoIt seems that FreeBSD will send RTM_DELADDR + RTM_NEWADDR when
Roy Marples [Fri, 6 Sep 2013 09:38:24 +0000 (09:38 +0000)] 
It seems that FreeBSD will send RTM_DELADDR + RTM_NEWADDR when
replacing an existing IPv4 address with the same values.
As such, we need to maintain a list of configured IPv4 addresses
for each interface so we know when to add it and when to skip it
to avoid receiving bogus RTM_DELADDR messages from ourself.

11 years agoFix DAD support when we need to listen on the wire.
Roy Marples [Fri, 6 Sep 2013 09:38:23 +0000 (09:38 +0000)] 
Fix DAD support when we need to listen on the wire.

11 years agoIgnore all messages raised by dhcpcd.
Roy Marples [Fri, 6 Sep 2013 09:38:23 +0000 (09:38 +0000)] 
Ignore all messages raised by dhcpcd.

11 years agoFix initial carrier status
Roy Marples [Thu, 5 Sep 2013 13:27:52 +0000 (13:27 +0000)] 
Fix initial carrier status

11 years agoFix build without INET6
Roy Marples [Thu, 5 Sep 2013 08:39:38 +0000 (08:39 +0000)] 
Fix build without INET6

11 years agoClarify waitup arguments.
Roy Marples [Wed, 4 Sep 2013 16:27:56 +0000 (16:27 +0000)] 
Clarify waitup arguments.

11 years agoFix comparison
Roy Marples [Wed, 4 Sep 2013 00:32:38 +0000 (00:32 +0000)] 
Fix comparison