Files
n2n/include
Sven RoedererandGitHub 23c18e349f drop non portable SOL_TCP / fix MacOS v2 (#680)
* Revert "Fix compilation on MacOS"

in order to another solution

* src: use IPPROTO_TCP in place of SOL_TCP

* use the more specific IPPROTO_TCP type for setsockopt
* fixes build on MacOS

src/edge_utils.c:891:31: error: use of undeclared identifier 'SOL_TCP'; did you mean 'FPP_TCP'?
        setsockopt(eee->sock, SOL_TCP, TCP_NODELAY, &value, sizeof(value));

src/edge_utils.c:894:31: error: use of undeclared identifier 'SOL_TCP'
        setsockopt(eee->sock, SOL_TCP, TCP_CORK, &value, sizeof(value));
                              ^
src/edge_utils.c:894:40: error: use of undeclared identifier 'TCP_CORK'
        setsockopt(eee->sock, SOL_TCP, TCP_CORK, &value, sizeof(value));

* include/n2n.h: drop redefiniton of SOL_TCP for WIN32, as we don't use it anywhere now

* src: only use TCP_CORK on LINUX

* it's LINUX only and fails on Win32 and MacOS (man 7 tcp)
2021-04-05 19:30:53 +02:00
..
2021-02-08 16:11:06 +05:45
2021-02-08 16:11:06 +05:45
2021-02-08 16:11:06 +05:45
2020-08-15 23:26:21 +05:45
2020-08-15 23:26:21 +05:45
2020-08-15 23:26:21 +05:45
2021-03-01 14:13:14 +05:45
2021-02-08 16:11:06 +05:45
2021-01-13 14:50:26 +05:45
2020-06-28 19:46:12 +02:00
2021-02-10 15:16:16 +05:45
2021-02-08 16:11:06 +05:45
2021-02-08 16:11:06 +05:45
2020-06-21 22:26:27 +02:00