Lines Matching refs:r_bytes
675 ssize_t r_bytes, s_bytes; in udp_ping_send() local
690 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_send()
691 if (r_bytes < 0) { in udp_ping_send()
695 } else if (r_bytes == 0) { /* EOF */ in udp_ping_send()
698 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_send()
699 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_send()
712 ssize_t r_bytes, s_bytes; in udp_ping_reply() local
718 r_bytes = recv(sock[0], sock_buf, buf_len, 0); in udp_ping_reply()
719 if (r_bytes < 0) { in udp_ping_reply()
724 if (r_bytes == 0) { /* EOF */ in udp_ping_reply()
728 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) { in udp_ping_reply()
729 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len); in udp_ping_reply()