Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 3 of 3) sorted by relevance

/development/samples/ToyVpn/server/linux/
DToyVpnServer.cpp108 char packet[1024]; in get_tunnel() local
112 int n = recvfrom(tunnel, packet, sizeof(packet), 0, in get_tunnel()
117 packet[n] = 0; in get_tunnel()
118 } while (packet[0] != 0 || strcmp(secret, &packet[1])); in get_tunnel()
207 char packet[32767]; in main() local
220 int length = read(interface, packet, sizeof(packet)); in main()
223 send(tunnel, packet, length, MSG_NOSIGNAL); in main()
235 length = recv(tunnel, packet, sizeof(packet), 0); in main()
241 if (packet[0] != 0) { in main()
243 write(interface, packet, length); in main()
[all …]
/development/samples/ToyVpn/src/com/example/android/toyvpn/
DToyVpnConnection.java193 ByteBuffer packet = ByteBuffer.allocate(MAX_PACKET_SIZE); in run() local
207 int length = in.read(packet.array()); in run()
210 packet.limit(length); in run()
211 tunnel.write(packet); in run()
212 packet.clear(); in run()
220 length = tunnel.read(packet); in run()
223 if (packet.get(0) != 0) { in run()
225 out.write(packet.array(), 0, length); in run()
227 packet.clear(); in run()
243 packet.put((byte) 0).limit(1); in run()
[all …]
/development/tools/winscope/
Dyarn.lock1448 dns-packet@^1.0.1:
1450 …resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-1.2.2.tgz#a8a26bec7646438963fc86e06…
2663 dns-packet "^1.0.1"