HomeSort by relevance Sort by last modified time
    Searched refs:netid (Results 1 - 25 of 33) sorted by null

1 2

  /frameworks/base/native/android/
net.c 26 static int getnetidfromhandle(net_handle_t handle, unsigned *netid) {
38 if (netid != NULL) {
39 *netid = ((handle >> (CHAR_BIT * sizeof(k32BitMask))) & k32BitMask);
46 unsigned netid; local
47 if (!getnetidfromhandle(network, &netid)) {
52 int rval = setNetworkForSocket(netid, fd);
61 unsigned netid; local
62 if (!getnetidfromhandle(network, &netid)) {
67 int rval = setNetworkForProcess(netid);
78 unsigned netid; local
    [all...]
  /bionic/libc/dns/include/
resolv_cache.h 51 _resolv_cache_lookup( unsigned netid,
63 _resolv_cache_add( unsigned netid,
72 _resolv_cache_query_failed( unsigned netid,
resolv_netid.h 40 * Passing NETID_UNSET as the netId causes system/netd/server/DnsProxyListener.cpp to
41 * fill in the appropriate default netId for the query.
90 extern int _resolv_set_nameservers_for_net(unsigned netid, const char** servers,
94 extern void _resolv_flush_cache_for_net(unsigned netid) __used_in_netd;
97 extern void _resolv_delete_cache_for_net(unsigned netid) __used_in_netd;
105 extern void _resolv_delete_cache_for_net(unsigned netid);
resolv_stats.h 72 android_net_res_stats_get_info_for_net(unsigned netid, int* nscount,
  /system/extras/tests/net_test/
anycast_test.py 69 def AnycastSetsockopt(self, s, is_add, netid, addr):
70 ifindex = self.ifindices[netid]
77 netid = self._TEST_NETID
78 self.assertNotIn(netid, self.tuns)
79 self.tuns[netid] = self.CreateTunInterface(netid)
80 self.SendRA(netid)
81 iface = self.GetInterfaceName(netid)
82 self.ifindices[netid] = net_test.GetInterfaceIndex(iface)
85 addr = self.MyAddress(6, netid)
    [all...]
multinetwork_base.py 142 def UidRangeForNetid(cls, netid):
144 cls.UID_RANGE_SIZE * netid,
145 cls.UID_RANGE_SIZE * (netid + 1) - 1
149 def UidForNetid(cls, netid):
150 return random.randint(*cls.UidRangeForNetid(netid))
153 def _TableForNetid(cls, netid):
154 if cls.AUTOCONF_TABLE_OFFSET and netid in cls.ifindices:
155 return cls.ifindices[netid] + (-cls.AUTOCONF_TABLE_OFFSET)
157 return netid
160 def GetInterfaceName(netid)
    [all...]
tcp_test.py 48 def OpenListenSocket(self, version, netid):
56 self.SelectInterface(s, netid, "mark")
60 def _ReceiveAndExpectResponse(self, netid, packet, reply, msg):
61 pkt = super(TcpBaseTest, self)._ReceiveAndExpectResponse(netid, packet,
66 def ReceivePacketOn(self, netid, packet):
67 super(TcpBaseTest, self).ReceivePacketOn(netid, packet)
74 def IncomingConnection(self, version, end_state, netid):
75 self.s = self.OpenListenSocket(version, netid)
79 myaddr = self.myaddr = self.MyAddress(version, netid)
90 reply = self._ReceiveAndExpectResponse(netid, syn, synack, msg
    [all...]
multinetwork_test.py 53 def _SetInboundMarking(cls, netid, is_add):
56 iface = cls.GetInterfaceName(netid)
60 iptables, add_del, iface, netid)
69 for netid in cls.tuns:
70 cls._SetInboundMarking(netid, True)
74 for netid in cls.tuns:
75 cls._SetInboundMarking(netid, False)
94 def CheckPingPacket(self, version, netid, routing_mode, dstaddr, packet):
95 s = self.BuildSocket(version, net_test.PingSocket, netid, routing_mode)
97 myaddr = self.MyAddress(version, netid)
    [all...]
forwarding_test.py 44 def CheckForwardingCrash(self, netid, iface1, iface2):
50 self.SetSocketMark(listensocket, netid)
54 myaddr = self.MyAddress(version, netid)
59 reply = self._ReceiveAndExpectResponse(netid, syn, synack, msg)
62 self.ReceivePacketOn(netid, establishing_ack)
68 self.ExpectPacketOn(netid, msg + ": expecting %s after close" % desc, fin)
71 self.ReceivePacketOn(netid, finack)
84 self.iproute.DelAddress(myaddr, 64, self.ifindices[netid])
93 self.SendRA(netid)
100 netid, iface1, iface2 = random.sample(netids, 3
    [all...]
neighbour_test.py 59 for netid in cls.tuns:
60 iface = cls.GetInterfaceName(netid)
69 for netid in self.tuns:
72 addr = self._RouterAddress(netid, 6)
73 ifindex = self.ifindices[netid]
77 self.SendRA(netid,
85 self.netid = random.choice(self.tuns.keys())
86 self.ifindex = self.ifindices[self.netid]
118 llsrc = self.MyMacAddress(self.netid)
120 src = self.MyLinkLocalAddress(self.netid)
    [all...]
srcaddr_selection_test.py 70 def GetSourceIP(self, netid, mode="mark"):
71 s = self.BuildSocket(6, net_test.UDPSocket, netid, mode)
100 def SendWithSourceAddress(self, address, netid, dest=net_test.IPV6_ADDR):
103 s = self.BuildSocket(6, net_test.UDPSocket, netid, "mark")
106 def assertAddressUsable(self, address, netid):
108 self.SendWithSourceAddress(address, netid)
111 def assertAddressNotUsable(self, address, netid):
114 self.SendWithSourceAddress, address, netid)
116 def assertAddressSelected(self, address, netid):
117 self.assertEquals(address, self.GetSourceIP(netid))
    [all...]
sock_diag_test.py 361 netid = random.choice(self.tuns.keys())
362 self.IncomingConnection(5, tcp_test.TCP_SYN_RECV, netid)
382 self.netid = random.choice(self.tuns.keys())
397 self.ExpectPacketOn(self.netid, msg, rst)
400 self.ExpectNoPacketsOn(self.netid, msg)
408 self.IncomingConnection(version, state, self.netid)
433 self.IncomingConnection(version, state, self.netid)
512 self.IncomingConnection(version, tcp_test.TCP_LISTEN, self.netid)
520 self.IncomingConnection(version, tcp_test.TCP_ESTABLISHED, self.netid)
530 self.SelectInterface(s, self.netid, "mark"
    [all...]
ping6_test.py 191 cls.netid = random.choice(cls.NETIDS)
193 cls.tuns[cls.netid],
194 cls.MyMacAddress(cls.netid),
195 cls.RouterMacAddress(cls.netid))
196 cls.SetDefaultNetwork(cls.netid)
206 self.ifname = self.GetInterfaceName(self.netid)
207 self.ifindex = self.ifindices[self.netid]
  /external/dnsmasq/src/
rfc2131.c 97 static size_t dhcp_packet_size(struct dhcp_packet *mess, struct dhcp_netid *netid,
106 struct dhcp_netid *netid,
116 static int prune_vendor_opts(struct dhcp_netid *netid);
117 static struct dhcp_opt *pxe_opts(int pxe_arch, struct dhcp_netid *netid);
118 struct dhcp_boot *find_boot(struct dhcp_netid *netid);
139 struct dhcp_netid *netid; local
156 netid = &iface_id;
240 vendor->netid.next = netid;
241 netid = &vendor->netid
    [all...]
option.c 316 { LOPT_MATCH, ARG_DUP, "<netid>,<optspec>", gettext_noop("Set tag if client includes matching option in request."), NULL },
677 new->netid = NULL;
721 new->netid = opt_malloc(sizeof (struct dhcp_netid));
724 new->netid->net = opt_string_alloc(arg+4);
726 new->netid->net = opt_string_alloc(arg);
727 new->netid->next = np;
728 np = new->netid;
957 !new->netid ||
958 new->netid->next)
    [all...]
dnsmasq.h 450 struct dhcp_netid netid; member in struct:dhcp_config
478 struct dhcp_netid *netid; member in struct:dhcp_opt
497 struct dhcp_netid *netid; member in struct:dhcp_boot
505 struct dhcp_netid *netid; member in struct:pxe_service
519 struct dhcp_netid netid; member in struct:dhcp_vendor
527 struct dhcp_netid netid; member in struct:dhcp_mac
548 struct dhcp_netid netid, *filter; member in struct:dhcp_context
  /system/netd/server/
ResolverController.h 40 int setDnsServers(unsigned netId, const char* searchDomains, const char** servers,
43 int clearDnsServers(unsigned netid);
45 int flushDnsCache(unsigned netid);
47 int getDnsInfo(unsigned netId, std::vector<std::string>* servers,
53 int setResolverConfiguration(int32_t netId, const std::vector<std::string>& servers,
56 int getResolverInfo(int32_t netId, std::vector<std::string>* servers,
59 void dump(DumpWriter& dw, unsigned netId);
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiAPITest.java 42 private int netid; field in class:WifiAPITest
119 netid = Integer.parseInt(value.toString());
121 // Invalid netid
125 mWifiManager.disableNetwork(netid);
144 netid = Integer.parseInt(value.toString());
145 mWifiManager.enableNetwork(netid, false);
  /bionic/libc/dns/resolv/
res_cache.c 1233 unsigned netid; member in struct:resolv_cache_info
    [all...]
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/
ConnectReqTestCase.java 54 for (int netid = 0; netid < 32; netid++) {
55 methods[i].invoke(mP2pMgr, mChannel, netid, null);
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
ConfigurationMap.java 54 public WifiConfiguration remove(int netID) {
55 WifiConfiguration config = mPerID.remove(netID);
61 mPerIDForCurrentUser.remove(netID);
65 if (entries.next().getValue().networkId == netID) {
70 mHiddenNetworkIdsForCurrentUser.remove(netID);
119 public WifiConfiguration getForAllUsers(int netid) {
120 return mPerID.get(netid);
123 public WifiConfiguration getForCurrentUser(int netid) {
124 return mPerIDForCurrentUser.get(netid);
  /bionic/libc/dns/net/
getnameinfo.c 117 size_t hostlen, char* serv, size_t servlen, int flags, unsigned netid,
124 serv, servlen, flags, netid, mark);
168 int flags, unsigned netid, unsigned mark)
306 hp = android_gethostbyaddrfornet_proxy(addr, afd->a_addrlen, afd->a_af, netid, mark);
gethnamaddr.c 818 size_t hbuflen, int *errorp, unsigned netid, unsigned mark)
823 res_setnetid(res, netid);
828 netid = __netdClientDispatch.netIdForResolv(netid);
833 netid,
865 char *buf, size_t buflen, int *he, unsigned netid, unsigned mark)
917 default_dns_files, uaddr, len, af, netid, mark) != NS_SUCCESS)
926 unsigned netid, unsigned mark)
931 return android_gethostbyaddrfornet_real(addr,len, af, hp, hbuf, hbuflen, he, netid, mark);
941 netid = __netdClientDispatch.netIdForResolv(netid)
1242 unsigned netid, mark; local
    [all...]
  /external/iproute2/tipc/
node.c 173 int netid; local
188 fprintf(stderr, "Usage: %s node set netid NETID\n",
192 netid = atoi(shift_cmdl(cmdl));
195 mnl_attr_put_u32(nlh, TIPC_NLA_NET_ID, netid);
207 " netid NETID - Set local netid\n",
216 { "netid", cmd_node_set_netid, NULL },
229 " netid - Get local netid\n"
    [all...]
bearer.c 91 int *netid = (int*)data; local
99 *netid = mnl_attr_get_u32(attrs[TIPC_NLA_NET_ID]);
106 int netid; local
114 if (msg_dumpit(nlh, get_netid_cb, &netid)) {
119 snprintf(buf, bufsize, "228.0.%u.%u", (netid>>8) & 0xFF, netid & 0xFF);
121 snprintf(buf, bufsize, "ff02::%u", netid);

Completed in 763 milliseconds

1 2