Searched refs:link_add_request (Results 1 – 2 of 2) sorted by relevance
46 cuttlefish::NetlinkRequest link_add_request(RTM_NEWLINK, NLM_F_REQUEST|NLM_F_ACK|0x600); in main() local47 link_add_request.Append(ifinfomsg { in main()50 link_add_request.AddString(IFLA_IFNAME, std::string(new_name)); in main()51 link_add_request.AddInt(IFLA_LINK, index); in main()53 link_add_request.PushList(IFLA_LINKINFO); in main()54 link_add_request.AddString(IFLA_INFO_KIND, argv[1]); in main()55 link_add_request.PushList(IFLA_INFO_DATA); in main()58 link_add_request.AddInt(IFLA_VLAN_ID, vlan_index); in main()60 link_add_request.PopList(); in main()61 link_add_request.PopList(); in main()[all …]
76 cuttlefish::NetlinkRequest link_add_request(RTM_NEWLINK, in CreateWifiWrapper() local78 link_add_request.Append(ifinfomsg { in CreateWifiWrapper()85 link_add_request.AddString(IFLA_IFNAME, destination); in CreateWifiWrapper()86 link_add_request.AddInt(IFLA_LINK, index); in CreateWifiWrapper()88 link_add_request.PushList(IFLA_LINKINFO); in CreateWifiWrapper()89 link_add_request.AddString(IFLA_INFO_KIND, "virt_wifi"); in CreateWifiWrapper()90 link_add_request.PushList(IFLA_INFO_DATA); in CreateWifiWrapper()91 link_add_request.PopList(); in CreateWifiWrapper()92 link_add_request.PopList(); in CreateWifiWrapper()94 bool link_add_success = nl->Send(link_add_request); in CreateWifiWrapper()