]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-fdb.h
network: drop sections contain invalid settings in network_verify()
[thirdparty/systemd.git] / src / network / networkd-fdb.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
fc2f9534
LP
2#pragma once
3
4/***
810adae9 5 Copyright © 2014 Intel Corporation. All rights reserved.
fc2f9534
LP
6***/
7
a2106925 8#include "conf-parser.h"
634f0f98
ZJS
9#include "list.h"
10#include "macro.h"
fcbf4cb7 11#include "networkd-util.h"
fc2f9534 12
634f0f98
ZJS
13typedef struct Network Network;
14typedef struct FdbEntry FdbEntry;
15typedef struct Link Link;
1a75764a 16typedef struct NetworkConfigSection NetworkConfigSection;
fc2f9534
LP
17
18struct FdbEntry {
19 Network *network;
1a75764a 20 NetworkConfigSection *section;
fc2f9534
LP
21
22 struct ether_addr *mac_addr;
23 uint16_t vlan_id;
24
25 LIST_FIELDS(FdbEntry, static_fdb_entries);
26};
27
fc2f9534 28void fdb_entry_free(FdbEntry *fdb_entry);
a60a720c 29int fdb_entry_configure(Link *link, FdbEntry *fdb_entry);
fc2f9534 30
fcbf4cb7 31DEFINE_NETWORK_SECTION_FUNCTIONS(FdbEntry, fdb_entry_free);
fc2f9534 32
a2106925
LP
33CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr);
34CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id);