From nobody Fri Feb 11 13:35:57 2022 X-Original-To: dev-commits-ports-main@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 DC3C81801375; Fri, 11 Feb 2022 13:35:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JwF4Y5T4Lz3kdn; Fri, 11 Feb 2022 13:35:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644586557; 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=nwJXmM6x9AR1CiGvMalvfjMzxn2xObC+uwKVmetVOXc=; b=Zf7LjNpfm0WuMNUTwdytL+FvuoFfLJPvsJMSaZMOwYtaCohp2BgnBnY+vlEWZXeI62pMPz s9uFSly9rQ2Ax3tHhylxgSzDZUWEGFNAG8XQHJbgEoaCVXFTV3b498Z4IUzP7BQvs9MR4x Vu3zbW8tGim4x5xRfZjJmkZFzLqQ89SOQ4p+u14d3ckzcKCaiQqE7Nc+ikAhPduyZ+4AAl Q9ndTqT580Bb46Ii7yh+A74yMKKdWzVQS+lT4SHhQZrvu9v6fEaD6ZK2vbT0YAYTK+g9lb WAY7bIFHbI3a2fmtqUfdqdsJToi1NnqaOVZb+QRn+Zhe2ZqgjWQ5T6bzDZbvbg== 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 9786F14E59; Fri, 11 Feb 2022 13:35:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 21BDZvnl065802; Fri, 11 Feb 2022 13:35:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21BDZvgg065801; Fri, 11 Feb 2022 13:35:57 GMT (envelope-from git) Date: Fri, 11 Feb 2022 13:35:57 GMT Message-Id: <202202111335.21BDZvgg065801@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Eugene Grosbein Subject: git: fcba5123c126 - main - net/mpd5: let "red-port" accept zero remote port value List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: eugen X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: fcba5123c1263e2bb2ddc6f6b7e71424f62377d2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644586557; 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=nwJXmM6x9AR1CiGvMalvfjMzxn2xObC+uwKVmetVOXc=; b=ASczSGKlxEc5tBA7VlqmCS8/SwlsgLDa9xsTAuBBCQqC2KIOygYF5pt+MYStKIX4rNrwdp pymzQ7b/kZJFLxpas2Au9LPjuUbF/WXxCbmVoivQ9QOEfX6b5jWIWmSTaO79R25JCzAHHD l90e834oHKgAvk1n1hOKqD/70xcVgAzI9tnTU1ZxCxv52PCpo+Hibj3IgBiYvaaYVosaBt Z9dt4LLZJWosYXicBxdVbyP9iqV+TEBHZpwoeoxXOc8m+OGAZsVMS5ID1rV0hpqneVotp5 vQ1Q6fzg484SWlH4R3M1OpUK4Mdq5dSzlaMQTm03aHhExRhkkywv7vNkHt4BKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644586557; a=rsa-sha256; cv=none; b=ZTj67th3PLDh2aqM22tyCO001KVVI1f/CEA/1ztXU4wg1CMLpm2/7T47Faga2pu6HMn7gc trWz4Mw9PbgYaNhVoXyvgajh18Ieam3jEQBGQxvGYI2UviXoOWv4XMddFro4TmqEcYvINY t4RIXz2rYhn8N4XTZ4RRZJahwczdvrGz4NDdurB0ixkMxEi6jW5OULIKSJZxpbISduds5M HeE/dVP/81SvAd4mYOfHI8uMmoFNXdBTjyyfAiU/qipqDY2auvRaqqHFS7ERiK/IOXd+OH GCE1z7BIphFO4J/VnpFWe8X3LAbI0+yQ4l6JLWvTrp5wEJEEQTNRRy10TTHhtw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eugen: URL: https://cgit.FreeBSD.org/ports/commit/?id=fcba5123c1263e2bb2ddc6f6b7e71424f62377d2 commit fcba5123c1263e2bb2ddc6f6b7e71424f62377d2 Author: Eugene Grosbein AuthorDate: 2022-02-11 13:31:47 +0000 Commit: Eugene Grosbein CommitDate: 2022-02-11 13:31:47 +0000 net/mpd5: let "red-port" accept zero remote port value Import upstream r2446: allow to configre "any" remote port for port redirection rule as supported by libalias(3). PR: 261802 Reported by: Martin Birgmeier --- net/mpd5/Makefile | 2 +- net/mpd5/files/patch-nat.c | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/net/mpd5/Makefile b/net/mpd5/Makefile index 9e4ed26ee476..97f2a8fb013c 100644 --- a/net/mpd5/Makefile +++ b/net/mpd5/Makefile @@ -2,7 +2,7 @@ PORTNAME= mpd DISTVERSION= 5.9 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= net MASTER_SITES= SF/${PORTNAME}/Mpd5/Mpd-${PORTVERSION} PKGNAMESUFFIX= 5 diff --git a/net/mpd5/files/patch-nat.c b/net/mpd5/files/patch-nat.c new file mode 100644 index 000000000000..1c94022f260b --- /dev/null +++ b/net/mpd5/files/patch-nat.c @@ -0,0 +1,13 @@ +Index: src/nat.c +=================================================================== +--- src/nat.c (revision 2445) ++++ src/nat.c (revision 2446) +@@ -192,7 +192,7 @@ NatSetCommand(Context ctx, int ac, const char *const a + if (!inet_aton (av[5], &r_addr)) + Error("bad remote IP address \"%s\"", av[5]); + rp = atoi(av[6]); +- if (rp <= 0 || rp > 65535) ++ if (rp < 0 || rp > 65535) + Error("Incorrect remote port number \"%s\"", av[6]); + } + /* OK */