Commit Graph

1569 Commits

Author SHA1 Message Date
Roy Marples
c1412cc52a If the CSR decode fails to return any routes, then use the older DHCP
routing options if available.
2012-03-20 14:11:41 +00:00
Roy Marples
cbcc6643e1 Fix an issue where we would only use a CSR if we had not warned about using it. 2012-03-20 13:59:41 +00:00
Roy Marples
02f1a2afac Use correct event loop timeout deletion to stop occasional segfaults.
Fix a memory leak and free our global buffers if debugging memory.
2012-03-20 13:46:35 +00:00
Roy Marples
8cf1f9a8ca Support bridge and VLAN interfaces on BSD.
Fall back to ethernet if unknown and specified.
2012-03-20 09:19:01 +00:00
Roy Marples
5e084fac90 If no ClientID or hardware address, don't report a blank hardware address. 2012-03-20 09:18:20 +00:00
Roy Marples
fd73ceb145 Add .Lk macro to URLs 2012-03-19 11:07:56 +00:00
Roy Marples
61dd6cf9ab Add an option to control dhcpcd forking or not if the RA does not contain
a RDNSS option.
This involves changing our options to an unsigned long long so we can use
more than 32 bits.
2012-03-07 10:06:45 +00:00
Roy Marples
59b38886f9 Don't fork on IPv6 RA unless we have an RDNSS option. 2012-03-05 16:45:10 +00:00
Roy Marples
eb0faa8962 Use sysfs if we don't have ifconfig(8) on Linux.
Thanks to Dave Reisner.
2012-03-05 11:13:06 +00:00
Roy Marples
c37989c4aa Try to emulate hostname(1) if it doens't exist. 2012-03-05 11:11:49 +00:00
Roy Marples
8a1c7bcc1b Set hostname via /proc if file is available
On Linux, the hostname can be set via this file if available, precluding
the need for a `hostname` binary.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-05 10:35:00 +00:00
Roy Marples
d705c979f0 Respect an accept_ra setting of 2, fixes #240.
Detect IPv6 settings per interface if the platform allows, fixed #241.
2012-03-05 10:04:26 +00:00
Roy Marples
46caaa5ee4 Store the RA data for the interface so we can do a comparison.
Only log the fact we received an RA if the new RA is different or any
part of the old one has expired.
2012-02-13 08:37:54 +00:00
Roy Marples
9b769f0ec4 Release dhcpcd-5.5.4 2012-02-05 20:18:04 +00:00
Roy Marples
832efb4abf Stop checking for IFF_RUNNING in handle_carrier as it is invalid for BSD
and should already have been checked for Linux.
2012-02-05 19:32:17 +00:00
Roy Marples
a46038eab8 Better tests. 2012-02-04 15:45:38 +00:00
Roy Marples
0d77ae0270 Add kernel IPv6 RA and forwarding detection on Linux. 2012-02-04 15:37:42 +00:00
roy@uberlaptop.marples.name
441b06bc38 If the kernel is not configured to accept IPv6 or RA's then don't
needless attempt to solicit an IPv6 RA.
2012-02-04 15:15:25 +00:00
Roy Marples
7e82ec4449 Fix configure test for arc4random on FreeBSD 7 2012-02-04 14:25:11 +00:00
Roy Marples
8aa2252b74 Fix a compile issue and releae dhcpcd-5.5.3 2012-02-03 00:02:03 +00:00
Roy Marples
dfc47e8280 Release dhcpcd-5.5.2 2012-02-02 23:30:41 +00:00
Roy Marples
0e18128ad8 Default back to gcc as it seems clang isn't good for powerpc. 2012-02-02 23:30:13 +00:00
Roy Marples
11791d3447 Set if_up if_down correctly per RA or DHCP 2012-02-02 18:23:06 +00:00
Roy Marples
449df9c859 Fix some more copyrights
RA expiry timers now trigger off options as well
Stop prefixing new_ for RA options
if_up and if_down are now set by dhcpcd itself
Correctly prefer a DHCP lease over an IPv4LL entry
2012-02-02 16:22:40 +00:00
Roy Marples
159cb2e6cf Fix carrier handling on BSD for interfaces that don't support link status 2012-01-31 16:32:10 +00:00
Roy Marples
7ae411d942 Fix more copyright 2012-01-31 09:51:12 +00:00
Roy Marples
88ee21e5db Release dhcpcd-5.5.1 2012-01-31 09:33:26 +00:00
Roy Marples
c06ded74b2 Stop trunctating netmask sockaddr 2012-01-30 20:11:47 +00:00
Roy Marples
bb25289b0f Don't attempt to run the script if it's an NULL, an empty string or /dev/null 2012-01-30 16:59:48 +00:00
Roy Marples
e0c4d1587d Allow dhcpcd to run on a read-only filesystem.
You'll get a lot of errors, but you will get a working address and routing.
2012-01-29 17:28:05 +00:00
Roy Marples
70b967d7d7 Remove the RA's before reporting no carrier. 2012-01-29 16:49:04 +00:00
Roy Marples
b1a20121fb Only set if_up for a ROUTERADVERT if we have any RAs
Conversely, we need to pretend it's up without any RAs to successfully
remove it.
2012-01-29 16:45:14 +00:00
Roy Marples
0c6ad78288 Don't start IPv6 if it's disabled globally. 2012-01-29 16:32:06 +00:00
Roy Marples
c46132f64e Fix RA state detection 2012-01-25 17:30:41 +00:00
Roy Marples
bd924a0f09 Release dhcpcd-5.5.0 2012-01-24 11:27:55 +00:00
Roy Marples
efaacbbf18 Add and prefer clang to the compiler list.
The compiler version is now shown during configure.
2012-01-24 11:26:20 +00:00
Roy Marples
29fe5ed6a4 Just log the fact that the leased IP address was removed instead of
expiring the lease. This allows --reconfigure, -g to fully work as
intended.
2011-12-18 12:12:08 +00:00
Roy Marples
1c657b0883 Stop the --reconfigure, -g option from spinning needlessly.
Thanks to Mike Crowe.
2011-12-18 12:11:08 +00:00
Roy Marples
f36522c53f Fix hook for non RA's.
Remove RA's before the DHCP lease.
Correctly send 3 RA solicitations.
2011-12-16 12:20:04 +00:00
Roy Marples
d522b92049 Disable IPv6RS on p2p, lo and mcast interfaces. 2011-12-15 03:37:27 +00:00
Roy Marples
7be4b9b31f Fix warnings on Linux 2011-12-15 03:22:47 +00:00
Roy Marples
93b871dce1 Add ROUTERADVERT to dhcpcd-run-hooks(8) 2011-12-15 03:13:15 +00:00
Roy Marples
bb84865096 Hook the new RA options into resolv.conf 2011-12-15 03:02:46 +00:00
Roy Marples
8273ac5a42 Fix copyright dates 2011-12-15 02:41:10 +00:00
Roy Marples
91cd732493 Add an implementation of an IPv6 Router Solicitor as specified in
RFC6016 with regards to RDNSS and DNSSL.
2011-12-15 02:35:47 +00:00
Roy Marples
1011354f32 Fix a potential error if we need to alter the sip server string. 2011-12-14 09:57:56 +00:00
Roy Marples
83c08c2068 Only regen resolv.conf if we need to as some processes could monitor it
for changes and restart themselves needlessly.
2011-12-14 07:59:54 +00:00
Roy Marples
67ab3e7b17 If we a 3rd party removes our assigned address, drop our lease. 2011-12-11 22:03:52 +00:00
Roy Marples
1b44ab74ad If an address is whipped out after adding it by something else,
don't crash.
2011-12-11 21:14:49 +00:00
Roy Marples
c3fbbde164 Fix SIP server support, RFC 3361 which has been broken since dhcpcd-3.3.
Thanks to Egil Hjelmeland.
2011-12-09 19:40:05 +00:00