From nobody Mon Jan 6 20:50:06 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YRmXG3zyNz5kCBT; Mon, 06 Jan 2025 20:50:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YRmXG1wt5z4bmq; Mon, 6 Jan 2025 20:50:06 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736196606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pBs8r3aoDzFYcOnyf5CFkHBufvYa6K4v4vD0UQoZ+bQ=; b=sGdyJ4NaSVFrIxnvrLev7/JOiaMDVOgUVvtQ0m1Xu4RgX+/HF8h2MpwfMdPFsdRO6zfwgP nyrru8diIVEps5dRURgE+RBEaAcvQQy6qa7xg4UzA3YaMV/5dtScx05h5mJcRsPiTIDCt9 5pGS1eUcM5aHfA+C+99HVsbmXmZJFsg6w7cSFEVKtyGqDasQt3sq1pzoGeYAW+mY4kFgXe VrYi1F1hzXFi9CeYC8aXF8P1Qu6tuI23mfzwoF3qKIjmJBJaIuAyatTagTcJ0Vm/Foil2g GNRgil0rWsrCd2sfclQciysrmFL6mv9veIL5D6pmulMts2NX1ox6JXoaqgPDxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736196606; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=pBs8r3aoDzFYcOnyf5CFkHBufvYa6K4v4vD0UQoZ+bQ=; b=AvEuh26gx3ZvsV1hhOCU21KalVScQv2fgTX5V9ok5iMoiGTPIpBYTaRikyE556of+JKodE GS3jk3kKcGiuL3xgi+Q/9CtZJ5yY2bUH7GP5woRHTLcttZAJ3BELys5G+pOYv42zJuPb20 Pi6nu23A7Wb5i0FKsLTsBuXoizlRMyXUNVf1rtEtVwD+QaCnEVkrROZSjh8YPsIKPpmYJH OkEvwyHXo103Zk+J/AbQuvwENDOyDx1IJMBKt65hyuzNjBsNiigr14HliHxJILtSjdfPw3 zo0BduM7vsHtnW3sN5BksozI3CxO0u2Jc6/P73Fcsvc/F4cdCb4mCvdaMmiOmw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736196606; a=rsa-sha256; cv=none; b=DXNBXUMQmfcW3jkFVT+pTR6dFzQf47C7gU6zMoRLvmEa1NWr+p8e+CEM7NPTyzwo41zljL PbG2RcGW5NynPpnkhDj8R22JYGdSFjiQmrFucu2RDW8nbciTboJtWbdyKGcQS9vLl+LQ6n r3A4ySUnr62YXKrmndzp5lBTs0gMmA9NmTHLMfkjU/aTRabjSupXcbYzdM7TQrkbgGMsaG /QnvqPDLho2hyQYFasL4isaQscdC0BlYyf/EWfMfM0eFVMGJiRB0mTla7FfgDy2iBCvSc+ PDwAWvc+FVqG7S+X1AkmHHr8rPZeQxtMVuCy5YKhP5Ud1bVpKf7jgvvLfRYRcA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4YRmXG1HvtzgCh; Mon, 06 Jan 2025 20:50:06 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 506Ko6BT011045; Mon, 6 Jan 2025 20:50:06 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 506Ko6FO011040; Mon, 6 Jan 2025 20:50:06 GMT (envelope-from git) Date: Mon, 6 Jan 2025 20:50:06 GMT Message-Id: <202501062050.506Ko6FO011040@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Olivier Cochard Subject: git: fc41a4cf8ddf - main - net/frr10: update to 10.2.1 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: olivier X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fc41a4cf8ddfc20eb177a3afa44293bf7c90ea5b Auto-Submitted: auto-generated The branch main has been updated by olivier: URL: https://cgit.FreeBSD.org/ports/commit/?id=fc41a4cf8ddfc20eb177a3afa44293bf7c90ea5b commit fc41a4cf8ddfc20eb177a3afa44293bf7c90ea5b Author: Olivier Cochard AuthorDate: 2025-01-06 20:40:11 +0000 Commit: Olivier Cochard CommitDate: 2025-01-06 20:49:48 +0000 net/frr10: update to 10.2.1 Sponsored by: Netflix --- net/frr10/Makefile | 2 +- net/frr10/distinfo | 6 ++--- net/frr10/files/patch-lib_sockopt.c | 33 ----------------------- net/frr10/files/patch-lib_sockopt.h | 13 ---------- net/frr10/files/patch-lib_vty.c | 52 ------------------------------------- net/frr10/files/patch-lib_vty.h | 12 --------- net/frr10/files/patch-vtysh_vtysh.c | 22 ---------------- 7 files changed, 4 insertions(+), 136 deletions(-) diff --git a/net/frr10/Makefile b/net/frr10/Makefile index 3b564c48739b..db6683308853 100644 --- a/net/frr10/Makefile +++ b/net/frr10/Makefile @@ -1,6 +1,6 @@ PORTNAME= frr DISTVERSIONPREFIX= frr- -DISTVERSION= 10.2 +DISTVERSION= 10.2.1 CATEGORIES= net .if defined(PYTHONTOOLS) PKGNAMESUFFIX= 10-pythontools diff --git a/net/frr10/distinfo b/net/frr10/distinfo index 3dbe8cf4ce78..78ff69b9f40e 100644 --- a/net/frr10/distinfo +++ b/net/frr10/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1732620979 -SHA256 (FRRouting-frr-frr-10.2_GH0.tar.gz) = f9212701a8bba9ce32b4f2d361149db7778bb7bdc053bfb27415ec1948d83a47 -SIZE (FRRouting-frr-frr-10.2_GH0.tar.gz) = 11173035 +TIMESTAMP = 1736186246 +SHA256 (FRRouting-frr-frr-10.2.1_GH0.tar.gz) = 6cbf142d0b12fb8679f5dc95f7638ba6faf848a44f38fd45bf9caeee8c12097c +SIZE (FRRouting-frr-frr-10.2.1_GH0.tar.gz) = 11178677 diff --git a/net/frr10/files/patch-lib_sockopt.c b/net/frr10/files/patch-lib_sockopt.c deleted file mode 100644 index 8c996de059ef..000000000000 --- a/net/frr10/files/patch-lib_sockopt.c +++ /dev/null @@ -1,33 +0,0 @@ ---- lib/sockopt.c.orig 2024-11-12 16:20:46 UTC -+++ lib/sockopt.c -@@ -19,7 +19,7 @@ - #define HAVE_BSD_STRUCT_IP_MREQ_HACK - #endif - --void setsockopt_so_recvbuf(int sock, int size) -+int setsockopt_so_recvbuf(int sock, int size) - { - int orig_req = size; - -@@ -34,9 +34,11 @@ void setsockopt_so_recvbuf(int sock, int size) - flog_err(EC_LIB_SOCKET, - "%s: fd %d: SO_RCVBUF set to %d (requested %d)", - __func__, sock, size, orig_req); -+ -+ return size; - } - --void setsockopt_so_sendbuf(const int sock, int size) -+int setsockopt_so_sendbuf(const int sock, int size) - { - int orig_req = size; - -@@ -51,6 +53,8 @@ void setsockopt_so_sendbuf(const int sock, int size) - flog_err(EC_LIB_SOCKET, - "%s: fd %d: SO_SNDBUF set to %d (requested %d)", - __func__, sock, size, orig_req); -+ -+ return size; - } - - int getsockopt_so_sendbuf(const int sock) diff --git a/net/frr10/files/patch-lib_sockopt.h b/net/frr10/files/patch-lib_sockopt.h deleted file mode 100644 index 7d6b615fe700..000000000000 --- a/net/frr10/files/patch-lib_sockopt.h +++ /dev/null @@ -1,13 +0,0 @@ ---- lib/sockopt.h.orig 2024-11-12 16:20:46 UTC -+++ lib/sockopt.h -@@ -12,8 +12,8 @@ extern "C" { - extern "C" { - #endif - --extern void setsockopt_so_recvbuf(int sock, int size); --extern void setsockopt_so_sendbuf(const int sock, int size); -+extern int setsockopt_so_recvbuf(int sock, int size); -+extern int setsockopt_so_sendbuf(const int sock, int size); - extern int getsockopt_so_sendbuf(const int sock); - extern int getsockopt_so_recvbuf(const int sock); - diff --git a/net/frr10/files/patch-lib_vty.c b/net/frr10/files/patch-lib_vty.c deleted file mode 100644 index 45af30dcecf5..000000000000 --- a/net/frr10/files/patch-lib_vty.c +++ /dev/null @@ -1,52 +0,0 @@ ---- lib/vty.c.orig 2024-11-12 16:20:46 UTC -+++ lib/vty.c -@@ -43,6 +43,7 @@ - #include "northbound_cli.h" - #include "printfrr.h" - #include "json.h" -+#include "sockopt.h" - - #include - #include -@@ -352,7 +353,7 @@ int vty_out(struct vty *vty, const char *format, ...) - * put the data of collective vty->obuf Linked List items on the - * socket and free the vty->obuf data. - */ -- if (vty->vty_buf_size_accumulated >= VTY_MAX_INTERMEDIATE_FLUSH) { -+ if (vty->vty_buf_size_accumulated >= vty->buf_size_intermediate) { - vty->vty_buf_size_accumulated = 0; - vtysh_flush(vty); - } -@@ -2157,15 +2158,15 @@ static void vtysh_accept(struct event *thread) - * Increasing the SEND socket buffer size so that the socket can hold - * before sending it to VTY shell. - */ -- ret = setsockopt(sock, SOL_SOCKET, SO_SNDBUF, (char *)&sndbufsize, -- sizeof(sndbufsize)); -- if (ret < 0) { -+ ret = setsockopt_so_sendbuf(sock, sndbufsize); -+ if (ret <= 0) { - flog_err(EC_LIB_SOCKET, - "Cannot set socket %d send buffer size, %s", sock, - safe_strerror(errno)); - close(sock); - return; - } -+ - set_cloexec(sock); - - #ifdef VTYSH_DEBUG -@@ -2173,6 +2174,13 @@ static void vtysh_accept(struct event *thread) - #endif /* VTYSH_DEBUG */ - - vty = vty_new(); -+ -+ vty->buf_size_set = ret; -+ if (vty->buf_size_set < VTY_MAX_INTERMEDIATE_FLUSH) -+ vty->buf_size_intermediate = vty->buf_size_set / 2; -+ else -+ vty->buf_size_intermediate = VTY_MAX_INTERMEDIATE_FLUSH; -+ - vty->fd = sock; - vty->wfd = sock; - vty->type = VTY_SHELL_SERV; diff --git a/net/frr10/files/patch-lib_vty.h b/net/frr10/files/patch-lib_vty.h deleted file mode 100644 index 397ea225cce1..000000000000 --- a/net/frr10/files/patch-lib_vty.h +++ /dev/null @@ -1,12 +0,0 @@ ---- lib/vty.h.orig 2024-11-12 16:20:46 UTC -+++ lib/vty.h -@@ -237,6 +237,9 @@ struct vty { - bool mgmt_locked_candidate_ds; - bool mgmt_locked_running_ds; - uint64_t vty_buf_size_accumulated; -+ -+ int buf_size_set; -+ uint64_t buf_size_intermediate; - }; - - static inline void vty_push_context(struct vty *vty, int node, uint64_t id) diff --git a/net/frr10/files/patch-vtysh_vtysh.c b/net/frr10/files/patch-vtysh_vtysh.c deleted file mode 100644 index a6f09b5a5980..000000000000 --- a/net/frr10/files/patch-vtysh_vtysh.c +++ /dev/null @@ -1,22 +0,0 @@ ---- vtysh/vtysh.c.orig 2024-11-12 16:20:46 UTC -+++ vtysh/vtysh.c -@@ -39,6 +39,7 @@ - #include "frrstr.h" - #include "json.h" - #include "ferr.h" -+#include "sockopt.h" - - DEFINE_MTYPE_STATIC(MVTYSH, VTYSH_CMD, "Vtysh cmd copy"); - -@@ -4694,9 +4695,8 @@ static int vtysh_connect(struct vtysh_client *vclient) - * Increasing the RECEIVE socket buffer size so that the socket can hold - * after receving from other process. - */ -- ret = setsockopt(sock, SOL_SOCKET, SO_RCVBUF, (char *)&rcvbufsize, -- sizeof(rcvbufsize)); -- if (ret < 0) { -+ ret = setsockopt_so_recvbuf(sock, rcvbufsize); -+ if (ret <= 0) { - #ifdef DEBUG - fprintf(stderr, "Cannot set socket %d rcv buffer size, %s\n", - sock, safe_strerror(errno));