n2n/include
Sven Roederer 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
..
aes.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
cc20.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
edge_utils_win32.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
header_encryption.h rebased time stamp format: header encryption (#579) 2021-01-12 14:28:21 +05:45
lzoconf.h updated minilzo 2020-08-15 23:26:21 +05:45
lzodefs.h updated minilzo 2020-08-15 23:26:21 +05:45
minilzo.h updated minilzo 2020-08-15 23:26:21 +05:45
n2n_define.h improved socket handling (#650) 2021-03-01 14:13:14 +05:45
n2n_regex.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
n2n_typedefs.h revised tcp implementation (#674) 2021-03-26 20:45:31 +05:45
n2n_wire.h cleaned up mac type usage (#583) 2021-01-13 14:50:26 +05:45
n2n.h drop non portable SOL_TCP / fix MacOS v2 (#680) 2021-04-05 19:30:53 +02:00
network_traffic_filter.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
pearson.h switched to Pearson B. Hashing (#570) 2021-01-07 11:15:40 +01:00
portable_endian.h Android compilation fixes 2020-06-28 19:46:12 +02:00
random_numbers.h fix windows compile (#636) 2021-02-10 15:16:16 +05:45
sn_selection.h skewed supernode selection for the benefit of current supernode in no-pong case (#663) 2021-03-16 23:24:39 +05:45
speck.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
tf.h switched to 2021 (#632) 2021-02-08 16:11:06 +05:45
uthash.h Code reorganization 2020-06-21 22:26:27 +02:00