Lines Matching refs:network
202 if (link->network->active_slave) { in link_configure_fill_message()
208 if (link->network->primary_slave) { in link_configure_fill_message()
232 if (link->network->use_bpdu >= 0) { in link_configure_fill_message()
233 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_GUARD, link->network->use_bpdu); in link_configure_fill_message()
238 if (link->network->hairpin >= 0) { in link_configure_fill_message()
239 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_MODE, link->network->hairpin); in link_configure_fill_message()
244 if (link->network->isolated >= 0) { in link_configure_fill_message()
245 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_ISOLATED, link->network->isolated); in link_configure_fill_message()
250 if (link->network->fast_leave >= 0) { in link_configure_fill_message()
251 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_FAST_LEAVE, link->network->fast_leave); in link_configure_fill_message()
256 if (link->network->allow_port_to_be_root >= 0) { in link_configure_fill_message()
257 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_PROTECT, link->network->allow_port_to_be_root); in link_configure_fill_message()
262 if (link->network->unicast_flood >= 0) { in link_configure_fill_message()
263 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_UNICAST_FLOOD, link->network->unicast_flood); in link_configure_fill_message()
268 if (link->network->multicast_flood >= 0) { in link_configure_fill_message()
269 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_MCAST_FLOOD, link->network->multicast_flood); in link_configure_fill_message()
274 if (link->network->multicast_to_unicast >= 0) { in link_configure_fill_message()
275 …r = sd_netlink_message_append_u8(req, IFLA_BRPORT_MCAST_TO_UCAST, link->network->multicast_to_unic… in link_configure_fill_message()
280 if (link->network->neighbor_suppression >= 0) { in link_configure_fill_message()
281 …r = sd_netlink_message_append_u8(req, IFLA_BRPORT_NEIGH_SUPPRESS, link->network->neighbor_suppress… in link_configure_fill_message()
286 if (link->network->learning >= 0) { in link_configure_fill_message()
287 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_LEARNING, link->network->learning); in link_configure_fill_message()
292 if (link->network->bridge_proxy_arp >= 0) { in link_configure_fill_message()
293 … r = sd_netlink_message_append_u8(req, IFLA_BRPORT_PROXYARP, link->network->bridge_proxy_arp); in link_configure_fill_message()
298 if (link->network->bridge_proxy_arp_wifi >= 0) { in link_configure_fill_message()
299 …r = sd_netlink_message_append_u8(req, IFLA_BRPORT_PROXYARP_WIFI, link->network->bridge_proxy_arp_w… in link_configure_fill_message()
304 if (link->network->cost != 0) { in link_configure_fill_message()
305 … r = sd_netlink_message_append_u32(req, IFLA_BRPORT_COST, link->network->cost); in link_configure_fill_message()
310 if (link->network->priority != LINK_BRIDGE_PORT_PRIORITY_INVALID) { in link_configure_fill_message()
311 … r = sd_netlink_message_append_u16(req, IFLA_BRPORT_PRIORITY, link->network->priority); in link_configure_fill_message()
316 if (link->network->multicast_router != _MULTICAST_ROUTER_INVALID) { in link_configure_fill_message()
317 … = sd_netlink_message_append_u8(req, IFLA_BRPORT_MULTICAST_ROUTER, link->network->multicast_router… in link_configure_fill_message()
342 …r = bridge_vlan_append_info(link, req, link->network->pvid, link->network->br_vid_bitmap, link->ne… in link_configure_fill_message()
359 if (link->network->arp >= 0) { in link_configure_fill_message()
361 SET_FLAG(ifi_flags, IFF_NOARP, link->network->arp == 0); in link_configure_fill_message()
364 if (link->network->multicast >= 0) { in link_configure_fill_message()
366 SET_FLAG(ifi_flags, IFF_MULTICAST, link->network->multicast); in link_configure_fill_message()
369 if (link->network->allmulticast >= 0) { in link_configure_fill_message()
371 SET_FLAG(ifi_flags, IFF_ALLMULTI, link->network->allmulticast); in link_configure_fill_message()
374 if (link->network->promiscuous >= 0) { in link_configure_fill_message()
376 SET_FLAG(ifi_flags, IFF_PROMISC, link->network->promiscuous); in link_configure_fill_message()
386 r = sd_netlink_message_append_u32(req, IFLA_GROUP, (uint32_t) link->network->group); in link_configure_fill_message()
459 assert(link->network); in link_is_ready_to_set_link()
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()
513 if (link->network->batadv) { in link_is_ready_to_set_link()
514 if (!netdev_is_ready(link->network->batadv)) in link_is_ready_to_set_link()
516 m = link->network->batadv->ifindex; in link_is_ready_to_set_link()
517 } else if (link->network->bond) { in link_is_ready_to_set_link()
520 if (!netdev_is_ready(link->network->bond)) in link_is_ready_to_set_link()
522 m = link->network->bond->ifindex; in link_is_ready_to_set_link()
532 } else if (link->network->bridge) { in link_is_ready_to_set_link()
535 if (!netdev_is_ready(link->network->bridge)) in link_is_ready_to_set_link()
537 m = link->network->bridge->ifindex; in link_is_ready_to_set_link()
538 } else if (link->network->vrf) { in link_is_ready_to_set_link()
539 if (!netdev_is_ready(link->network->vrf)) in link_is_ready_to_set_link()
541 m = link->network->vrf->ifindex; in link_is_ready_to_set_link()
612 assert(link->network); in link_request_to_set_addrgen_mode()
647 assert(link->network); in link_request_to_set_bond()
649 if (!link->network->bond) { in link_request_to_set_bond()
652 if (!link->network->keep_master) in link_request_to_set_bond()
668 assert(link->network); in link_request_to_set_bridge()
670 if (!link->network->bridge) { in link_request_to_set_bridge()
673 if (!link->network->keep_master) in link_request_to_set_bridge()
690 assert(link->network); in link_request_to_set_bridge_vlan()
692 if (!link->network->use_br_vlan) in link_request_to_set_bridge_vlan()
695 if (!link->network->bridge && !streq_ptr(link->kind, "bridge")) { in link_request_to_set_bridge_vlan()
698 if (!link->network->keep_master) in link_request_to_set_bridge_vlan()
715 assert(link->network); in link_request_to_set_can()
730 assert(link->network); in link_request_to_set_flags()
732 if (link->network->arp < 0 && in link_request_to_set_flags()
733 link->network->multicast < 0 && in link_request_to_set_flags()
734 link->network->allmulticast < 0 && in link_request_to_set_flags()
735 link->network->promiscuous < 0) in link_request_to_set_flags()
745 assert(link->network); in link_request_to_set_group()
747 if (link->network->group < 0) in link_request_to_set_group()
759 assert(link->network); in link_request_to_set_mac()
761 if (link->network->hw_addr.length == 0) in link_request_to_set_mac()
764 link->requested_hw_addr = link->network->hw_addr; in link_request_to_set_mac()
780 assert(link->network); in link_request_to_set_ipoib()
785 if (link->network->ipoib_mode < 0 && in link_request_to_set_ipoib()
786 link->network->ipoib_umcast < 0) in link_request_to_set_ipoib()
796 assert(link->network); in link_request_to_set_master()
798 if (link->network->keep_master) { in link_request_to_set_master()
805 … if (link->network->batadv || link->network->bond || link->network->bridge || link->network->vrf) in link_request_to_set_master()
822 assert(link->network); in link_request_to_set_mtu()
833 if (min_mtu < link->network->ipv6_mtu) { in link_request_to_set_mtu()
834 min_mtu = link->network->ipv6_mtu; in link_request_to_set_mtu()
873 HASHMAP_FOREACH(dev, link->network->stacked_netdevs) in link_get_requested_mtu_by_stacked_netdevs()
889 assert(link->network); in link_configure_mtu()
891 if (link->network->mtu > 0) in link_configure_mtu()
892 return link_request_to_set_mtu(link, link->network->mtu); in link_configure_mtu()
1042 assert(link->network); in link_request_to_activate()
1044 switch (link->network->activation_policy) { in link_request_to_activate()