]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-neighbor.h
network: drop sections contain invalid settings in network_verify()
[thirdparty/systemd.git] / src / network / networkd-neighbor.h
CommitLineData
e4a71bf3
WKI
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#include "sd-netlink.h"
5
6#include "conf-parser.h"
7#include "ether-addr-util.h"
8#include "in-addr-util.h"
9#include "list.h"
10#include "macro.h"
11
12typedef struct Neighbor Neighbor;
13
14#include "networkd-link.h"
15#include "networkd-network.h"
fcbf4cb7 16#include "networkd-util.h"
e4a71bf3
WKI
17
18struct Neighbor {
19 Network *network;
20 Link *link;
21 NetworkConfigSection *section;
22
23 int family;
24 union in_addr_union in_addr;
25 bool mac_configured;
26 struct ether_addr mac;
27
28 LIST_FIELDS(Neighbor, neighbors);
29};
30
31void neighbor_free(Neighbor *neighbor);
32
fcbf4cb7 33DEFINE_NETWORK_SECTION_FUNCTIONS(Neighbor, neighbor_free);
e4a71bf3
WKI
34
35int neighbor_configure(Neighbor *neighbor, Link *link, link_netlink_message_handler_t callback);
36
37CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_address);
38CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_hwaddr);