Home | History | Annotate | Download | only in pending

Lines Matching defs:bytes

473      * ip [0..4 bytes depending on mask]
474 * router [4 bytes]
652 int bytes = 0;
655 if ((bytes = read(state->sockfd, &packet, sizeof(packet))) < 0) {
657 return bytes;
659 if (bytes < (int) (sizeof(packet.iph) + sizeof(packet.udph))) {
663 if (bytes < ntohs(packet.iph.tot_len)) {
667 // ignore any extra garbage bytes
668 bytes = ntohs(packet.iph.tot_len);
673 || ntohs(packet.udph.len) != (uint16_t)(bytes - sizeof(packet.iph))) {
688 if (check && check != dhcp_checksum(&packet, bytes)) {
692 memcpy(&state->pdhcp, &packet.dhcp, bytes - (sizeof(packet.iph) + sizeof(packet.udph)));
697 return bytes - sizeof(packet.iph) - sizeof(packet.udph);
892 optptr += 2; // two blank bytes
1160 int bytes;
1167 bytes = (mask + 7) / 8;
1168 while (--bytes >= 0) {