Lines Matching refs:netId

97     [[nodiscard]] int setDefaultNetwork(unsigned netId);
101 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const;
103 bool isVirtualNetwork(unsigned netId) const;
105 [[nodiscard]] int createPhysicalNetwork(unsigned netId, Permission permission);
106 [[nodiscard]] int createPhysicalOemNetwork(Permission permission, unsigned* netId);
107 [[nodiscard]] int createVirtualNetwork(unsigned netId, bool secure);
108 [[nodiscard]] int destroyNetwork(unsigned netId);
110 [[nodiscard]] int addInterfaceToNetwork(unsigned netId, const char* interface);
111 [[nodiscard]] int removeInterfaceFromNetwork(unsigned netId, const char* interface);
115 int checkUserNetworkAccess(uid_t uid, unsigned netId) const;
119 [[nodiscard]] int addUsersToNetwork(unsigned netId, const UidRanges& uidRanges);
120 [[nodiscard]] int removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges);
127 [[nodiscard]] int addRoute(unsigned netId, const char* interface, const char* destination,
129 [[nodiscard]] int updateRoute(unsigned netId, const char* interface, const char* destination,
131 [[nodiscard]] int removeRoute(unsigned netId, const char* interface, const char* destination,
147 bool isValidNetworkLocked(unsigned netId) const;
148 Network* getNetworkLocked(unsigned netId) const;
153 uint32_t getNetworkForDnsLocked(unsigned* netId, uid_t uid) const;
159 bool isVirtualNetworkLocked(unsigned netId) const;
162 int checkUserNetworkAccessLocked(uid_t uid, unsigned netId) const;
163 [[nodiscard]] int createPhysicalNetworkLocked(unsigned netId, Permission permission);
165 [[nodiscard]] int modifyRoute(unsigned netId, const char* interface, const char* destination,