Lines Matching defs:cc
93 static void pr_pack(char *buf, int cc, struct sockaddr_in *from);
465 int cc;
467 cc=recvfrom(s, (char *)packet, len, 0,
469 if (cc<0) {
477 pr_pack( (char *)packet, cc, &from );
589 int packetlen, i, cc;
620 cc = sendbcastif(s, (char *)outpack, packetlen,
623 cc = sendmcastif( s, (char *)outpack, packetlen, sin,
640 cc = sendto( s, (char *)outpack, packetlen, 0,
644 cc = packetlen;
646 if( cc < 0 || cc != packetlen ) {
647 if (cc < 0) {
651 sendaddress, packetlen, cc );
720 pr_pack(char *buf, int cc, struct sockaddr_in *from)
729 if (cc < hlen + 8) {
731 logtrace("packet too short (%d bytes) from %s\n", cc,
735 cc -= hlen;
751 if (in_cksum((u_short *)ALLIGN(buf+hlen), cc)) {
781 if ((unsigned)cc <
787 cc,
840 if (in_cksum((u_short *)ALLIGN(buf+hlen), cc)) {
856 if (cc < ICMP_MINLEN) {
861 cc,
999 int i, cc;
1004 cc = sendbcastif(s, packet, packetlen, &interfaces[i]);
1005 if (cc!= packetlen) {
1006 return (cc);
1016 int cc;
1026 cc = sendto(s, packet, packetlen, 0,
1028 if (cc!= packetlen) {
1035 return (cc);
1041 int i, cc;
1046 cc = sendmcastif(s, packet, packetlen, sin, &interfaces[i]);
1047 if (cc!= packetlen) {
1048 return (cc);
1058 int cc;
1077 cc = sendto(s, packet, packetlen, 0,
1079 if (cc!= packetlen) {
1084 return (cc);