}
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
/**
* Open TCP socket with TCP STEALTH enabled.
*
return (curl_socket_t) ret;
if ( (0 != setsockopt (ret,
IPPROTO_TCP,
- SO_TCPSTEALTH,
+ TCP_STEALTH,
&s->address->peer,
sizeof (struct GNUNET_PeerIdentity))) )
{
s->get.s = s;
if (0 != (options & HTTP_OPTIONS_TCP_STEALTH))
{
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
curl_easy_setopt (s->get.easyhandle,
CURLOPT_OPENSOCKETFUNCTION,
&open_tcp_stealth_socket_cb);
#endif
if (0 != (options & HTTP_OPTIONS_TCP_STEALTH))
{
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
curl_easy_setopt (s->put.easyhandle,
CURLOPT_OPENSOCKETFUNCTION,
&open_tcp_stealth_socket_cb);
MHD_OPTION_EXTERNAL_LOGGER,
&server_log, NULL,
MHD_OPTION_END);
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
if ( (NULL != server) &&
(0 != (plugin->options & HTTP_OPTIONS_TCP_STEALTH)) )
{
NULL);
if ( (0 != setsockopt ((int) di->listen_fd,
IPPROTO_TCP,
- SO_TCPSTEALTH,
+ TCP_STEALTH,
plugin->env->my_identity,
sizeof (struct GNUNET_PeerIdentity))) )
{
plugin->name,
"TCP_STEALTH"))
{
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
plugin->options |= HTTP_OPTIONS_TCP_STEALTH;
#else
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
struct GNUNET_ATS_Information ats;
unsigned int is_natd = GNUNET_NO;
size_t addrlen;
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
struct GNUNET_NETWORK_Handle *s;
#endif
if (0 != (options & TCP_OPTIONS_TCP_STEALTH))
{
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
s = GNUNET_NETWORK_socket_create (af, SOCK_STREAM, 0);
if (NULL == s)
{
if ( (GNUNET_OK !=
GNUNET_NETWORK_socket_setsockopt (s,
IPPROTO_TCP,
- SO_TCPSTEALTH,
+ TCP_STEALTH,
&session->target,
sizeof (struct GNUNET_PeerIdentity))) ||
(GNUNET_OK !=
GNUNET_NETWORK_socket_setsockopt (s,
IPPROTO_TCP,
- SO_TCPSTEALTH_INTEGRITY,
+ TCP_STEALTH_INTEGRITY,
&plugin->my_welcome,
sizeof (struct WelcomeMessage))) )
{
unsigned long long max_connections;
unsigned int i;
struct GNUNET_TIME_Relative idle_timeout;
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
struct GNUNET_NETWORK_Handle *const*lsocks;
#endif
int ret;
"transport-tcp",
"TCP_STEALTH")) )
{
-#ifdef SO_TCPSTEALTH
+#ifdef TCP_STEALTH
plugin->myoptions |= TCP_OPTIONS_TCP_STEALTH;
lsocks = GNUNET_SERVICE_get_listen_sockets (service);
if (NULL != lsocks)
if ( (GNUNET_OK !=
GNUNET_NETWORK_socket_setsockopt (lsocks[i],
IPPROTO_TCP,
- SO_TCPSTEALTH,
+ TCP_STEALTH,
env->my_identity,
sizeof (struct GNUNET_PeerIdentity))) ||
(GNUNET_OK !=
GNUNET_NETWORK_socket_setsockopt (lsocks[i],
IPPROTO_TCP,
- SO_TCPSTEALTH_INTEGRITY_LEN,
+ TCP_STEALTH_INTEGRITY_LEN,
&len,
sizeof (len))) )
{