Lines Matching refs:buf_len
670 char *buf, size_t buf_len) in udp_ping_send() argument
674 char *sock_buf[buf_len]; in udp_ping_send()
681 s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server)); in udp_ping_send()
685 } else if (s_bytes != buf_len) { in udp_ping_send()
690 r_bytes = recv(sock[0], sock_buf, buf_len, 0); 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()
707 char *buf, size_t buf_len) in udp_ping_reply() argument
711 char *sock_buf[buf_len]; in udp_ping_reply()
718 r_bytes = recv(sock[0], sock_buf, buf_len, 0); 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()
733 s_bytes = sendto(sock[1], buf, buf_len, 0, dest_addr, sizeof(server)); in udp_ping_reply()
737 } else if (s_bytes != buf_len) { in udp_ping_reply()
746 char *buf, size_t buf_len);
747 static int do_ping(int cmd_fd, char *buf, size_t buf_len, struct in_addr from, in do_ping() argument
808 size_t buf_len, unsigned int *key_len) in xfrm_fill_key() argument
817 if (*key_len > buf_len) { in xfrm_fill_key()