Roy Marples
9c4606ea55
Release dhcpcd-6.3.2
2014-03-14 10:48:14 +00:00
Roy Marples
8820c5c9f7
If we can't use cc then try and find a working compiler.
2014-03-13 00:42:16 +00:00
Roy Marples
cc43133914
Set hoplimit by IPV6_MULTICAST_HOPS intead of each time we send.
2014-03-12 15:59:19 +00:00
Roy Marples
b826c088b7
Remove notion of hoplimit from DHCPv6
2014-03-12 15:39:53 +00:00
Roy Marples
c12837916b
Clarify hop limit
2014-03-12 00:50:02 +00:00
Roy Marples
5524ade10d
Set a hop limit on our DHCPv6 messages.
2014-03-11 23:41:16 +00:00
Roy Marples
32a8030a00
Whitespace
2014-03-11 23:00:14 +00:00
Roy Marples
608fd9f447
Remove the last of the SEND_DAD code
2014-03-11 22:53:05 +00:00
Roy Marples
9cf6e1039b
More fixes to dhcp dumping leases.
...
When running dump and test hooks, exit early to allow as non root.
2014-03-11 22:37:10 +00:00
Roy Marples
1a42546514
Fix a crash when dumping a DHCPv4 lease.
...
Thanks to Mikhail Efremov.
2014-03-11 22:35:22 +00:00
Roy Marples
f970fb668e
Ensure that -M -x ifname does the right thing.
2014-03-11 10:41:27 +00:00
Roy Marples
1ef693d0ca
Describe DHCPv6 better.
2014-03-11 09:39:52 +00:00
Roy Marples
5f224ee2aa
Validate an accepted reconfigure key if we don't require authentication.
2014-03-11 09:39:23 +00:00
Roy Marples
f15c575a0f
Fix reconfigure behaviour
2014-03-10 17:37:24 +00:00
Roy Marples
56d6cf9ccc
Fix a crash when accepting a reconfigure key.
...
Check if a reconfigure message before checking state so reconfigure works.
2014-03-10 15:28:49 +00:00
Roy Marples
af975e6853
Only check for carrier if state is still unknown.
2014-03-07 22:14:13 +00:00
Roy Marples
6b8f50f8cb
Force a static build for OpenBSD and a SBINDIR of /sbin
2014-03-07 16:03:52 +00:00
Roy Marples
c9c8d13afb
Detect OpenBSD rc system (check instead of status).
...
If ntpd.conf exists but ntp.conf does not, configure ntpd.conf instead.
2014-03-07 14:29:52 +00:00
Roy Marples
ec9a2de096
Log args and ignore --disable-silent-rules
2014-03-07 13:35:10 +00:00
Roy Marples
4f422dd3bc
A router with a lifetime of zero is no longer a default router.
...
However, the options it passes do have lifetimes which we should still
respect according to RFC4861 section 4.2.
2014-03-07 13:01:20 +00:00
Roy Marples
b317418153
Add -M, --master to force dhcpcd into master mode.
2014-03-07 10:22:37 +00:00
Roy Marples
7af0ae84c2
Rationalise signal handling - HUP now rebinds, ALRM now releases, USR1 reapplies config.
2014-03-07 10:08:58 +00:00
Roy Marples
23a59573f9
rtm_hdrlen is OpenBSD only and doesn't appear to be needed.
2014-03-07 07:17:44 +00:00
Roy Marples
9f30172bd6
Deleting IPv4 subnet routes and IPv6 prefixes now works on OpenBSD.
2014-03-06 22:29:26 +00:00
Roy Marples
9a243eb205
Fix assignment error from strcpy removal.
2014-03-06 19:30:30 +00:00
Roy Marples
7529fdf1af
Tentative does not mean RTM_DELADDR.
...
This fixes RTM address handling on FreeBSD and OpenBSD.
Instead of listening for duplicate address messages for
FreeBSD and OpenBSD simply poll for the address flag changing.
This means less code to maintain and hopefully less error-prone.
Remove dead code which send a DAD as this is, and should,
be done entirely in the kernel.
2014-03-06 19:11:55 +00:00
Roy Marples
ea0bb1e29a
We need AF_LINK and AF_INET sockets. Sigh.
2014-03-06 14:54:53 +00:00
Roy Marples
ad6a36d4f3
Initial support for OpenBSD interface and routing priority.
2014-03-06 14:41:58 +00:00
Roy Marples
3ecdb9c2e7
We changed this file in 2014
2014-03-06 09:44:00 +00:00
Roy Marples
85d577d9a8
dhcpcd device context is from temporary storage, so copy the struct.
...
Thanks to Sergey Kvachonok.
2014-03-06 09:28:02 +00:00
Roy Marples
3af8f2b277
Change the last strcpy calls to strlcpy.
2014-03-06 09:12:06 +00:00
Roy Marples
c8b42ae14d
Compile and work on OpenBSD.
...
However, there is a problem deleting both IPv4 and IPv6 subnet routes.
Also, there is a problem opening a BPF fd in non blocking mode directly and
posix_spawn(3) fails to work so we block that in configure.
2014-03-05 18:11:22 +00:00
Roy Marples
a98c82a03d
Adjust comment to match expected behaviour
2014-03-05 11:21:51 +00:00
Roy Marples
b0825abbaf
NetBSD sh seems to break with *[![:alnum:]-_]* but works with *[![:alnum:]_-]*
2014-03-04 23:17:40 +00:00
Roy Marples
dad4eeb21a
No need for this code when we can reliably work with IPv6 RTM_DELADDR messages
2014-03-04 17:13:40 +00:00
Roy Marples
41a0921183
Whitespace
2014-03-04 13:31:42 +00:00
Roy Marples
e57635123f
Sanitize some gcc options in -Wall.
...
Remove -fno-common.
Move embedded dhcpcd configuration to from data segment to text.
2014-03-04 13:12:07 +00:00
Roy Marples
74dc320654
We should really check fscanf value here.
2014-03-04 10:07:15 +00:00
Roy Marples
91da35ce43
To avoid any future problems, log the TARGET we dervive the OS from.
2014-03-04 10:02:58 +00:00
Roy Marples
7bb6c2e0e7
options is long long.....
2014-03-03 19:57:24 +00:00
Roy Marples
b3574a2516
Just make the configure a bit easier.
2014-03-03 17:25:28 +00:00
Roy Marples
b1a6a84ba3
We don't care about the result of these functions.
2014-03-03 15:52:02 +00:00
Roy Marples
cb8d2c35cc
Fudge deriving os from Debian style
2014-03-03 15:48:07 +00:00
Roy Marples
738e7820b0
We shouldn't need this anymore
2014-03-03 14:06:27 +00:00
Roy Marples
012a983281
Correct man page RUNDIR
2014-03-03 13:58:51 +00:00
Roy Marples
98d7a13dfa
When deleting IPv6 addresses, remove them from our internal address state
...
as well so we perform DAD when rebinding.
Remove debug added with prior commit.
2014-03-03 13:56:49 +00:00
Roy Marples
4145d2b68a
Expire DHCP lease and then run no carrier as a seperate operation.
...
Instead of waiting the maximum amount of time to report DAD failure/completion, poll the address flags periodically.
2014-03-03 12:10:58 +00:00
Roy Marples
1eb71ae8e1
As we do now listen to the udp socket directly, delete the fd from eloop when done.
2014-03-02 13:01:34 +00:00
Roy Marples
ef3e8195fe
Work better with autoconf build host
2014-03-02 08:36:19 +00:00
Roy Marples
91bf55879b
Correctly delete IPv6 addresses from eloop timeouts
2014-03-01 17:59:33 +00:00