Lines Matching defs:packet

39  * measure round-trip-delays and packet loss across network paths.
191 static int waittime = MAXWAIT; /* timeout for each packet */
221 u_char *datap, packet[IP_MAXPACKET] __aligned(4);
337 case 'G': /* Maximum packet size for ping sweep */
340 errx(EX_USAGE, "invalid packet size: `%s'",
346 "packet size too large: %d > %u",
351 case 'g': /* Minimum packet size for ping sweep */
354 errx(EX_USAGE, "invalid packet size: `%s'",
360 "packet size too large: %d > %u",
371 errx(EX_USAGE, "invalid packet size: `%s'",
377 "packet size too large: %d > %u",
476 case 's': /* size of packet to send */
479 errx(EX_USAGE, "invalid packet size: `%s'",
485 "packet size too large: %d > %u",
567 errx(EX_USAGE, "packet size too large: %d > %d", datalen,
806 "Maximum packet size must be no less than the minimum packet size");
905 iov.iov_base = packet;
981 pr_pack((char *)packet, cc, &from, tv);
1034 * Compose and transmit an ICMP ECHO REQUEST packet. The IP packet
1047 u_char *packet;
1049 packet = outpack;
1064 * packet. We're only concerned with
1084 /* Update icmp_cksum in the raw packet data buffer. */
1093 /* Update ip_len in the raw packet data buffer. */
1097 /* Update ip_sum in the raw packet data buffer. */
1100 packet = outpackhdr;
1102 i = send(ssend, (char *)packet, cc, 0);
1123 * Print out the packet, if it came from us. This logic is necessary
1149 * Get size of IP header of the received packet.
1169 /* Check packet has enough data to carry a valid ICMP header */
1173 warn("packet too short (%zd bytes) from %s", cc,
1344 warnx("inner packet too short (%zd bytes) from %s",