Lines Matching refs:packet
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()
268 packet[0] = 0; in main()
270 send(tunnel, packet, 1, MSG_NOSIGNAL); in main()