Lines Matching refs:r_bytes
636 ssize_t r_bytes, s_bytes; in udp_ping_send() local
651 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
652 if (r_bytes < 0) { in udp_ping_send()
656 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
659 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
660 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
673 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
679 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
680 if (r_bytes < 0) { in udp_ping_reply()
685 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
689 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_reply()
690 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_reply()