]> git.ipfire.org Git - thirdparty/systemd.git/blame - src/network/networkd-lldp-rx.h
network: add RoutingPolicyRule.Family= setting
[thirdparty/systemd.git] / src / network / networkd-lldp-rx.h
CommitLineData
7f853950
YW
1/* SPDX-License-Identifier: LGPL-2.1+ */
2#pragma once
3
4#include <stdbool.h>
5
6#include "conf-parser.h"
7
8typedef struct Link Link;
9
10typedef enum LLDPMode {
11 LLDP_MODE_NO = 0,
12 LLDP_MODE_YES = 1,
13 LLDP_MODE_ROUTERS_ONLY = 2,
14 _LLDP_MODE_MAX,
15 _LLDP_MODE_INVALID = -1,
16} LLDPMode;
17
18bool link_lldp_rx_enabled(Link *link);
19int link_lldp_rx_configure(Link *link);
20int link_update_lldp(Link *link);
21int link_lldp_save(Link *link);
22
23const char* lldp_mode_to_string(LLDPMode m) _const_;
24LLDPMode lldp_mode_from_string(const char *s) _pure_;
25
26CONFIG_PARSER_PROTOTYPE(config_parse_lldp_mode);