Commit 86ce73d1 authored by Daan Vreeken [PA4DAN]'s avatar Daan Vreeken [PA4DAN]
Browse files

Committer: Daan Vreeken [PA4DAN] <pa4dan@RacebeestV3.VEHosting.LAN>

	modified:   common/utils/tcp_connect.c

Disable these TCP options on FreeBSD. I don't know their FreeBSD counter parts
off the top of my head.
parent 9cb10e57
......@@ -99,6 +99,7 @@ int tcp_connect(char *host, int port)
setsockopt(sock, SOL_SOCKET, SO_KEEPALIVE,
&(int){1}, sizeof(int));
#ifndef __FreeBSD__
/* number of probes which may fail */
setsockopt(sock, SOL_TCP, TCP_KEEPCNT,
&(int){5}, sizeof(int));
......@@ -108,6 +109,7 @@ int tcp_connect(char *host, int port)
/* interval between probes */
setsockopt(sock, SOL_TCP, TCP_KEEPINTVL,
&(int){2}, sizeof(int));
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment