1 /* SPDX-License-Identifier: LGPL-2.1-or-later */ 2 #pragma once 3 4 #include <inttypes.h> 5 #include <stdbool.h> 6 7 typedef struct Link Link; 8 9 int link_request_to_set_addrgen_mode(Link *link); 10 int link_request_to_set_bond(Link *link); 11 int link_request_to_set_bridge(Link *link); 12 int link_request_to_set_bridge_vlan(Link *link); 13 int link_request_to_set_can(Link *link); 14 int link_request_to_set_flags(Link *link); 15 int link_request_to_set_group(Link *link); 16 int link_request_to_set_mac(Link *link, bool allow_retry); 17 int link_request_to_set_ipoib(Link *link); 18 int link_request_to_set_master(Link *link); 19 int link_request_to_set_mtu(Link *link, uint32_t mtu); 20 21 int link_configure_mtu(Link *link); 22 23 int link_request_to_activate(Link *link); 24 25 int link_request_to_bring_up_or_down(Link *link, bool up); 26 27 int link_down_now(Link *link); 28 int link_remove(Link *link); 29