Lines Matching +defs:check +defs:cc
52 * 4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 39 ms 40 ms 39 ms
72 * 4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 19 ms 39 ms 39 ms
106 * 4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 39 ms 40 ms 19 ms
400 int (*check)(const u_char *, int);
401 /* check an incoming packet */
1011 register int cc;
1032 while ((cc = wait_for_reply(s, from, &t1)) != 0) {
1037 i = packet_ok(packet, cc, from, seq);
1045 print(packet, cc, from);
1194 if (cc == 0) {
1220 register int cc = 0;
1245 cc = recvfrom(sock, (char *)packet, sizeof(packet), 0,
1249 return (cc);
1255 register int cc;
1291 cc = send(sndsock, (char *)outip, packlen, 0);
1292 if (cc < 0 || cc != packlen) {
1293 if (cc < 0)
1297 prog, hostname, packlen, cc);
1353 packet_ok(register u_char *buf, int cc, register struct sockaddr_in *from,
1364 if (cc < hlen + ICMP_MINLEN) {
1366 Printf("packet too short (%d bytes) from %s\n", cc,
1370 cc -= hlen;
1385 && (*proto->check)((u_char *)icp, (u_char)seq))
1392 hiplen = ((u_char *)icp + cc) - (u_char *)hip;
1395 if (hlen + 16 <= cc
1397 && (*proto->check)(inner, (u_char)seq))
1405 Printf("\n%d bytes from %s to ", cc, inet_ntoa(from->sin_addr));
1408 for (i = 4; i <= cc - ICMP_MINLEN; i += sizeof(*lp))
1652 print(register u_char *buf, register int cc, register struct sockaddr_in *from)
1660 cc -= hlen;
1673 Printf(" %d bytes to %s", cc, inet_ntoa(ip->ip_dst));