diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-14 17:05:05 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-01-14 17:05:05 +0000 |
commit | ff3a1b36c6e34afd03d13f05e9c0b8eeccf0a87d (patch) | |
tree | 600ab17e1a3d80bf0dda57c719b7b6a9f4e77198 /src/transport/plugin_transport_tcp.c | |
parent | f8ea3a2c26a31f7c864f18539eaedf761fb2dc4b (diff) | |
download | gnunet-ff3a1b36c6e34afd03d13f05e9c0b8eeccf0a87d.tar.gz gnunet-ff3a1b36c6e34afd03d13f05e9c0b8eeccf0a87d.zip |
simplification for tcp plugin
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 0af690062..011b112c0 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2047,7 +2047,7 @@ handle_tcp_welcome (void *cls, struct GNUNET_SERVER_Client *client, | |||
2047 | t4.t4_port = s4->sin_port; | 2047 | t4.t4_port = s4->sin_port; |
2048 | t4.ipv4_addr = s4->sin_addr.s_addr; | 2048 | t4.ipv4_addr = s4->sin_addr.s_addr; |
2049 | address = GNUNET_HELLO_address_allocate (&wm->clientIdentity, | 2049 | address = GNUNET_HELLO_address_allocate (&wm->clientIdentity, |
2050 | PLUGIN_NAME, &t4, sizeof(struct IPv4TcpAddress), | 2050 | PLUGIN_NAME, &t4, sizeof(t4), |
2051 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); | 2051 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
2052 | } | 2052 | } |
2053 | else if (alen == sizeof(struct sockaddr_in6)) | 2053 | else if (alen == sizeof(struct sockaddr_in6)) |
@@ -2058,7 +2058,7 @@ handle_tcp_welcome (void *cls, struct GNUNET_SERVER_Client *client, | |||
2058 | t6.t6_port = s6->sin6_port; | 2058 | t6.t6_port = s6->sin6_port; |
2059 | memcpy (&t6.ipv6_addr, &s6->sin6_addr, sizeof(struct in6_addr)); | 2059 | memcpy (&t6.ipv6_addr, &s6->sin6_addr, sizeof(struct in6_addr)); |
2060 | address = GNUNET_HELLO_address_allocate (&wm->clientIdentity, | 2060 | address = GNUNET_HELLO_address_allocate (&wm->clientIdentity, |
2061 | PLUGIN_NAME, &t6, sizeof(struct IPv6TcpAddress), | 2061 | PLUGIN_NAME, &t6, sizeof (t6), |
2062 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); | 2062 | GNUNET_HELLO_ADDRESS_INFO_INBOUND); |
2063 | } | 2063 | } |
2064 | session = create_session (plugin, address, client, GNUNET_NO); | 2064 | session = create_session (plugin, address, client, GNUNET_NO); |