]> git.ipfire.org Git - thirdparty/dhcpcd.git/log
thirdparty/dhcpcd.git
11 years agoMove DUID_LEN to a better header.
Roy Marples [Fri, 7 Feb 2014 19:40:20 +0000 (19:40 +0000)] 
Move DUID_LEN to a better header.

11 years agowritepid is now a static inline function
Roy Marples [Fri, 7 Feb 2014 17:48:13 +0000 (17:48 +0000)] 
writepid is now a static inline function

11 years agoRemove custom set_cloexec and set_nonblock functions.
Roy Marples [Fri, 7 Feb 2014 17:32:08 +0000 (17:32 +0000)] 
Remove custom set_cloexec and set_nonblock functions.
Instead pass O_CLOEXEC or SOCK_CLOEXEC to open, socket, etc.
This requires a fairly modern system.

11 years agoUse our own signal structure instead of siginfo_t to save space.
Roy Marples [Fri, 7 Feb 2014 15:49:33 +0000 (15:49 +0000)] 
Use our own signal structure instead of siginfo_t to save space.

11 years agoIgnore netlink messages with an our of range pid.
Roy Marples [Fri, 7 Feb 2014 14:57:19 +0000 (14:57 +0000)] 
Ignore netlink messages with an our of range pid.

11 years agoCopy the siginfo_t structure onto a global copy and pass that as an
Roy Marples [Fri, 7 Feb 2014 14:39:22 +0000 (14:39 +0000)] 
Copy the siginfo_t structure onto a global copy and pass that as an
argument to eloop_timeout_add_now so that every actionis async signal safe.

11 years agoSet memory to zero
Roy Marples [Fri, 7 Feb 2014 11:18:33 +0000 (11:18 +0000)] 
Set memory to zero

11 years agoSet dev fd to -1 when stopped.
Roy Marples [Fri, 7 Feb 2014 11:06:17 +0000 (11:06 +0000)] 
Set dev fd to -1 when stopped.

11 years agoDon't hold onto an AF_INET socket for the duration of the program,
Roy Marples [Fri, 7 Feb 2014 11:03:39 +0000 (11:03 +0000)] 
Don't hold onto an AF_INET socket for the duration of the program,
open and close it as required.

11 years agoExit correctly if no interfaces have a carrier.
Roy Marples [Fri, 7 Feb 2014 09:33:32 +0000 (09:33 +0000)] 
Exit correctly if no interfaces have a carrier.

11 years agoFix opening the control socket.
Roy Marples [Wed, 5 Feb 2014 18:32:13 +0000 (18:32 +0000)] 
Fix opening the control socket.

11 years agoUse fscanf some more.
Roy Marples [Wed, 5 Feb 2014 18:11:32 +0000 (18:11 +0000)] 
Use fscanf some more.

11 years agoReplace get_line with sscanf
Roy Marples [Wed, 5 Feb 2014 16:44:24 +0000 (16:44 +0000)] 
Replace get_line with sscanf

11 years agopidfd can be static now.
Roy Marples [Wed, 5 Feb 2014 13:18:58 +0000 (13:18 +0000)] 
pidfd can be static now.

11 years agoMove control globals into a context.
Roy Marples [Wed, 5 Feb 2014 12:01:09 +0000 (12:01 +0000)] 
Move control globals into a context.

11 years agoOnly return 0 from daemonise if we have forked successfully, otherwise the pid of...
Roy Marples [Tue, 4 Feb 2014 15:53:56 +0000 (15:53 +0000)] 
Only return 0 from daemonise if we have forked successfully, otherwise the pid of the child.

11 years agoFork correctly from RA and DAD.
Roy Marples [Tue, 4 Feb 2014 15:46:38 +0000 (15:46 +0000)] 
Fork correctly from RA and DAD.

11 years agoReset kernel RA flag correctly.
Roy Marples [Tue, 4 Feb 2014 15:45:51 +0000 (15:45 +0000)] 
Reset kernel RA flag correctly.

11 years agoChanged these files in 2014.
Roy Marples [Tue, 4 Feb 2014 14:55:04 +0000 (14:55 +0000)] 
Changed these files in 2014.

11 years agoFix compile
Roy Marples [Tue, 4 Feb 2014 14:41:35 +0000 (14:41 +0000)] 
Fix compile

11 years agoRemove DEBUG_MEMORY guard and always free memory and resources.
Roy Marples [Tue, 4 Feb 2014 14:39:26 +0000 (14:39 +0000)] 
Remove DEBUG_MEMORY guard and always free memory and resources.
Remove all atexit(3) and exit(3) calls, instead exiting via the eloop.

11 years agoDrain the correct UDP socket.
Roy Marples [Mon, 3 Feb 2014 17:30:03 +0000 (17:30 +0000)] 
Drain the correct UDP socket.

11 years agoWe don't want to show cc errors here
Roy Marples [Mon, 3 Feb 2014 17:29:36 +0000 (17:29 +0000)] 
We don't want to show cc errors here

11 years agoOpen UDP sockets for *.*.*.*:bootpc and $ip_address:bootpc
Roy Marples [Mon, 3 Feb 2014 14:12:14 +0000 (14:12 +0000)] 
Open UDP sockets for *.*.*.*:bootpc and $ip_address:bootpc

11 years agoOnly link to libmd if it lives in /lib
Roy Marples [Mon, 3 Feb 2014 13:24:04 +0000 (13:24 +0000)] 
Only link to libmd if it lives in /lib

11 years agoFix make import with compat sources.
Roy Marples [Mon, 3 Feb 2014 13:09:13 +0000 (13:09 +0000)] 
Fix make import with compat sources.
Use -lmd for MD5 if available.

11 years agoOnly listen to the UDP port if we opened it.
Roy Marples [Mon, 3 Feb 2014 11:39:25 +0000 (11:39 +0000)] 
Only listen to the UDP port if we opened it.

11 years agoRFC7083 has new inital timer values.
Roy Marples [Mon, 3 Feb 2014 11:02:17 +0000 (11:02 +0000)] 
RFC7083 has new inital timer values.

11 years agoAdd support for the following RFCs:
Roy Marples [Mon, 3 Feb 2014 10:28:30 +0000 (10:28 +0000)] 
Add support for the following RFCs:
DHCP SLP Directory Agent, RFC2610
DHCP Name Service Search, RFC2937
DHCP PANA Authentication Agent, RFC5192
DHCP Lost Server, RFC5223
DHCP CAPWAP, RFC5417
DHCP Mobility Services, RFC5678
DHCP SIP UA, RFC6011
DHCP ANDSF, RFC6153
DHCP RDNSS Selection for MIF Nodes, RFC6731
DHCP TFTP Server Address, RFC5859
DHCP PXELINUX, RFC5071
DHCP Access Network Domain Name, RFC5986
DHCP Virtual Subnet Selection, RFC6607
DHCP Relay Agent Remote-ID, RFC4649
DHCP Relay Agent Subscriber-ID, RFC4580
DHCPv6 Relay-ID, RFC5460
DHCPv6 LIS Discovery, RFC5986
DHCPv6 SIP UA, RFC6011
DHCPv6 Network Boot, RFC5970
DHCPv6 Home Info Discovery in MIPv6, RFC6610
DHCPv6 RDNSS Selection for MIF Nodes, RFC6731
DHCPv6 Kerberos, RFC6784
DHCPv6 Relay-Triggered Reconfiguraion, RFC6977
DHCPv6 SOL_MAX_RT, RFC7083

11 years agoFix auto-configure
Roy Marples [Sat, 1 Feb 2014 10:40:40 +0000 (10:40 +0000)] 
Fix auto-configure

11 years agoOnly check auto-configure in the DISCOVER state.
Roy Marples [Fri, 31 Jan 2014 22:28:16 +0000 (22:28 +0000)] 
Only check auto-configure in the DISCOVER state.

11 years agoAdd support for DHCP auto configuration, RFC 2563.
Roy Marples [Fri, 31 Jan 2014 22:15:50 +0000 (22:15 +0000)] 
Add support for DHCP auto configuration, RFC 2563.

11 years agoReset reconfigure token when dropping a lease.
Roy Marples [Fri, 31 Jan 2014 18:33:11 +0000 (18:33 +0000)] 
Reset reconfigure token when dropping a lease.
Only send a reconfigure accept option if we aren't sending any
authentication OR don't require authentication.

11 years agoTweak stuff for importing
Roy Marples [Fri, 31 Jan 2014 15:55:16 +0000 (15:55 +0000)] 
Tweak stuff for importing

11 years agoRemove used var
Roy Marples [Fri, 31 Jan 2014 15:00:58 +0000 (15:00 +0000)] 
Remove used var

11 years agoSupport AFTR-Name, RFC6334.
Roy Marples [Fri, 31 Jan 2014 14:43:08 +0000 (14:43 +0000)] 
Support AFTR-Name, RFC6334.

11 years agoRemove debug
Roy Marples [Fri, 31 Jan 2014 14:26:58 +0000 (14:26 +0000)] 
Remove debug

11 years agoSupport RECONFIGURE DHCPv6 messages.
Roy Marples [Fri, 31 Jan 2014 14:25:18 +0000 (14:25 +0000)] 
Support RECONFIGURE DHCPv6 messages.

11 years agoChanged in 2014
Roy Marples [Fri, 31 Jan 2014 12:45:55 +0000 (12:45 +0000)] 
Changed in 2014

11 years agoProvide a string for FORCERENEW
Roy Marples [Fri, 31 Jan 2014 12:43:20 +0000 (12:43 +0000)] 
Provide a string for FORCERENEW

11 years agoForce renew now works when we are in the informed state.
Roy Marples [Fri, 31 Jan 2014 12:41:30 +0000 (12:41 +0000)] 
Force renew now works when we are in the informed state.

11 years agoImplement Force Renew Nonce Capability option, RFC6704
Roy Marples [Fri, 31 Jan 2014 12:26:39 +0000 (12:26 +0000)] 
Implement Force Renew Nonce Capability option, RFC6704

11 years agoAs we need to actuall drain the kernel buffer, don't bother setting the receive buffe...
Roy Marples [Fri, 31 Jan 2014 12:03:54 +0000 (12:03 +0000)] 
As we need to actuall drain the kernel buffer, don't bother setting the receive buffer size

11 years agoImplement support for RFC 3203, FORCERENEW message.
Roy Marples [Fri, 31 Jan 2014 11:47:27 +0000 (11:47 +0000)] 
Implement support for RFC 3203, FORCERENEW message.

11 years agoImprove authentication logging.
Roy Marples [Thu, 30 Jan 2014 14:20:24 +0000 (14:20 +0000)] 
Improve authentication logging.

11 years agoWarn on missing auth if we request it but do not require it.
Roy Marples [Thu, 30 Jan 2014 13:27:49 +0000 (13:27 +0000)] 
Warn on missing auth if we request it but do not require it.

11 years agoChange to using a NTP time stamp for Replay Detection as that seems
Roy Marples [Thu, 30 Jan 2014 13:04:42 +0000 (13:04 +0000)] 
Change to using a NTP time stamp for Replay Detection as that seems
to be the norm.

11 years agoSend auth when all protocol options specified.
Roy Marples [Thu, 30 Jan 2014 08:25:11 +0000 (08:25 +0000)] 
Send auth when all protocol options specified.

11 years agoDon't mistakenly assume that a previously used token implies we should
Roy Marples [Wed, 29 Jan 2014 19:46:44 +0000 (19:46 +0000)] 
Don't mistakenly assume that a previously used token implies we should
encode the auth option.

11 years agoIf no status message given, supply a default.
Roy Marples [Wed, 29 Jan 2014 18:33:43 +0000 (18:33 +0000)] 
If no status message given, supply a default.

11 years agoIf we aren't sending an authentication option, don't update it.
Roy Marples [Wed, 29 Jan 2014 17:21:14 +0000 (17:21 +0000)] 
If we aren't sending an authentication option, don't update it.

11 years agoFix compile
Roy Marples [Wed, 29 Jan 2014 14:16:31 +0000 (14:16 +0000)] 
Fix compile

11 years agoAdd nodhcp and nodhcp6 directives.
Roy Marples [Wed, 29 Jan 2014 14:05:58 +0000 (14:05 +0000)] 
Add nodhcp and nodhcp6 directives.
Thanks to Sebastian Huber for the initial patch and testing.

11 years agoTypo, thanks to Iain Hibbert.
Roy Marples [Mon, 27 Jan 2014 11:34:26 +0000 (11:34 +0000)] 
Typo, thanks to Iain Hibbert.

11 years agoFix compile on NetBSD
Roy Marples [Sat, 25 Jan 2014 02:50:27 +0000 (02:50 +0000)] 
Fix compile on NetBSD

11 years agoWarn about missing auth
Roy Marples [Sat, 25 Jan 2014 02:41:42 +0000 (02:41 +0000)] 
Warn about missing auth

11 years agoFix monofile truncation.
Roy Marples [Sat, 25 Jan 2014 02:31:45 +0000 (02:31 +0000)] 
Fix monofile truncation.

11 years agoReply authentication every time we send a message as have updated
Roy Marples [Sat, 25 Jan 2014 02:23:41 +0000 (02:23 +0000)] 
Reply authentication every time we send a message as have updated
the elapsed time.

11 years agoImplement RFC 1321 MD5 Message-Digest if not provided in libc.
Roy Marples [Sat, 25 Jan 2014 01:35:53 +0000 (01:35 +0000)] 
Implement RFC 1321 MD5 Message-Digest if not provided in libc.

Implement RFC 2104 HMAC Keyed Hashing.

Implement RFC 3118 Authentication for DHCP Messages
and RFC 3315 Authentication options.

11 years agoEnsure that config.h or common.h is the first included local header.
Roy Marples [Fri, 24 Jan 2014 11:09:39 +0000 (11:09 +0000)] 
Ensure that config.h or common.h is the first included local header.
Thanks to Sebastian Huber.

11 years agoAdd prefix to copyright constant.
Roy Marples [Fri, 24 Jan 2014 11:00:38 +0000 (11:00 +0000)] 
Add prefix to copyright constant.
Thanks to Sebastian Huber.

11 years agoRFC 3927 2.5 only metions the senders IP, not the targets.
Roy Marples [Wed, 22 Jan 2014 10:39:30 +0000 (10:39 +0000)] 
RFC 3927 2.5 only metions the senders IP, not the targets.
Clarify other comments and fix formatting a little.

11 years agoReport error from correct function.
Roy Marples [Tue, 21 Jan 2014 17:13:42 +0000 (17:13 +0000)] 
Report error from correct function.

11 years agoFix compile
Roy Marples [Tue, 21 Jan 2014 16:30:39 +0000 (16:30 +0000)] 
Fix compile

11 years agoMove vimaster checks to if-bsd.c
Roy Marples [Tue, 21 Jan 2014 16:27:47 +0000 (16:27 +0000)] 
Move vimaster checks to if-bsd.c
Make a note to try and support similar on Linux.

11 years agoSkip Virtual Interface Masters.
Roy Marples [Tue, 21 Jan 2014 15:57:30 +0000 (15:57 +0000)] 
Skip Virtual Interface Masters.
Currently this only applies to FreeBSD VAP masters as dhcpcd should
only work on wlandev created clones.

11 years agoClarify IPv4LL defence failure.
Roy Marples [Tue, 21 Jan 2014 13:40:33 +0000 (13:40 +0000)] 
Clarify IPv4LL defence failure.

11 years agoWe're not extracting the address from proc, so convert our match address
Roy Marples [Tue, 21 Jan 2014 09:58:55 +0000 (09:58 +0000)] 
We're not extracting the address from proc, so convert our match address
to the same string format and compare instead.

11 years agoFix payload address calculation.
Roy Marples [Mon, 20 Jan 2014 16:16:54 +0000 (16:16 +0000)] 
Fix payload address calculation.
Thanks to Sebastian Huber.

11 years agoFix trim sed fallback
Roy Marples [Mon, 20 Jan 2014 15:19:11 +0000 (15:19 +0000)] 
Fix trim sed fallback

11 years agoCheck that we have ctrl_interface defined in wpa_supplicant.conf
Roy Marples [Mon, 20 Jan 2014 15:01:53 +0000 (15:01 +0000)] 
Check that we have ctrl_interface defined in wpa_supplicant.conf
and pass this parameter to wpa_cli(8).
If not set, warn about not interacting with wpa_supplicant(8).

11 years agoRemove unused var
Roy Marples [Mon, 20 Jan 2014 09:29:14 +0000 (09:29 +0000)] 
Remove unused var

11 years agoDetect IPv6 address flags at interface discovery on Linux.
Roy Marples [Sun, 19 Jan 2014 22:35:52 +0000 (22:35 +0000)] 
Detect IPv6 address flags at interface discovery on Linux.

11 years agoClarify dhcpcd needing to run on interfaces delegating to.
Roy Marples [Sat, 18 Jan 2014 15:17:37 +0000 (15:17 +0000)] 
Clarify dhcpcd needing to run on interfaces delegating to.
Show how to ignore a specific interface and disable automatic configuration
in the example.

11 years agoClarify which DHCP protocol vendor and user class options affect.
Roy Marples [Sat, 18 Jan 2014 15:01:37 +0000 (15:01 +0000)] 
Clarify which DHCP protocol vendor and user class options affect.

11 years agoIAID must be used within an interface block.
Roy Marples [Sat, 18 Jan 2014 14:49:29 +0000 (14:49 +0000)] 
IAID must be used within an interface block.
IA_PD must be used within an interface block.
You cannot assign a delegated prefix to the requesting interface.

11 years agoFix an off-by-1 error decoding RFC3361.
Roy Marples [Thu, 16 Jan 2014 09:29:42 +0000 (09:29 +0000)] 
Fix an off-by-1 error decoding RFC3361.
We can use RFC3361 to decode the RFC3495 TSP sub option 3.
This means that RFC3495 is now fully supported.

11 years agoRelease dhcpcd-6.2.1 v6.2.1
Roy Marples [Wed, 15 Jan 2014 20:24:38 +0000 (20:24 +0000)] 
Release dhcpcd-6.2.1

11 years agoChanged in 2014.
Roy Marples [Tue, 14 Jan 2014 22:50:36 +0000 (22:50 +0000)] 
Changed in 2014.

11 years agoNote NetBSD and OpenBSD problems with DHCPv6 stateful addressing.
Roy Marples [Tue, 14 Jan 2014 22:49:08 +0000 (22:49 +0000)] 
Note NetBSD and OpenBSD problems with DHCPv6 stateful addressing.
Also note correct service options.

11 years agoChanged in 2014.
Roy Marples [Tue, 14 Jan 2014 21:53:24 +0000 (21:53 +0000)] 
Changed in 2014.

11 years agoOn BSD, flush routes and prefixes only when we want to own them.
Roy Marples [Tue, 14 Jan 2014 21:52:33 +0000 (21:52 +0000)] 
On BSD, flush routes and prefixes only when we want to own them.

11 years agoWe changed these files in 2014
Roy Marples [Tue, 14 Jan 2014 14:42:00 +0000 (14:42 +0000)] 
We changed these files in 2014

11 years agoMark more data as read only.
Roy Marples [Tue, 14 Jan 2014 14:40:36 +0000 (14:40 +0000)] 
Mark more data as read only.
Thanks to Sebastian Huber.

11 years agobpf(4) says that we need to include sys/time.h as well.
Roy Marples [Tue, 14 Jan 2014 14:24:31 +0000 (14:24 +0000)] 
bpf(4) says that we need to include sys/time.h as well.
Thanks to Sebastian Huber.

11 years agoWe changed these files in 2014
Roy Marples [Tue, 14 Jan 2014 12:23:36 +0000 (12:23 +0000)] 
We changed these files in 2014

11 years agoFree option definition recursively as we can embed in our encap.
Roy Marples [Tue, 14 Jan 2014 11:45:35 +0000 (11:45 +0000)] 
Free option definition recursively as we can embed in our encap.

11 years agoFix some possible NULL dereferences, CID 1153963.
Roy Marples [Tue, 14 Jan 2014 11:13:36 +0000 (11:13 +0000)] 
Fix some possible NULL dereferences, CID 1153963.

11 years agoFix CID: 1153964 and 1153966
Roy Marples [Tue, 14 Jan 2014 10:56:21 +0000 (10:56 +0000)] 
Fix CID: 1153964 and 1153966

11 years agoTypo.
Roy Marples [Tue, 14 Jan 2014 09:42:17 +0000 (09:42 +0000)] 
Typo.
Thanks to Russell Bell.

11 years agoFix definition
Roy Marples [Wed, 8 Jan 2014 20:23:04 +0000 (20:23 +0000)] 
Fix definition

11 years agoAdd support for RFC3495 DHCP option for CableLabs Clients.
Roy Marples [Wed, 8 Jan 2014 14:44:00 +0000 (14:44 +0000)] 
Add support for RFC3495 DHCP option for CableLabs Clients.
Note that for the TSP suboption 3 we only support the FQDN encoding.

11 years agoModern init systems such as OpenRC and systemd can be installed on top
Roy Marples [Wed, 8 Jan 2014 11:34:51 +0000 (11:34 +0000)] 
Modern init systems such as OpenRC and systemd can be installed on top
of the base system init.
However, the user can easily flip between them so we need to work out
which init system is in use at runtime rather than compile time.

11 years agoFix compile errors and warnings with IPv6 disabled.
Roy Marples [Sun, 5 Jan 2014 08:36:40 +0000 (08:36 +0000)] 
Fix compile errors and warnings with IPv6 disabled.

11 years agoWelcome to 2014! Relese dhcpcd-6.2.0. v6.2.0
Roy Marples [Fri, 3 Jan 2014 21:12:19 +0000 (21:12 +0000)] 
Welcome to 2014! Relese dhcpcd-6.2.0.

11 years agoChange configure to detect fossil for debugging.
Roy Marples [Fri, 3 Jan 2014 17:16:12 +0000 (17:16 +0000)] 
Change configure to detect fossil for debugging.
Make dist now exports the current fossil checkin.
Remove old .git files.

11 years agoTweak unicast a little
Roy Marples [Fri, 13 Dec 2013 14:54:14 +0000 (14:54 +0000)] 
Tweak unicast a little

11 years agoFix multiple arping options
Roy Marples [Fri, 13 Dec 2013 09:35:35 +0000 (09:35 +0000)] 
Fix multiple arping options

11 years agoMove some errors into debug.
Roy Marples [Fri, 13 Dec 2013 09:11:42 +0000 (09:11 +0000)] 
Move some errors into debug.

11 years agoFix NAK backoff when a server NAKs a REQUEST after a DISCOVER.
Roy Marples [Thu, 12 Dec 2013 16:25:58 +0000 (16:25 +0000)] 
Fix NAK backoff when a server NAKs a REQUEST after a DISCOVER.