]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/shared/bridge-util.c
Merge pull request #16491 from keszybz/udev-logging
[thirdparty/systemd.git] / src / shared / bridge-util.c
CommitLineData
af94bb24
SS
1/* SPDX-License-Identifier: LGPL-2.1+ */
2
3#include "bridge-util.h"
4#include "string-table.h"
5
6static const char* const bridge_state_table[_NETDEV_BRIDGE_STATE_MAX] = {
7 [NETDEV_BRIDGE_STATE_DISABLED] = "disabled",
8 [NETDEV_BRIDGE_STATE_LISTENING] = "listening",
4c6a4a5b 9 [NETDEV_BRIDGE_STATE_LEARNING] = "learning",
f1e318f6 10 [NETDEV_BRIDGE_STATE_FORWARDING] = "forwarding",
af94bb24
SS
11};
12
13DEFINE_STRING_TABLE_LOOKUP(bridge_state, BridgeState);