diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-02 20:54:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-02 20:54:51 +0000 |
commit | ff2354195a8ed1ea2e9c781d7c4421742b0df4d0 (patch) | |
tree | 2cb08c47004138f88f49850b0af2e9185acb4e82 /src/util/network.c | |
parent | 75b02f33ec88d5b2db25d31a1b6fffc82290f38c (diff) | |
download | gnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.tar.gz gnunet-ff2354195a8ed1ea2e9c781d7c4421742b0df4d0.zip |
adding TCP_STEALTH support to TCP plugin
Diffstat (limited to 'src/util/network.c')
-rw-r--r-- | src/util/network.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/src/util/network.c b/src/util/network.c index 46e6fa03b..84b659c28 100644 --- a/src/util/network.c +++ b/src/util/network.c | |||
@@ -829,17 +829,23 @@ GNUNET_NETWORK_socket_sendto (const struct GNUNET_NETWORK_Handle * desc, | |||
829 | * @param level protocol level of the option | 829 | * @param level protocol level of the option |
830 | * @param option_name option identifier | 830 | * @param option_name option identifier |
831 | * @param option_value value to set | 831 | * @param option_value value to set |
832 | * @param option_len size of option_value | 832 | * @param option_len size of @a option_value |
833 | * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise | 833 | * @return #GNUNET_OK on success, #GNUNET_SYSERR otherwise |
834 | */ | 834 | */ |
835 | int | 835 | int |
836 | GNUNET_NETWORK_socket_setsockopt (struct GNUNET_NETWORK_Handle *fd, int level, | 836 | GNUNET_NETWORK_socket_setsockopt (struct GNUNET_NETWORK_Handle *fd, |
837 | int option_name, const void *option_value, | 837 | int level, |
838 | int option_name, | ||
839 | const void *option_value, | ||
838 | socklen_t option_len) | 840 | socklen_t option_len) |
839 | { | 841 | { |
840 | int ret; | 842 | int ret; |
841 | 843 | ||
842 | ret = setsockopt (fd->fd, level, option_name, option_value, option_len); | 844 | ret = setsockopt (fd->fd, |
845 | level, | ||
846 | option_name, | ||
847 | option_value, | ||
848 | option_len); | ||
843 | #ifdef MINGW | 849 | #ifdef MINGW |
844 | if (SOCKET_ERROR == ret) | 850 | if (SOCKET_ERROR == ret) |
845 | SetErrnoFromWinsockError (WSAGetLastError ()); | 851 | SetErrnoFromWinsockError (WSAGetLastError ()); |