Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Dec 2021 10:45:15 GMT
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4ab3d3d91f4d - stable/13 - tcpdrop: explicitly choose TCP as the transport protocol
Message-ID:  <202112101045.1BAAjF26019507@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by tuexen:

URL: https://cgit.FreeBSD.org/src/commit/?id=4ab3d3d91f4dec7e0b502863b80b29b956ceca9e

commit 4ab3d3d91f4dec7e0b502863b80b29b956ceca9e
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2021-12-04 14:03:29 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202112101045.1BAAjF26019507>