Searched refs:packet (Results 1 – 7 of 7) sorted by relevance
/development/samples/ToyVpn/server/linux/ |
D | ToyVpnServer.cpp | 108 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/ |
D | ToyVpnService.java | 165 ByteBuffer packet = ByteBuffer.allocate(32767); in run() local 178 int length = in.read(packet.array()); in run() 181 packet.limit(length); in run() 182 tunnel.write(packet); in run() 183 packet.clear(); in run() 195 length = tunnel.read(packet); in run() 198 if (packet.get(0) != 0) { in run() 200 out.write(packet.array(), 0, length); in run() 202 packet.clear(); in run() 225 packet.put((byte) 0).limit(1); in run() [all …]
|
/development/ndk/platforms/android-L/include/linux/ |
D | pg.h | 30 char packet[12]; member
|
D | cdrom.h | 737 __u8 packet : 1; member 754 __u8 packet : 1; member
|
/development/ndk/platforms/android-3/include/linux/netfilter/ |
D | xt_statistic.h | 36 u_int32_t packet; member
|
/development/ndk/platforms/android-L/include/linux/netfilter/ |
D | xt_statistic.h | 47 __u32 packet; member
|
/development/ndk/platforms/android-3/include/linux/ |
D | cdrom.h | 674 __u8 packet : 1; member 687 __u8 packet : 1; member
|