]> git.ipfire.org Git - thirdparty/systemd.git/blob - src/network/networkd-ndisc.h
tree-wide: beautify remaining copyright statements
[thirdparty/systemd.git] / src / network / networkd-ndisc.h
1 /* SPDX-License-Identifier: LGPL-2.1+ */
2 #pragma once
3
4 /***
5 Copyright © 2013 Tom Gundersen <teg@jklm.no>
6 ***/
7
8 #include "networkd-link.h"
9
10 typedef struct NDiscRDNSS {
11 usec_t valid_until;
12 struct in6_addr address;
13 } NDiscRDNSS;
14
15 typedef struct NDiscDNSSL {
16 usec_t valid_until;
17 /* The domain name follows immediately. */
18 } NDiscDNSSL;
19
20 static inline char* NDISC_DNSSL_DOMAIN(const NDiscDNSSL *n) {
21 return ((char*) n) + ALIGN(sizeof(NDiscDNSSL));
22 }
23
24 int ndisc_configure(Link *link);
25 void ndisc_vacuum(Link *link);
26 void ndisc_flush(Link *link);