mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix parameters to setsockopt() for TCP_FASTOPEN.
This commit is contained in:
committed by
Simon Kelley
parent
977a5a2df1
commit
e39c484ebd
@@ -728,7 +728,7 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
|
||||
{
|
||||
#ifdef TCP_FASTOPEN
|
||||
int qlen = 5;
|
||||
setsockopt(fd, SOL_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));
|
||||
setsockopt(fd, IPPROTO_TCP, TCP_FASTOPEN, &qlen, sizeof(qlen));
|
||||
#endif
|
||||
|
||||
if (listen(fd, TCP_BACKLOG) == -1)
|
||||
|
||||
Reference in New Issue
Block a user