diff options
Diffstat (limited to 'src/vpn/gnunet-service-vpn.c')
-rw-r--r-- | src/vpn/gnunet-service-vpn.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/vpn/gnunet-service-vpn.c b/src/vpn/gnunet-service-vpn.c index f0cdf6a3c..b352e216b 100644 --- a/src/vpn/gnunet-service-vpn.c +++ b/src/vpn/gnunet-service-vpn.c | |||
@@ -1636,15 +1636,11 @@ receive_tcp_back (void *cls GNUNET_UNUSED, struct GNUNET_MESH_Tunnel *tunnel, | |||
1636 | msg->size = htons (size); | 1636 | msg->size = htons (size); |
1637 | tun->flags = htons (0); | 1637 | tun->flags = htons (0); |
1638 | tun->proto = htons (ETH_P_IPV6); | 1638 | tun->proto = htons (ETH_P_IPV6); |
1639 | ipv6->traffic_class_h = 0; | 1639 | GNUNET_TUN_initialize_ipv6_header (ipv6, |
1640 | ipv6->version = 6; | 1640 | IPPROTO_TCP, |
1641 | ipv6->traffic_class_l = 0; | 1641 | sizeof (struct GNUNET_TUN_TcpHeader) + mlen, |
1642 | ipv6->flow_label = 0; | 1642 | &ts->destination_ip.v6, |
1643 | ipv6->payload_length = htons (sizeof (struct GNUNET_TUN_TcpHeader) + sizeof (struct GNUNET_TUN_IPv6Header) + mlen); | 1643 | &ts->source_ip.v6); |
1644 | ipv6->next_header = IPPROTO_TCP; | ||
1645 | ipv6->hop_limit = 255; | ||
1646 | ipv6->source_address = ts->destination_ip.v6; | ||
1647 | ipv6->destination_address = ts->source_ip.v6; | ||
1648 | tcp->spt = htons (ts->destination_port); | 1644 | tcp->spt = htons (ts->destination_port); |
1649 | tcp->dpt = htons (ts->source_port); | 1645 | tcp->dpt = htons (ts->source_port); |
1650 | tcp->crc = 0; | 1646 | tcp->crc = 0; |