Lines Matching refs:r_bytes
679 ssize_t r_bytes, s_bytes; in udp_ping_send() local
694 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
695 if (r_bytes < 0) { in udp_ping_send()
699 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
702 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
703 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
716 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
722 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
723 if (r_bytes < 0) { in udp_ping_reply()
728 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
732 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_reply()
733 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_reply()