]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ndisc.h
network: also check that Hostname= is a valid DNS domain name
[thirdparty/systemd.git] / src / network / networkd-ndisc.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "networkd-link.h"
5
6 typedef struct NDiscRDNSS {
7 usec_t valid_until;
8 struct in6_addr address;
9 } NDiscRDNSS;
10
11 typedef struct NDiscDNSSL {
12 usec_t valid_until;
13 /* The domain name follows immediately. */
14 } NDiscDNSSL;
15
16 static inline char* NDISC_DNSSL_DOMAIN(const NDiscDNSSL *n) {
17 return ((char*) n) + ALIGN(sizeof(NDiscDNSSL));
18 }
19
20 int ndisc_configure(Link *link);
21 void ndisc_vacuum(Link *link);
22 void ndisc_flush(Link *link);