tcpdrop: explicitly choose TCP as the transport protocol

MFC after:	1 week
Sponsored by:	Netflix, Inc.
This commit is contained in:
Michael Tuexen 2021-12-04 15:03:29 +01:00
parent 31537ea583
commit 8ea363c8c6

View File

@ -296,6 +296,7 @@ tcpdropbyname(const char *lhost, const char *lport, const char *fhost,
*/ */
.ai_family = AF_UNSPEC, .ai_family = AF_UNSPEC,
.ai_socktype = SOCK_STREAM, .ai_socktype = SOCK_STREAM,
.ai_protocol = IPPROTO_TCP,
}; };
struct addrinfo *ail, *local, *aif, *foreign; struct addrinfo *ail, *local, *aif, *foreign;
int error; int error;