Lines Matching refs:bytes
270 int bytes; in xmalloc_optname_optval() local
279 bytes = (mask + 7) / 8; /* 0 -> 0, 1..8 -> 1, 9..16 -> 2 etc */ in xmalloc_optname_optval()
280 while (--bytes >= 0) { in xmalloc_optname_optval()
884 int bytes; in d4_recv_raw_packet() local
903 bytes = recvmsg(fd, &msg, 0); in d4_recv_raw_packet()
904 if (bytes < 0) { in d4_recv_raw_packet()
909 return bytes; /* returns -1 */ in d4_recv_raw_packet()
914 if (bytes < (int) (sizeof(packet.ip) + sizeof(packet.udp))) { in d4_recv_raw_packet()
919 if (bytes < ntohs(packet.ip.tot_len)) { in d4_recv_raw_packet()
926 bytes = ntohs(packet.ip.tot_len); in d4_recv_raw_packet()
934 || ntohs(packet.udp.len) != (uint16_t)(bytes - sizeof(packet.ip)) in d4_recv_raw_packet()
968 if (check && check != inet_cksum(&packet, bytes)) { in d4_recv_raw_packet()
983 bytes -= sizeof(packet.ip) + sizeof(packet.udp); in d4_recv_raw_packet()
984 memcpy(dhcp_pkt, &packet.data, bytes); in d4_recv_raw_packet()
985 return bytes; in d4_recv_raw_packet()