]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ndisc.h
Merge pull request #12508 from keszybz/no-root-checks
[thirdparty/systemd.git] / src / network / networkd-ndisc.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 #include "conf-parser.h"
5 #include "networkd-link.h"
6 #include "time-util.h"
7
8 typedef struct NDiscRDNSS {
9 usec_t valid_until;
10 struct in6_addr address;
11 } NDiscRDNSS;
12
13 typedef struct NDiscDNSSL {
14 usec_t valid_until;
15 /* The domain name follows immediately. */
16 } NDiscDNSSL;
17
18 static inline char* NDISC_DNSSL_DOMAIN(const NDiscDNSSL *n) {
19 return ((char*) n) + ALIGN(sizeof(NDiscDNSSL));
20 }
21
22 int ndisc_configure(Link *link);
23 void ndisc_vacuum(Link *link);
24 void ndisc_flush(Link *link);
25
26 CONFIG_PARSER_PROTOTYPE(config_parse_ndisc_black_listed_prefix);