Lines Matching refs:r_bytes
633 ssize_t r_bytes, s_bytes; in udp_ping_send() local
648 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
649 if (r_bytes < 0) { in udp_ping_send()
653 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
656 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
657 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
670 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
676 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
677 if (r_bytes < 0) { in udp_ping_reply()
682 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
686 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_reply()
687 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_reply()