diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-20 17:21:21 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-20 17:21:21 +0000 |
commit | 8154c9edf0d39e8fec6f199115b02e84e49bba0b (patch) | |
tree | b923f8eb47c192f697f3292e6cbcf84e4f2504e0 /src/vpn | |
parent | cebfadaaefc873a8eae0d5db22173f616892ee52 (diff) | |
download | gnunet-8154c9edf0d39e8fec6f199115b02e84e49bba0b.tar.gz gnunet-8154c9edf0d39e8fec6f199115b02e84e49bba0b.zip |
-use different message types for different directions for TCP DATA
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index fe431b994..6b89c46ae 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -1196,7 +1196,7 @@ route_packet (struct DestinationEntry *destination, | |||
1196 | tnq->msg = &tnq[1]; | 1196 | tnq->msg = &tnq[1]; |
1197 | tdm = (struct GNUNET_EXIT_TcpDataMessage *) &tnq[1]; | 1197 | tdm = (struct GNUNET_EXIT_TcpDataMessage *) &tnq[1]; |
1198 | tdm->header.size = htons ((uint16_t) mlen); | 1198 | tdm->header.size = htons ((uint16_t) mlen); |
1199 | tdm->header.type = htons (GNUNET_MESSAGE_TYPE_VPN_TCP_DATA); | 1199 | tdm->header.type = htons (GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_EXIT); |
1200 | tdm->reserved = htonl (0); | 1200 | tdm->reserved = htonl (0); |
1201 | tdm->tcp_header = *tcp; | 1201 | tdm->tcp_header = *tcp; |
1202 | memcpy (&tdm[1], | 1202 | memcpy (&tdm[1], |
@@ -2322,7 +2322,7 @@ run (void *cls, | |||
2322 | }; | 2322 | }; |
2323 | static const struct GNUNET_MESH_MessageHandler mesh_handlers[] = { | 2323 | static const struct GNUNET_MESH_MessageHandler mesh_handlers[] = { |
2324 | { &receive_udp_back, GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY, 0}, | 2324 | { &receive_udp_back, GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY, 0}, |
2325 | { &receive_tcp_back, GNUNET_MESSAGE_TYPE_VPN_TCP_DATA, 0}, | 2325 | { &receive_tcp_back, GNUNET_MESSAGE_TYPE_VPN_TCP_DATA_TO_VPN, 0}, |
2326 | {NULL, 0, 0} | 2326 | {NULL, 0, 0} |
2327 | }; | 2327 | }; |
2328 | static const GNUNET_MESH_ApplicationType types[] = { | 2328 | static const GNUNET_MESH_ApplicationType types[] = { |