diff options
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 7701b540f..e249b9f08 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1522,7 +1522,7 @@ tcp_plugin_get_session (void *cls, | |||
1522 | struct GNUNET_ATS_Information ats; | 1522 | struct GNUNET_ATS_Information ats; |
1523 | unsigned int is_natd = GNUNET_NO; | 1523 | unsigned int is_natd = GNUNET_NO; |
1524 | size_t addrlen; | 1524 | size_t addrlen; |
1525 | #ifdef SO_TCPSTEALTH | 1525 | #ifdef TCP_STEALTH |
1526 | struct GNUNET_NETWORK_Handle *s; | 1526 | struct GNUNET_NETWORK_Handle *s; |
1527 | #endif | 1527 | #endif |
1528 | 1528 | ||
@@ -1679,7 +1679,7 @@ tcp_plugin_get_session (void *cls, | |||
1679 | 1679 | ||
1680 | if (0 != (options & TCP_OPTIONS_TCP_STEALTH)) | 1680 | if (0 != (options & TCP_OPTIONS_TCP_STEALTH)) |
1681 | { | 1681 | { |
1682 | #ifdef SO_TCPSTEALTH | 1682 | #ifdef TCP_STEALTH |
1683 | s = GNUNET_NETWORK_socket_create (af, SOCK_STREAM, 0); | 1683 | s = GNUNET_NETWORK_socket_create (af, SOCK_STREAM, 0); |
1684 | if (NULL == s) | 1684 | if (NULL == s) |
1685 | { | 1685 | { |
@@ -1692,13 +1692,13 @@ tcp_plugin_get_session (void *cls, | |||
1692 | if ( (GNUNET_OK != | 1692 | if ( (GNUNET_OK != |
1693 | GNUNET_NETWORK_socket_setsockopt (s, | 1693 | GNUNET_NETWORK_socket_setsockopt (s, |
1694 | IPPROTO_TCP, | 1694 | IPPROTO_TCP, |
1695 | SO_TCPSTEALTH, | 1695 | TCP_STEALTH, |
1696 | &session->target, | 1696 | &session->target, |
1697 | sizeof (struct GNUNET_PeerIdentity))) || | 1697 | sizeof (struct GNUNET_PeerIdentity))) || |
1698 | (GNUNET_OK != | 1698 | (GNUNET_OK != |
1699 | GNUNET_NETWORK_socket_setsockopt (s, | 1699 | GNUNET_NETWORK_socket_setsockopt (s, |
1700 | IPPROTO_TCP, | 1700 | IPPROTO_TCP, |
1701 | SO_TCPSTEALTH_INTEGRITY, | 1701 | TCP_STEALTH_INTEGRITY, |
1702 | &plugin->my_welcome, | 1702 | &plugin->my_welcome, |
1703 | sizeof (struct WelcomeMessage))) ) | 1703 | sizeof (struct WelcomeMessage))) ) |
1704 | { | 1704 | { |
@@ -2712,7 +2712,7 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2712 | unsigned long long max_connections; | 2712 | unsigned long long max_connections; |
2713 | unsigned int i; | 2713 | unsigned int i; |
2714 | struct GNUNET_TIME_Relative idle_timeout; | 2714 | struct GNUNET_TIME_Relative idle_timeout; |
2715 | #ifdef SO_TCPSTEALTH | 2715 | #ifdef TCP_STEALTH |
2716 | struct GNUNET_NETWORK_Handle *const*lsocks; | 2716 | struct GNUNET_NETWORK_Handle *const*lsocks; |
2717 | #endif | 2717 | #endif |
2718 | int ret; | 2718 | int ret; |
@@ -2792,7 +2792,7 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2792 | "transport-tcp", | 2792 | "transport-tcp", |
2793 | "TCP_STEALTH")) ) | 2793 | "TCP_STEALTH")) ) |
2794 | { | 2794 | { |
2795 | #ifdef SO_TCPSTEALTH | 2795 | #ifdef TCP_STEALTH |
2796 | plugin->myoptions |= TCP_OPTIONS_TCP_STEALTH; | 2796 | plugin->myoptions |= TCP_OPTIONS_TCP_STEALTH; |
2797 | lsocks = GNUNET_SERVICE_get_listen_sockets (service); | 2797 | lsocks = GNUNET_SERVICE_get_listen_sockets (service); |
2798 | if (NULL != lsocks) | 2798 | if (NULL != lsocks) |
@@ -2804,13 +2804,13 @@ libgnunet_plugin_transport_tcp_init (void *cls) | |||
2804 | if ( (GNUNET_OK != | 2804 | if ( (GNUNET_OK != |
2805 | GNUNET_NETWORK_socket_setsockopt (lsocks[i], | 2805 | GNUNET_NETWORK_socket_setsockopt (lsocks[i], |
2806 | IPPROTO_TCP, | 2806 | IPPROTO_TCP, |
2807 | SO_TCPSTEALTH, | 2807 | TCP_STEALTH, |
2808 | env->my_identity, | 2808 | env->my_identity, |
2809 | sizeof (struct GNUNET_PeerIdentity))) || | 2809 | sizeof (struct GNUNET_PeerIdentity))) || |
2810 | (GNUNET_OK != | 2810 | (GNUNET_OK != |
2811 | GNUNET_NETWORK_socket_setsockopt (lsocks[i], | 2811 | GNUNET_NETWORK_socket_setsockopt (lsocks[i], |
2812 | IPPROTO_TCP, | 2812 | IPPROTO_TCP, |
2813 | SO_TCPSTEALTH_INTEGRITY_LEN, | 2813 | TCP_STEALTH_INTEGRITY_LEN, |
2814 | &len, | 2814 | &len, |
2815 | sizeof (len))) ) | 2815 | sizeof (len))) ) |
2816 | { | 2816 | { |