1 /* SPDX-License-Identifier: LGPL-2.1+ */
4 #include "sd-netlink.h"
6 #include "conf-parser.h"
7 #include "ether-addr-util.h"
8 #include "in-addr-util.h"
12 typedef struct Neighbor Neighbor
;
14 #include "networkd-link.h"
15 #include "networkd-network.h"
16 #include "networkd-util.h"
21 NetworkConfigSection
*section
;
24 union in_addr_union in_addr
;
26 struct ether_addr mac
;
28 LIST_FIELDS(Neighbor
, neighbors
);
31 void neighbor_free(Neighbor
*neighbor
);
33 DEFINE_NETWORK_SECTION_FUNCTIONS(Neighbor
, neighbor_free
);
35 int neighbor_configure(Neighbor
*neighbor
, Link
*link
, link_netlink_message_handler_t callback
);
37 CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_address
);
38 CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_hwaddr
);