From nobody Fri Dec 10 10:45:15 2021 X-Original-To: dev-commits-src-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 8417518D9786; Fri, 10 Dec 2021 10:45:16 +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 4J9SGh0n9kz3GnB; Fri, 10 Dec 2021 10:45:16 +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 EF76219237; Fri, 10 Dec 2021 10:45:15 +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 1BAAjFo8019508; Fri, 10 Dec 2021 10:45:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BAAjF26019507; Fri, 10 Dec 2021 10:45:15 GMT (envelope-from git) Date: Fri, 10 Dec 2021 10:45:15 GMT Message-Id: <202112101045.1BAAjF26019507@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Michael Tuexen Subject: git: 4ab3d3d91f4d - stable/13 - tcpdrop: explicitly choose TCP as the transport protocol List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 4ab3d3d91f4dec7e0b502863b80b29b956ceca9e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639133116; 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=0FD1Ienr8Uo5V6TyvB6Rvx8qEbrsdtF8iz0cR8AJv8Y=; b=YqQoVzbVVdeRfvtqdUQp4YejS9HmLjTSO3utx2ByNLMLZlzWAPNqCXmY1AEcJsj2df3EvL p2UC2SoOFTowfX0XxIsaw/CvEKxVYmBhAF/z7oCdltJFvu7qnlBAYLgDbEigOy0sHcHBSh HK0vpXk5VKTyfkOE+R2ZmPzHZATuU8yGOPrcy3P/cptH5RZvR8tc4z5nIybC4yfM7+Cs40 KzCRsypq9fflMEHS9MGv9sgkXD6R22bUTElwWznC++ADZMzZVVpJDt4LFhYbZDBUiQXBwM dKEPihpYzitE0Bad8rJ60eSAVZQqKya9vWtUFxaFzECIM6ywVAVOOz+3ZiVaUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639133116; a=rsa-sha256; cv=none; b=MSEwgFgzpx4hdGdK14AJ6Oiv4NRqIpOhQFN4O9bSQqL0748/D/BsXoMcX+gJ1MPMKHSyPf ZOlYVYQzsN1iO9DjdfpxPZvopmTJ2+cWDTcFCDtBVP3D7NAzqJBxSTrM0GfL9bBMEbvBlQ 3I7kUatbFKfnIn08WNsgYHDAtCmCJg+eVGC/MGQ8Y04czmNjOOoGHOXLf78wra2Mghl/o6 a4ZMDx18rV+MLKsvoqMtKnr8jLu/vgcUxGe34LQfWbOvYlAUTmhfYlCvusCqThcV6Z/maZ qpfDQujW8Uj/ezSOAoPaGwU3swp2zy1Uh58PO0817hrNRtI1PxoaMX5Ck7nBlg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by tuexen: URL: https://cgit.FreeBSD.org/src/commit/?id=4ab3d3d91f4dec7e0b502863b80b29b956ceca9e commit 4ab3d3d91f4dec7e0b502863b80b29b956ceca9e Author: Michael Tuexen AuthorDate: 2021-12-04 14:03:29 +0000 Commit: Michael Tuexen CommitDate: 2021-12-10 10:45:05 +0000 tcpdrop: explicitly choose TCP as the transport protocol Sponsored by: Netflix, Inc. (cherry picked from commit 8ea363c8c648fd6b9c353bd37551ebb9d25cdd83) --- 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;