summaryrefslogtreecommitdiff
path: root/src/network/networkd-ndisc.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-10-21 20:50:12 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-10-21 20:58:15 +0900
commit03ccc4b423b8659d3724829930fc511c420277f4 (patch)
tree904bb5148054910dd7bd40f65d416af0bbaa330a /src/network/networkd-ndisc.h
parent09845af54b12de55f5678f8c2b4cd0d7a976dc1a (diff)
downloadsystemd-03ccc4b423b8659d3724829930fc511c420277f4.tar.gz
network: ndisc: rename valid_until -> lifetime_usec
Diffstat (limited to 'src/network/networkd-ndisc.h')
-rw-r--r--src/network/networkd-ndisc.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/network/networkd-ndisc.h b/src/network/networkd-ndisc.h
index ed50ebbf9a..acb97a892e 100644
--- a/src/network/networkd-ndisc.h
+++ b/src/network/networkd-ndisc.h
@@ -19,7 +19,9 @@ typedef struct NDiscRDNSS {
/* Used when GC'ing old DNS servers when configuration changes. */
bool marked;
struct in6_addr router;
- usec_t valid_until;
+ /* This is an absolute point in time, and NOT a timespan/duration.
+ * Must be specified with clock_boottime_or_monotonic(). */
+ usec_t lifetime_usec;
struct in6_addr address;
} NDiscRDNSS;
@@ -27,7 +29,9 @@ typedef struct NDiscDNSSL {
/* Used when GC'ing old domains when configuration changes. */
bool marked;
struct in6_addr router;
- usec_t valid_until;
+ /* This is an absolute point in time, and NOT a timespan/duration.
+ * Must be specified with clock_boottime_or_monotonic(). */
+ usec_t lifetime_usec;
/* The domain name follows immediately. */
} NDiscDNSSL;