Lines Matching refs:packet
32 * Purposefully pick a small packet length that should fit into the buffers
52 packet_fill(u_char *packet)
57 packet[i] = (i & 0xff);
61 packet_check(u_char *packet, size_t totlen, ssize_t len)
66 if (packet[i] != (i & 0xff))
75 u_char packet[PACKETLEN];
81 packet_fill(packet);
83 len = send(sock, packet + totlen, PACKETLEN - totlen, 0);
101 u_char packet[PACKETLEN];
107 bzero(packet, sizeof(packet));
109 len = recv(sock, packet + totlen, sizeof(packet) - totlen, 0);
120 if (packet_check(packet, totlen, len) < 0) {