1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 Copyright © 2014 Intel Corporation. All rights reserved.
8 #include "conf-parser.h"
12 typedef struct Network Network
;
13 typedef struct FdbEntry FdbEntry
;
14 typedef struct Link Link
;
15 typedef struct NetworkConfigSection NetworkConfigSection
;
19 NetworkConfigSection
*section
;
21 struct ether_addr
*mac_addr
;
24 LIST_FIELDS(FdbEntry
, static_fdb_entries
);
27 int fdb_entry_new_static(Network
*network
, const char *filename
, unsigned section_line
, FdbEntry
**ret
);
28 void fdb_entry_free(FdbEntry
*fdb_entry
);
29 int fdb_entry_configure(Link
*link
, FdbEntry
*fdb_entry
);
31 DEFINE_TRIVIAL_CLEANUP_FUNC(FdbEntry
*, fdb_entry_free
);
33 CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr
);
34 CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id
);