Lines Matching defs:buf_len
669 char *buf, size_t buf_len)
673 char *sock_buf[buf_len];
680 s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
684 } else if (s_bytes != buf_len) {
689 r_bytes = recv(sock[0], sock_buf, buf_len, 0);
697 } else if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) {
698 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len);
706 char *buf, size_t buf_len)
710 char *sock_buf[buf_len];
717 r_bytes = recv(sock[0], sock_buf, buf_len, 0);
727 if (r_bytes != buf_len || memcmp(buf, sock_buf, buf_len)) {
728 printk("ping reply packet is corrupted %zd/%zu", r_bytes, buf_len);
732 s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server));
736 } else if (s_bytes != buf_len) {
745 char *buf, size_t buf_len);
746 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from,
807 size_t buf_len, unsigned int *key_len)
816 if (*key_len > buf_len) {