diff options
author | Elena Tebesoi <elena.tebesoi@gmail.com> | 2012-05-21 14:49:42 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2012-05-22 21:13:32 +0200 |
commit | 5bf6e62fa5cdf7d9a19af04948e53b7db07abbc8 (patch) | |
tree | 060c07ba757ca3958a03b093def615be15fee232 /src/connman.h | |
parent | a880cf2c775982f35f080c207176ecbadf751aa3 (diff) | |
download | connman-5bf6e62fa5cdf7d9a19af04948e53b7db07abbc8.tar.gz connman-5bf6e62fa5cdf7d9a19af04948e53b7db07abbc8.tar.bz2 connman-5bf6e62fa5cdf7d9a19af04948e53b7db07abbc8.zip |
resolver: Send RS before RDNSS lifetime expires
Implemented feature from RFC 6106 section
'5.1. Recursive DNS Server Option':
"Lifetime 32-bit unsigned integer.
...
Hosts MAY send a Router Solicitation to ensure
the RDNSS information is fresh before the interval expires."
Host will send RS when a certain threshold of RDNSS lifetime is reached.
Values which can be adjusted:
- lifetime threshold - set to 80% from lifetime
- number of retries in case RA is not received - set to 0
- time between retries, in case RA is not received - set to 3 seconds
Diffstat (limited to 'src/connman.h')
-rw-r--r-- | src/connman.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/connman.h b/src/connman.h index 734213d8..7f998ebc 100644 --- a/src/connman.h +++ b/src/connman.h @@ -147,6 +147,9 @@ typedef void (*__connman_inet_rs_cb_t) (struct nd_router_advert *reply, int __connman_inet_ipv6_send_rs(int index, int timeout, __connman_inet_rs_cb_t callback, void *user_data); + +int __connman_refresh_rs_ipv6(struct connman_network *network, int index); + GSList *__connman_inet_ipv6_get_prefixes(struct nd_router_advert *hdr, unsigned int length); |