From nobody Sat Dec 04 15:12:10 2021 X-Original-To: dev-commits-src-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 ABDF218CAF2B; Sat, 4 Dec 2021 15:12:10 +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 4J5tTQ3BGLz3hR7; Sat, 4 Dec 2021 15:12:10 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 4ED9B2675C; Sat, 4 Dec 2021 15:12:10 +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 1B4FCA4V031606; Sat, 4 Dec 2021 15:12:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B4FCAmO031605; Sat, 4 Dec 2021 15:12:10 GMT (envelope-from git) Date: Sat, 4 Dec 2021 15:12:10 GMT Message-Id: <202112041512.1B4FCAmO031605@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Michael Tuexen Subject: git: 8ea363c8c648 - main - tcpdrop: explicitly choose TCP as the transport protocol List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: tuexen X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8ea363c8c648fd6b9c353bd37551ebb9d25cdd83 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638630730; 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=Z5B3BJQHOkvJviqx7lkDsz1j4P9ric6f4P9M65xcvkQ=; b=Z1wuBhCTn3hQx5ju8/XQUKmWGXgcEccRRFB7tejtZbxUe7rMYY98vqPIkIFYJNbkRHIJOB Xq3Ulw92ZKOUFNu5gkyn4HhjPMpontBd87L/qgbeuzvwb2Rq1PHq0AtmNMMeg6PPUIXoxO gcNlwajxFBUu+ETNqhonGWbcxqaGkTYjQnj3VUW0+PuhHp0UB2l3BmqgIvxl5/o9sc7vT+ C+nkHiXvDDOfCi95BFUyW5BevyXCpeCc5YlBkDx8xj8PHCKy47xt8G05I1606LdES7FEzp qOrKo/F622ZeNPjgE+nB4AYtjIVbiF1nnyh5z3NYwOh38gZRYAQfpRz7rN3LWQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638630730; a=rsa-sha256; cv=none; b=O9aGBAuOx3X4Lt8izX+UbLK7ojD+QNq4TMOGZjvTGR6RYPTjiwCFxhsTfKaqi6uTLJ/d74 nkYPrhu1nPT5nE34ziO4BOwY9HSw2vIRQNo8+e0x2izA9axCSE6PkLdVRgBJrEHi3eAed7 Yd6TlzSsYs9csEbGMMItU4zPjG5d2lY2bvGlLPPVO2NUgsONT2FclXCrBXjmXx4CyMg3KJ AwP7V6dkyjfcxM/WE/mAleLuh//T8Cp0Yx88vNHoJ9zbIWBLHxiqRB5+S01g5CDhoyUE7e uO1by/oknbHbOWU07QT3G+adZx8Tl3P6ihlk1GS5pwv/CCgAOC85/G+ongWKyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=8ea363c8c648fd6b9c353bd37551ebb9d25cdd83 commit 8ea363c8c648fd6b9c353bd37551ebb9d25cdd83 Author: Michael Tuexen AuthorDate: 2021-12-04 14:03:29 +0000 Commit: Michael Tuexen CommitDate: 2021-12-04 14:03:29 +0000 tcpdrop: explicitly choose TCP as the transport protocol MFC after: 1 week Sponsored by: Netflix, Inc. --- usr.sbin/tcpdrop/tcpdrop.c | 1 + 1 file changed, 1 insertion(+) diff --git a/usr.sbin/tcpdrop/tcpdrop.c b/usr.sbin/tcpdrop/tcpdrop.c index aa28f494e24d..89056f30672c 100644 --- a/usr.sbin/tcpdrop/tcpdrop.c +++ b/usr.sbin/tcpdrop/tcpdrop.c @@ -296,6 +296,7 @@ tcpdropbyname(const char *lhost, const char *lport, const char *fhost, */ .ai_family = AF_UNSPEC, .ai_socktype = SOCK_STREAM, + .ai_protocol = IPPROTO_TCP, }; struct addrinfo *ail, *local, *aif, *foreign; int error;