Searched refs:master_ifindex (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/network/ |
D | networkd-bridge-mdb.c | 91 if (r == -EINVAL && streq_ptr(link->kind, "bridge") && link->master_ifindex <= 0) { in bridge_mdb_configure_handler() 133 .state = link->master_ifindex <= 0 ? MDB_TEMPORARY : MDB_PERMANENT, in bridge_mdb_configure() 154 … link->master_ifindex > 0 ? link->master_ifindex : link->ifindex); in bridge_mdb_configure() 176 if (link->master_ifindex <= 0 && streq_ptr(link->kind, "bridge")) in bridge_mdb_is_ready_to_configure()
|
D | networkd-link.c | 298 if (link->master_ifindex <= 0 || link->master_ifindex == link->ifindex) in link_get_master() 301 return link_get_by_index(link->manager, link->master_ifindex, ret); in link_get_master() 1739 if (link->master_ifindex > 0) in link_is_enslaved() 2020 int master_ifindex, r; in link_update_master() local 2025 r = sd_netlink_message_read_u32(message, IFLA_MASTER, (uint32_t*) &master_ifindex); in link_update_master() 2031 if (master_ifindex == link->ifindex) in link_update_master() 2032 master_ifindex = 0; in link_update_master() 2034 if (master_ifindex == link->master_ifindex) in link_update_master() 2037 if (link->master_ifindex == 0) in link_update_master() 2038 log_link_debug(link, "Attached to master interface: %i", master_ifindex); in link_update_master() [all …]
|
D | networkd-setlink.c | 335 if (link->master_ifindex <= 0) { in link_configure_fill_message() 428 … r = sd_rtnl_message_new_link(link->manager->rtnl, &m, RTM_NEWLINK, link->master_ifindex); in link_configure() 471 if (link->network->keep_master && link->master_ifindex <= 0) in link_is_ready_to_set_link() 479 … if (link->network->keep_master && link->master_ifindex <= 0 && !streq_ptr(link->kind, "bridge")) in link_is_ready_to_set_link()
|
D | networkd-link.h | 53 int master_ifindex; member
|
D | networkd-json.c | 1174 JSON_BUILD_PAIR_CONDITION(link->master_ifindex > 0, in link_build_json() 1175 … "MasterInterfaceIndex", JSON_BUILD_INTEGER(link->master_ifindex)), in link_build_json()
|