]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-fdb.h
Merge pull request #10407 from yuwata/netlink-slot
[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"
fc2f9534 11
634f0f98
ZJS
12typedef struct Network Network;
13typedef struct FdbEntry FdbEntry;
14typedef struct Link Link;
fc2f9534
LP
15
16struct FdbEntry {
17 Network *network;
18 unsigned section;
19
20 struct ether_addr *mac_addr;
21 uint16_t vlan_id;
22
23 LIST_FIELDS(FdbEntry, static_fdb_entries);
24};
25
a60a720c 26int fdb_entry_new_static(Network *network, unsigned section, FdbEntry **ret);
fc2f9534 27void fdb_entry_free(FdbEntry *fdb_entry);
a60a720c 28int fdb_entry_configure(Link *link, FdbEntry *fdb_entry);
fc2f9534
LP
29
30DEFINE_TRIVIAL_CLEANUP_FUNC(FdbEntry*, fdb_entry_free);
fc2f9534 31
a2106925
LP
32CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr);
33CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id);