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"
20 NetworkConfigSection
*section
;
23 union in_addr_union in_addr
;
25 struct ether_addr mac
;
27 LIST_FIELDS(Neighbor
, neighbors
);
30 void neighbor_free(Neighbor
*neighbor
);
32 DEFINE_TRIVIAL_CLEANUP_FUNC(Neighbor
*, neighbor_free
);
34 int neighbor_configure(Neighbor
*neighbor
, Link
*link
, link_netlink_message_handler_t callback
);
36 CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_address
);
37 CONFIG_PARSER_PROTOTYPE(config_parse_neighbor_hwaddr
);