Lines Matching refs:netId

37 // Utility to convert from netId to net_handle_t. Doing this here as opposed to exporting
39 // obtaining handle given netId.
88 int setDefaultNetwork(unsigned netId) WARN_UNUSED_RESULT;
90 // Sets |*netId| to an appropriate NetId to use for DNS for the given user. Call with |*netId|
93 uint32_t getNetworkForDns(unsigned* netId, uid_t uid) const;
96 void getNetworkContext(unsigned netId, uid_t uid, struct android_net_context* netcontext) const;
98 bool isVirtualNetwork(unsigned netId) const;
100 int createPhysicalNetwork(unsigned netId, Permission permission) WARN_UNUSED_RESULT;
101 int createPhysicalOemNetwork(Permission permission, unsigned *netId) WARN_UNUSED_RESULT;
102 int createVirtualNetwork(unsigned netId, bool hasDns, bool secure) WARN_UNUSED_RESULT;
103 int destroyNetwork(unsigned netId) WARN_UNUSED_RESULT;
105 int addInterfaceToNetwork(unsigned netId, const char* interface) WARN_UNUSED_RESULT;
106 int removeInterfaceFromNetwork(unsigned netId, const char* interface) WARN_UNUSED_RESULT;
110 int checkUserNetworkAccess(uid_t uid, unsigned netId) const;
114 int addUsersToNetwork(unsigned netId, const UidRanges& uidRanges) WARN_UNUSED_RESULT;
115 int removeUsersFromNetwork(unsigned netId, const UidRanges& uidRanges) WARN_UNUSED_RESULT;
121 // |netId| is given only to sanity check that the interface has the correct netId.
122 int addRoute(unsigned netId, const char* interface, const char* destination,
124 int removeRoute(unsigned netId, const char* interface, const char* destination,
134 bool isValidNetwork(unsigned netId) const;
135 bool isValidNetworkLocked(unsigned netId) const;
136 Network* getNetworkLocked(unsigned netId) const;
139 int checkUserNetworkAccessLocked(uid_t uid, unsigned netId) const;
140 int createPhysicalNetworkLocked(unsigned netId, Permission permission) WARN_UNUSED_RESULT;
142 int modifyRoute(unsigned netId, const char* interface, const char* destination,