diff --git a/usr.sbin/tcpdrop/tcpdrop.c b/usr.sbin/tcpdrop/tcpdrop.c index aa28f494e24..89056f30672 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;