summaryrefslogtreecommitdiff
path: root/src/resolve/resolved-link.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-24 21:39:14 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-25 21:58:38 +0100
commiteed857b71702f8551b46b66b31fa0d08583cf23c (patch)
tree519b8597bd9f187e6656b4e60ea8a0ea38b88a64 /src/resolve/resolved-link.h
parent4b95f1798f22c1bb75295f448188560cb6ec9ece (diff)
resolved: enforce a maximum limit on both dns servers and search domains
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r--src/resolve/resolved-link.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h
index a25715d269..eb00015bd5 100644
--- a/src/resolve/resolved-link.h
+++ b/src/resolve/resolved-link.h
@@ -34,6 +34,9 @@ typedef struct LinkAddress LinkAddress;
#include "resolved-dns-server.h"
#include "resolved-manager.h"
+#define LINK_SEARCH_DOMAINS_MAX 32
+#define LINK_DNS_SERVERS_MAX 32
+
struct LinkAddress {
Link *link;
@@ -58,8 +61,10 @@ struct Link {
LIST_HEAD(DnsServer, dns_servers);
DnsServer *current_dns_server;
+ unsigned n_dns_servers;
LIST_HEAD(DnsSearchDomain, search_domains);
+ unsigned n_search_domains;
Support llmnr_support;