Lines Matching refs:r_bytes
674 ssize_t r_bytes, s_bytes; in udp_ping_send() local
689 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
690 if (r_bytes < 0) { in udp_ping_send()
694 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
697 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
698 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
711 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
717 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
718 if (r_bytes < 0) { in udp_ping_reply()
723 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
727 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_reply()
728 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_reply()