Lines Matching refs:netId

347 binder::Status NetdNativeService::networkCreatePhysical(int32_t netId, int32_t permission) {  in networkCreatePhysical()  argument
349 int ret = gCtls->netCtrl.createPhysicalNetwork(netId, convertPermission(permission)); in networkCreatePhysical()
353 binder::Status NetdNativeService::networkCreateVpn(int32_t netId, bool secure) { in networkCreateVpn() argument
355 int ret = gCtls->netCtrl.createVirtualNetwork(netId, secure); in networkCreateVpn()
359 binder::Status NetdNativeService::networkDestroy(int32_t netId) { in networkDestroy() argument
362 const int ret = gCtls->netCtrl.destroyNetwork(netId); in networkDestroy()
366 binder::Status NetdNativeService::networkAddInterface(int32_t netId, const std::string& iface) { in networkAddInterface() argument
368 int ret = gCtls->netCtrl.addInterfaceToNetwork(netId, iface.c_str()); in networkAddInterface()
372 binder::Status NetdNativeService::networkRemoveInterface(int32_t netId, const std::string& iface) { in networkRemoveInterface() argument
374 int ret = gCtls->netCtrl.removeInterfaceFromNetwork(netId, iface.c_str()); in networkRemoveInterface()
379 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkAddUidRanges() argument
382 int ret = gCtls->netCtrl.addUsersToNetwork(netId, UidRanges(uidRangeArray)); in networkAddUidRanges()
387 int32_t netId, const std::vector<UidRangeParcel>& uidRangeArray) { in networkRemoveUidRanges() argument
390 int ret = gCtls->netCtrl.removeUsersFromNetwork(netId, UidRanges(uidRangeArray)); in networkRemoveUidRanges()
975 binder::Status NetdNativeService::tetherDnsSet(int32_t netId, in tetherDnsSet() argument
978 int res = gCtls->tetherCtrl.setDnsForwarders(netId, dnsAddrs); in tetherDnsSet()
990 binder::Status NetdNativeService::networkAddRouteParcel(int32_t netId, in networkAddRouteParcel() argument
998 int res = gCtls->netCtrl.addRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkAddRouteParcel()
1004 binder::Status NetdNativeService::networkUpdateRouteParcel(int32_t netId, in networkUpdateRouteParcel() argument
1012 int res = gCtls->netCtrl.updateRoute(netId, route.ifName.c_str(), route.destination.c_str(), in networkUpdateRouteParcel()
1018 binder::Status NetdNativeService::networkRemoveRouteParcel(int32_t netId, in networkRemoveRouteParcel() argument
1020 return networkRemoveRoute(netId, route.ifName, route.destination, route.nextHop); in networkRemoveRouteParcel()
1023 binder::Status NetdNativeService::networkAddRoute(int32_t netId, const std::string& ifName, in networkAddRoute() argument
1030 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddRoute()
1035 binder::Status NetdNativeService::networkRemoveRoute(int32_t netId, const std::string& ifName, in networkRemoveRoute() argument
1041 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveRoute()
1046 binder::Status NetdNativeService::networkAddLegacyRoute(int32_t netId, const std::string& ifName, in networkAddLegacyRoute() argument
1051 int res = gCtls->netCtrl.addRoute(netId, ifName.c_str(), destination.c_str(), in networkAddLegacyRoute()
1057 binder::Status NetdNativeService::networkRemoveLegacyRoute(int32_t netId, const std::string& ifName, in networkRemoveLegacyRoute() argument
1063 int res = gCtls->netCtrl.removeRoute(netId, ifName.c_str(), destination.c_str(), in networkRemoveLegacyRoute()
1069 binder::Status NetdNativeService::networkGetDefault(int32_t* netId) { in networkGetDefault() argument
1071 *netId = gCtls->netCtrl.getDefaultNetwork(); in networkGetDefault()
1075 binder::Status NetdNativeService::networkSetDefault(int32_t netId) { in networkSetDefault() argument
1077 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkSetDefault()
1083 unsigned netId = NETID_UNSET; in networkClearDefault() local
1084 int res = gCtls->netCtrl.setDefaultNetwork(netId); in networkClearDefault()
1103 binder::Status NetdNativeService::networkSetPermissionForNetwork(int32_t netId, in networkSetPermissionForNetwork() argument
1106 std::vector<unsigned> netIds = {(unsigned) netId}; in networkSetPermissionForNetwork()
1246 binder::Status NetdNativeService::getFwmarkForNetwork(int32_t netId, MarkMaskParcel* markMask) { in getFwmarkForNetwork() argument
1250 fwmark.netId = netId; in getFwmarkForNetwork()