From bceaa99d49538fc24151abed9f9d40c950f626a2 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 13 Feb 2017 20:41:09 +0100 Subject: resolved: count the number of addresses per link This becomes handy later on. Moreover, we keep track of similar counters for other objects like this too, hence adding this here too is obvious. --- src/resolve/resolved-link.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/resolve/resolved-link.h') diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h index 1e9be8ae84..55a56b7906 100644 --- a/src/resolve/resolved-link.h +++ b/src/resolve/resolved-link.h @@ -60,6 +60,7 @@ struct Link { unsigned flags; LIST_HEAD(LinkAddress, addresses); + unsigned n_addresses; LIST_HEAD(DnsServer, dns_servers); DnsServer *current_dns_server; -- cgit v1.2.1