Lines Matching refs:req
1149 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1158 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
1162 r = sd_netlink_message_append_u32(req, IFLA_MTU, mtu);
1166 r = sd_netlink_call_async(link->manager->rtnl, req, set_mtu_handler, link, 0, NULL);
1176 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1182 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
1186 r = sd_rtnl_message_link_set_family(req, PF_BRIDGE);
1190 r = sd_netlink_message_open_container(req, IFLA_PROTINFO);
1194 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_GUARD, !link->network->use_bpdu);
1198 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_MODE, link->network->hairpin);
1202 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_FAST_LEAVE, link->network->fast_leave);
1206 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_PROTECT, !link->network->allow_port_to_be_root);
1210 r = sd_netlink_message_append_u8(req, IFLA_BRPORT_UNICAST_FLOOD, link->network->unicast_flood);
1215 r = sd_netlink_message_append_u32(req, IFLA_BRPORT_COST, link->network->cost);
1220 r = sd_netlink_message_close_container(req);
1224 r = sd_netlink_call_async(link->manager->rtnl, req, link_set_handler, link, 0, NULL);
1360 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1371 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_SETLINK, link->ifindex);
1375 r = sd_rtnl_message_link_set_flags(req, IFF_UP, IFF_UP);
1380 r = sd_netlink_message_append_ether_addr(req, IFLA_ADDRESS, link->network->mac);
1386 r = sd_netlink_message_append_u32(req, IFLA_MTU, link->network->mtu);
1391 r = sd_netlink_message_open_container(req, IFLA_AF_SPEC);
1397 r = sd_netlink_message_open_container(req, AF_INET6);
1402 r = sd_netlink_message_append_u8(req, IFLA_INET6_ADDR_GEN_MODE, ipv6ll_mode);
1407 r = sd_netlink_message_append_in6_addr(req, IFLA_INET6_TOKEN, &link->network->ipv6_token.in6);
1412 r = sd_netlink_message_close_container(req);
1417 r = sd_netlink_message_close_container(req);
1421 r = sd_netlink_call_async(link->manager->rtnl, req, link_up_handler, link, 0, NULL);
1447 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
1456 r = sd_rtnl_message_new_link(link->manager->rtnl, &req,
1461 r = sd_rtnl_message_link_set_flags(req, 0, IFF_UP);
1465 r = sd_netlink_call_async(link->manager->rtnl, req, link_down_handler, link, 0, NULL);
2201 _cleanup_(sd_netlink_message_unrefp) sd_netlink_message *req = NULL;
2224 r = sd_rtnl_message_new_link(link->manager->rtnl, &req, RTM_GETLINK,
2229 r = sd_netlink_call_async(link->manager->rtnl, req,