diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-01-26 22:12:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-01-26 22:12:39 +0000 |
commit | 2ae80e7257ac8432736d6dc9a023ae57b190a969 (patch) | |
tree | 3ddf05e1ca5e1feab051465399ced0635618e229 /src/vpn | |
parent | 07454f3717ad7e7f65d0b4e0ae4b56c9a13c4765 (diff) | |
download | gnunet-2ae80e7257ac8432736d6dc9a023ae57b190a969.tar.gz gnunet-2ae80e7257ac8432736d6dc9a023ae57b190a969.zip |
-set tcp header
Diffstat (limited to 'src/vpn')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index fbfd6e7f5..be0760bce 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -2281,6 +2281,7 @@ receive_tcp_back (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel, | |||
2281 | sizeof (struct GNUNET_TUN_TcpHeader) + mlen, | 2281 | sizeof (struct GNUNET_TUN_TcpHeader) + mlen, |
2282 | &ts->destination_ip.v6, | 2282 | &ts->destination_ip.v6, |
2283 | &ts->source_ip.v6); | 2283 | &ts->source_ip.v6); |
2284 | *tcp = data->tcp_header; | ||
2284 | tcp->spt = htons (ts->destination_port); | 2285 | tcp->spt = htons (ts->destination_port); |
2285 | tcp->dpt = htons (ts->source_port); | 2286 | tcp->dpt = htons (ts->source_port); |
2286 | GNUNET_TUN_calculate_tcp6_checksum (ipv6, | 2287 | GNUNET_TUN_calculate_tcp6_checksum (ipv6, |