Lines Matching refs:netid
26 static int getnetidfromhandle(net_handle_t handle, unsigned *netid) { in getnetidfromhandle() argument
38 if (netid != NULL) { in getnetidfromhandle()
39 *netid = ((handle >> (CHAR_BIT * sizeof(k32BitMask))) & k32BitMask); in getnetidfromhandle()
46 unsigned netid; in android_setsocknetwork() local
47 if (!getnetidfromhandle(network, &netid)) { in android_setsocknetwork()
52 int rval = setNetworkForSocket(netid, fd); in android_setsocknetwork()
61 unsigned netid; in android_setprocnetwork() local
62 if (!getnetidfromhandle(network, &netid)) { in android_setprocnetwork()
67 int rval = setNetworkForProcess(netid); in android_setprocnetwork()
78 unsigned netid; in android_getaddrinfofornetwork() local
79 if (!getnetidfromhandle(network, &netid)) { in android_getaddrinfofornetwork()
84 return android_getaddrinfofornet(node, service, hints, netid, 0, res); in android_getaddrinfofornetwork()
89 unsigned netid; in android_res_nquery() local
90 if (!getnetidfromhandle(network, &netid)) { in android_res_nquery()
94 return resNetworkQuery(netid, dname, ns_class, ns_type, flags); in android_res_nquery()
103 unsigned netid; in android_res_nsend() local
104 if (!getnetidfromhandle(network, &netid)) { in android_res_nsend()
108 return resNetworkSend(netid, msg, msglen, flags); in android_res_nsend()