Lines Matching refs:netId
352 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) { in networkCreatePhysical() argument
354 int ret = gCtls->netCtrl.createPhysicalNetwork(netId, convertPermission(permission)); in networkCreatePhysical()
360 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn() argument
365 int ret = gCtls->netCtrl.createVirtualNetwork(netId, secure, NativeVpnType::LEGACY); in networkCreateVpn()
373 ret = gCtls->netCtrl.createPhysicalNetwork(config.netId, in networkCreate()
376 ret = gCtls->netCtrl.createVirtualNetwork(config.netId, config.secure, config.vpnType); in networkCreate()
381 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy() argument
384 const int ret = gCtls->netCtrl.destroyNetwork(netId); in networkDestroy()
388 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface() argument
390 int ret = gCtls->netCtrl.addInterfaceToNetwork(netId, iface.c_str()); in networkAddInterface()
394 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface() argument
396 int ret = gCtls->netCtrl.removeInterfaceFromNetwork(netId, iface.c_str()); in networkRemoveInterface()
401 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkAddUidRanges() argument
404 int ret = gCtls->netCtrl.addUsersToNetwork(netId, UidRanges(uidRangeArray), in networkAddUidRanges()
410 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkRemoveUidRanges() argument
413 int ret = gCtls->netCtrl.removeUsersFromNetwork(netId, UidRanges(uidRangeArray), in networkRemoveUidRanges()
420 int ret = gCtls->netCtrl.addUsersToNetwork(config.netId, UidRanges(config.uidRanges), in networkAddUidRangesParcel()
427 int ret = gCtls->netCtrl.removeUsersFromNetwork(config.netId, UidRanges(config.uidRanges), in networkRemoveUidRangesParcel()
1013 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet() argument
1016 int res = gCtls->tetherCtrl.setDnsForwarders(netId, dnsAddrs); in tetherDnsSet()
1028 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel() argument
1036 int res = gCtls->netCtrl.addRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkAddRouteParcel()
1042 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel() argument
1050 int res = gCtls->netCtrl.updateRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkUpdateRouteParcel()
1056 binder::Status NetdNativeService::networkRemoveRouteParcel(int32_t netId, in networkRemoveRouteParcel() argument
1058 return networkRemoveRoute(netId, route.ifName, route.destination, route.nextHop); in networkRemoveRouteParcel()
1061 binder::Status NetdNativeService::networkAddRoute(int32_t netId, const std::string& ifName, in networkAddRoute() argument
1068 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddRoute()
1073 binder::Status NetdNativeService::networkRemoveRoute(int32_t netId, const std::string& ifName, in networkRemoveRoute() argument
1079 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveRoute()
1084 binder::Status NetdNativeService::networkAddLegacyRoute(int32_t netId, const std::string& ifName, in networkAddLegacyRoute() argument
1089 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddLegacyRoute()
1095 binder::Status NetdNativeService::networkRemoveLegacyRoute(int32_t netId, const std::string& ifName, in networkRemoveLegacyRoute() argument
1101 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveLegacyRoute()
1107 binder::Status NetdNativeService::networkGetDefault(int32_t* netId) { in networkGetDefault() argument
1109 *netId = gCtls->netCtrl.getDefaultNetwork(); in networkGetDefault()
1113 binder::Status NetdNativeService::networkSetDefault(int32_t netId) { in networkSetDefault() argument
1115 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkSetDefault()
1121 unsigned netId = NETID_UNSET; in networkClearDefault() local
1122 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkClearDefault()
1141 binder::Status NetdNativeService::networkSetPermissionForNetwork(int32_t netId, in networkSetPermissionForNetwork() argument
1144 std::vector<unsigned> netIds = {(unsigned) netId}; in networkSetPermissionForNetwork()
1284 binder::Status NetdNativeService::getFwmarkForNetwork(int32_t netId, MarkMaskParcel* markMask) { in getFwmarkForNetwork() argument
1288 fwmark.netId = netId; in getFwmarkForNetwork()