Commit Graph

1630 Commits

Author SHA1 Message Date
Roy Marples
93d88d99dc Fix adding resolvconf 2012-03-27 21:15:25 +00:00
Roy Marples
ae20b7ddab Simplify API a little. 2012-03-27 19:01:49 +00:00
Roy Marples
2e055cabc5 Don't corrupt our route table when we fail to add a route for any reason. 2012-03-27 17:59:41 +00:00
roy@uberlaptop.marples.name
6b2a61c053 When sending signals, respect the interface it was started on. 2012-03-27 16:47:43 +00:00
roy@uberlaptop.marples.name
dcc1e564e7 Fix some valgrind errors on FreeBSD 2012-03-27 16:30:33 +00:00
Roy Marples
9cf974fea3 Add a suffix to our per interface config files for non IPv4 states.
This stops RA from stamping on NTP and YP configs.
2012-03-26 17:32:18 +00:00
Roy Marples
bb02dff14d Fix a double free, #243.
Stop leaking memory on interface restart with prior RA.
2012-03-24 12:58:12 +00:00
Roy Marples
b5de3cec6a Fix Dd and Dt arguments.
New sentence, new line.
Sort options and option descriptions.
Sort SEE ALSO.
Use Fl Fl for long options.
Sync the usage output by the program with the one from the man page.
Thanks to Thomas Klausner.
2012-03-24 10:41:40 +00:00
Roy Marples
63159d3ba6 Release dhcpcd-5.5.5 2012-03-23 09:07:59 +00:00
Roy Marples
65436fea3d Remove buffer overrun that leads to a segfault on ipv6 network.
strcpy copies the \0 of its src argument, therefore the following line
is unneeded. Ironically, it can lead to a nasty segfault on a network
that supports ipv6. In fact, it prevented me from access such a
network using DHCP.

Signed-off-by: Sidney Amani <seed95@gmail.com>
2012-03-23 07:38:39 +00:00
roy@uberlaptop.marples.name
ba0bc18bcb FreeBSD 7 does not support IFT_INFINIBAND 2012-03-21 19:11:07 +00:00
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