Commit Graph

1630 Commits

Author SHA1 Message Date
Roy Marples
225624555b Improve reported timings. 2012-10-27 12:11:04 +00:00
Roy Marples
8c48758ad5 Show renew and rebind times when debugging is enabled.
Trying to help #259.
2012-10-27 11:38:17 +00:00
Roy Marples
d6011075b8 Fix stupid length validation check. 2012-10-24 19:38:09 +00:00
Roy Marples
3a83f8aced Fix compile fr systems without RTF_CLONING such as FreeBSD-8 2012-10-24 12:59:20 +00:00
Roy Marples
b47baaa14b More fixes to validation lengths. 2012-10-24 12:13:55 +00:00
Roy Marples
7d1782ea53 Fix variable length encodings 2012-10-24 12:01:03 +00:00
Roy Marples
aa5283e2e1 If we receive a packet with two options the same which is not
supposed to be an array then we now trim to the correct size
rather than just discarding the option.
This also means that if any garbage at the end of the singule
occurance of an option is also discarded.
2012-10-24 11:47:28 +00:00
Roy Marples
652b80c8a9 Drop DHCPv6 on carrier down.
Send DHCPv6 interface information.
2012-10-12 19:10:04 +00:00
Roy Marples
5ba29cbd2b Remove needless malloc. 2012-10-12 12:30:22 +00:00
Roy Marples
bd236c286d If there is not IPv6 subnet route to delete, don't moan. 2012-10-12 12:13:16 +00:00
Roy Marples
f29cbe614f Fix code for -Wstrict-overflow 2012-10-12 11:26:20 +00:00
Roy Marples
d7555c1259 Add DHCPv6 INFORM support.
This is automatically started when RA flags O is set.
If no DHCPv6 request options are configured in dhcpcd.conf then we
request domain servers and search lists.
2012-10-12 10:31:51 +00:00
Roy Marples
27805e96f6 Move the default vendor string to a global variable.
When an interface starts, it assigns this by default instead of
generating it each time.
2012-10-09 13:20:50 +00:00
Roy Marples
56e106a774 Fix DUID support.
In the case where we cannot write a DUID file, then create a LL ID
instead of a LLT ID.
2012-10-09 13:14:56 +00:00
Roy Marples
f69a1765dd Make this file actually work 2012-10-08 16:25:36 +00:00
Roy Marples
9b428231f0 Don't need this header 2012-10-08 16:18:30 +00:00
Roy Marples
f7d18e2ceb xid should be treated in network byte order 2012-10-08 16:13:47 +00:00
Roy Marples
ca15a0aa38 Move the RS state into a struct in a generic data array.
We should move the DHCP code there, but more importantly allows
DHCP6 to slot in later.
2012-09-22 18:25:17 +00:00
Roy Marples
0b0b417782 Restart the interface immediately after a NAK instead of
waiting one second.
2012-09-22 13:28:34 +00:00
Roy Marples
5992d5ede3 Release dhcpcd-5.6.2 2012-09-03 08:49:14 +00:00
Roy Marples
259835194a Ensure we have correct memory allocation for number of prefixes. 2012-08-30 16:26:38 +00:00
Roy Marples
f59b5ba3d2 Only accept netlink messages from the kernel.
Thanks to Mikhail Efremov.
2012-08-24 19:05:26 +00:00
Roy Marples
6bf4099757 Only add our own host or destination routes to the build table when
we are adding gateways.
Thanks to Nazarov Yuriy Pavlovich.
2012-08-23 08:39:16 +00:00
Roy Marples
701b840fc4 Remove -v from --version in usage. 2012-08-18 13:58:53 +00:00
Roy Marples
fc6c8ec865 For some reason, Linux likes to re-add the IPv6 network route even if
it exists on a different metric than the default.
2012-08-07 07:03:13 +00:00
Roy Marples
c5fa597676 Seems we need braces here. 2012-08-06 20:31:33 +00:00
Roy Marples
2ff654acbf Add pltime and vltime to our IPv6 addresses. 2012-08-06 20:13:47 +00:00
Roy Marples
ea112ab290 Change the NS times so that we assume reachable until the reachable
time expires, then send probes at retrans intervals until
DELAY_FIRST_PROBE_TIME is reached at which point we expire the router.
2012-08-06 19:32:15 +00:00
Roy Marples
383929ca7a We should send our NS solicitation directly to the router. 2012-08-06 12:31:42 +00:00
Roy Marples
96637a8635 Add MTU to IPv6 routes on Linux. 2012-08-06 10:52:48 +00:00
Roy Marples
8ce6389572 If we fail to open sockets, don't bother sending the request. 2012-08-06 10:24:13 +00:00
Roy Marples
50083515db ra%d_prefix is now a space separated array of the finished address/len 2012-07-18 08:35:17 +00:00
Roy Marples
a02ed28a38 Don't set if_up or if_down as true when testing. 2012-07-18 08:35:07 +00:00
Roy Marples
bde566f574 Disable kernel interface RA as early as possible on Linux.
Don't add duplicate interfaces to the restore kernel RA on Linux.
2012-07-13 08:22:04 +00:00
Roy Marples
8ac16c4bb2 Release dhcpcd-5.6.1 2012-07-12 16:34:33 +00:00
Roy Marples
a6aef04faf Fix BSD restoring kernel RA. 2012-07-12 09:36:51 +00:00
Roy Marples
ba0a5b3e17 Don't restore kernel RA defaults or drop RA's when forking.
Add some more memory cleanups when testing forking.
2012-07-12 09:19:14 +00:00
Roy Marples
eebe9a1887 Improve IPv6 RA support by allowing dhcpcd to manage the address and routes
instead of the kernel. dhcpcd will only do this if RA is disabled in the kernel
or dhcpcd has been instructed to do this via dhcpcd.conf(5) ipv6ra_own and
ipv6ra_own_default directives.

Send and process IPv6 Neighbor Solicitions and Adverts to prove router
reachability. If a router cannot be reached in this way then it is expired.

When debugging, all ND messages are displayed which will create a lot of log
spam.

To ease packaging, ./configure now accepts LDFLAGS and --enable-static.
2012-07-05 16:37:41 +00:00
Roy Marples
359e9d3978 Report RA information when testing. 2012-06-28 09:11:24 +00:00
Roy Marples
382b36e0e2 Ensure that if_up and if_down are always set 2012-05-01 21:17:44 +00:00
Roy Marples
7a33435054 Change system services warning to match as autoconf.
Thanks to Gilles Espinasse.
2012-04-21 17:18:14 +00:00
Roy Marples
1031ae2305 Fix valid length checks for single ipv4 addresses 2012-04-21 11:59:24 +00:00
Roy Marples
965febf0b9 Fix some alignment problems. 2012-04-06 09:15:03 +00:00
Roy Marples
058a6a5893 Remove a needless set and fix length check of an array of IPv4 addresss. 2012-04-04 23:09:48 +00:00
Roy Marples
248cf0d859 Remove unused variables 2012-04-01 07:38:52 +00:00
Roy Marples
d08933a85d Fix compile on Linux 2012-03-30 09:42:01 +00:00
Roy Marples
2c77247bd0 Interface index should persist and be unique for the interface lifetime.
As such, store it at discover and stop using if_nametoindex(3).
2012-03-30 09:37:21 +00:00
Roy Marples
c73d67fcf3 Remove FreeBSD memory debug as I submitted a fix for their libc: PR bin/166483. 2012-03-29 09:11:48 +00:00
Roy Marples
d29bc78d3a Fix Linux compile. 2012-03-28 10:26:20 +00:00
Roy Marples
e5fc054ff1 Release dhcpcd-5.5.6 2012-03-28 10:07:48 +00:00