Lines Matching refs:cc
739 int cc;
791 cc = prog_poll(fdmaskp, 1, (int)(sec * 1000));
794 if (cc <= 0) {
795 if (cc < 0) {
805 cc = prog_recvfrom(s, (char *) packet, packlen,
808 if (cc < 0) {
817 pr_pack(packet, cc, &from);
897 int i, cc, sw;
951 cc = MAX(datalen, ICMP_MINLEN) + PHDR_LEN;
953 opack_icmp.icmp_cksum = in_cksum((u_int16_t *)&opack_icmp, cc);
955 cc += opack_ip->ip_hl<<2;
956 opack_ip->ip_len = cc;
957 i = prog_sendto(s, (char *) opack_ip, cc, 0,
959 if (i != cc) {
964 warnx("wrote %s %d chars, ret=%d", hostname, cc, i);
1023 pr_pack_sub(int cc,
1035 (void)printf("%d bytes from %s: icmp_seq=%u", cc, addr, seqno);
1509 int cc,
1527 && hlen + 6 <= cc) {
1540 cc, pr_addr(&from->sin_addr));
1556 int cc)
1560 if (!ck_pr_icmph(icp, from, cc, 1))
1618 pr_retip(icp, cc);
1622 if (!ck_pr_icmph(icp, from, cc, 1))
1625 pr_retip(icp, cc);
1629 if (!ck_pr_icmph(icp, from, cc, 1))
1650 pr_retip(icp, cc);
1654 if (!ck_pr_icmph(icp, from, cc, 0))
1663 if (!ck_pr_icmph(icp, from, cc, 0))
1673 if (!ck_pr_icmph(icp, from, cc, 0))
1679 if (!ck_pr_icmph(icp, from, cc, 0))
1685 if (!ck_pr_icmph(icp, from, cc, 1))
1699 pr_retip(icp, cc);
1703 if (!ck_pr_icmph(icp, from, cc, 1))
1707 pr_retip(icp, cc);
1711 if (!ck_pr_icmph(icp, from, cc, 0))
1717 if (!ck_pr_icmph(icp, from, cc, 0))
1723 if (!ck_pr_icmph(icp, from, cc, 0))
1729 if (!ck_pr_icmph(icp, from, cc, 0))
1735 if (!ck_pr_icmph(icp, from, cc, 0))
1741 if (!ck_pr_icmph(icp, from, cc, 0))
1747 if (!ck_pr_icmph(icp, from, cc, 0))
1751 pr_iph(icp, cc);
1763 int cc)
1786 while (hlen-- > 20 && cp < (u_char*)icp+cc) {
1835 int cc)
1844 pr_iph(icp, cc);