From 505a58ec4560b8b73e24d13b64e489fe19175eda Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Mon, 16 Sep 2019 06:42:01 +0000 Subject: [PATCH] Increase the size of the send and receive buffers for YP client rpc calls to max allowed UDP datagram size. Since max allowed size both for keys and values where increased, the old sizes of around 1K cause ypmatch(3) failures, while plain maps fetches work. The buffers were reduced in r34146 from default UDP rpcclient values to 1024/2304 due to the key and value size being 1K. Reviewed by: slavash Sponsored by: Mellanox Technologies MFC after: 1 week Differential revision: https://reviews.freebsd.org/D21586 --- lib/libc/yp/yplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libc/yp/yplib.c b/lib/libc/yp/yplib.c index 4f3d921706f7..92b57c2512db 100644 --- a/lib/libc/yp/yplib.c +++ b/lib/libc/yp/yplib.c @@ -526,7 +526,7 @@ _yp_dobind(char *dom, struct dom_binding **ypdb) tv.tv_usec = 0; ysd->dom_socket = RPC_ANYSOCK; ysd->dom_client = clntudp_bufcreate(&ysd->dom_server_addr, - YPPROG, YPVERS, tv, &ysd->dom_socket, 1280, 2304); + YPPROG, YPVERS, tv, &ysd->dom_socket, 65507, 65507); if (ysd->dom_client == NULL) { clnt_pcreateerror("clntudp_create"); ysd->dom_vers = -1;