mirror of
http://thekelleys.org.uk/git/dnsmasq.git
synced 2026-10-14 10:29:33 +00:00
Fix parameters to setsockopt() for TCP_FASTOPEN.
This commit is contained in:
1 parent
977a5a2df1
commit
e39c484ebd
1 file changed
+1
-1
+1
-1
@@ -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