diff options
author | Patrik Flykt <patrik.flykt@linux.intel.com> | 2017-09-29 14:23:38 +0300 |
---|---|---|
committer | Patrik Flykt <patrik.flykt@linux.intel.com> | 2017-10-06 12:30:27 +0300 |
commit | c555a358ce6018044c91958df0afdae23271ad9f (patch) | |
tree | 048f607f25a36b12503bcd05ecb3f60713cef965 /src/systemd | |
parent | 9e25315caa2359077565308e646cd8ef72acb6e6 (diff) | |
download | systemd-c555a358ce6018044c91958df0afdae23271ad9f.tar.gz |
networkd: Automatically set DNS and search domain information
When EmitDNS or EmitDomains is set, automatically look up values
for Router Advertisement DNS and DNS search domain options starting
with the values in the IPv6PrefixDelegationsection, if any. If none
are found, use the values set for the network, and as a last resort
try with the preferred upstream network.
The default DNS lifetime and therefore Router Advertisement interval
is added to the public sd_radv.h header as the DNS lifetime depends
on the maximum advertisement interval.
Diffstat (limited to 'src/systemd')
-rw-r--r-- | src/systemd/sd-radv.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/systemd/sd-radv.h b/src/systemd/sd-radv.h index 0cc1d670b9..9805e3f24d 100644 --- a/src/systemd/sd-radv.h +++ b/src/systemd/sd-radv.h @@ -33,6 +33,11 @@ _SD_BEGIN_DECLARATIONS; +#define SD_RADV_DEFAULT_MIN_TIMEOUT_USEC (200*USEC_PER_SEC) +#define SD_RADV_DEFAULT_MAX_TIMEOUT_USEC (600*USEC_PER_SEC) + +#define SD_RADV_DEFAULT_DNS_LIFETIME_USEC (3*SD_RADV_DEFAULT_MAX_TIMEOUT_USEC) + typedef struct sd_radv sd_radv; typedef struct sd_radv_prefix sd_radv_prefix; |