aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdrop
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2021-12-04 14:03:29 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2021-12-04 14:03:29 +0000
commit8ea363c8c648fd6b9c353bd37551ebb9d25cdd83 (patch)
tree036fa342f7d89798c69f78405fdcaaa74b43bbca /usr.sbin/tcpdrop
parent31537ea583c0965fe22498d52831ced4b4f4fc5e (diff)
downloadsrc-8ea363c8c648fd6b9c353bd37551ebb9d25cdd83.tar.gz
src-8ea363c8c648fd6b9c353bd37551ebb9d25cdd83.zip
tcpdrop: explicitly choose TCP as the transport protocol
MFC after: 1 week Sponsored by: Netflix, Inc.
Diffstat (limited to 'usr.sbin/tcpdrop')
-rw-r--r--usr.sbin/tcpdrop/tcpdrop.c1
1 files changed, 1 insertions, 0 deletions
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;