]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-fdb.h
Merge pull request #9039 from yuwata/fix-device-allow
[thirdparty/systemd.git] / src / network / networkd-fdb.h
CommitLineData
53e1b683 1/* SPDX-License-Identifier: LGPL-2.1+ */
fc2f9534
LP
2#pragma once
3
4/***
5 This file is part of systemd.
6
7 Copyright (C) 2014 Intel Corporation. All rights reserved.
fc2f9534
LP
8***/
9
a2106925 10#include "conf-parser.h"
634f0f98
ZJS
11#include "list.h"
12#include "macro.h"
fc2f9534 13
634f0f98
ZJS
14typedef struct Network Network;
15typedef struct FdbEntry FdbEntry;
16typedef struct Link Link;
fc2f9534
LP
17
18struct FdbEntry {
19 Network *network;
20 unsigned section;
21
22 struct ether_addr *mac_addr;
23 uint16_t vlan_id;
24
25 LIST_FIELDS(FdbEntry, static_fdb_entries);
26};
27
a60a720c 28int fdb_entry_new_static(Network *network, unsigned section, FdbEntry **ret);
fc2f9534 29void fdb_entry_free(FdbEntry *fdb_entry);
a60a720c 30int fdb_entry_configure(Link *link, FdbEntry *fdb_entry);
fc2f9534
LP
31
32DEFINE_TRIVIAL_CLEANUP_FUNC(FdbEntry*, fdb_entry_free);
fc2f9534 33
a2106925
LP
34CONFIG_PARSER_PROTOTYPE(config_parse_fdb_hwaddr);
35CONFIG_PARSER_PROTOTYPE(config_parse_fdb_vlan_id);