summaryrefslogtreecommitdiff
path: root/src/systemd/sd-radv.h
diff options
context:
space:
mode:
authorPatrik Flykt <patrik.flykt@linux.intel.com>2017-09-29 14:23:38 +0300
committerPatrik Flykt <patrik.flykt@linux.intel.com>2017-10-06 12:30:27 +0300
commitc555a358ce6018044c91958df0afdae23271ad9f (patch)
tree048f607f25a36b12503bcd05ecb3f60713cef965 /src/systemd/sd-radv.h
parent9e25315caa2359077565308e646cd8ef72acb6e6 (diff)
downloadsystemd-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/sd-radv.h')
-rw-r--r--src/systemd/sd-radv.h5
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;