Lines Matching defs:icmp
88 char icmp[STR_LEN]; /* "icmp" or "ipv6-icmp" */
127 static int rcvsock4; /* receive (icmp) socket file descriptor */
128 static int sndsock4; /* send (udp/icmp) socket file descriptor */
165 boolean_t useicmp = _B_FALSE; /* use icmp echo instead of udp packets */
1175 (void) strcpy(pr->icmp, "icmp");
1191 (void) strcpy(pr->icmp, "ipv6-icmp");
1224 if ((pe = getprotobyname(pr->icmp)) == NULL) {
1225 Fprintf(stderr, "%s: unknown protocol %s\n", prog, pr->icmp);
1233 Fprintf(stderr, "%s: icmp socket: %s\n", prog, strerror(errno));
1313 Fprintf(stderr, "%s: icmp socket: %s\n", prog,
1496 uchar_t type; /* icmp type */
1497 uchar_t code; /* icmp code */