aboutsummaryrefslogtreecommitdiff
path: root/src/vpn/gnunet-daemon-vpn-helper.c
diff options
context:
space:
mode:
authorPhilipp Tölke <toelke@in.tum.de>2011-03-05 11:17:07 +0000
committerPhilipp Tölke <toelke@in.tum.de>2011-03-05 11:17:07 +0000
commit400de3aa78c110aeca65609af3571b1a65eaf4bf (patch)
treec591a0a3979814f67daf4b0a2b42d1ada46a8d38 /src/vpn/gnunet-daemon-vpn-helper.c
parent2a16fa8a3584bc001b757885449bc189e2cea1e3 (diff)
downloadgnunet-400de3aa78c110aeca65609af3571b1a65eaf4bf.tar.gz
gnunet-400de3aa78c110aeca65609af3571b1a65eaf4bf.zip
Allow the use of all ports and not just 4 per connection
Diffstat (limited to 'src/vpn/gnunet-daemon-vpn-helper.c')
-rw-r--r--src/vpn/gnunet-daemon-vpn-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpn/gnunet-daemon-vpn-helper.c b/src/vpn/gnunet-daemon-vpn-helper.c
index 9df2a8cc0..7d9eb7d6e 100644
--- a/src/vpn/gnunet-daemon-vpn-helper.c
+++ b/src/vpn/gnunet-daemon-vpn-helper.c
@@ -230,7 +230,7 @@ message_token(void *cls,
230 GNUNET_free(key); 230 GNUNET_free(key);
231 if (me->desc.service_type & htonl(GNUNET_DNS_SERVICE_TYPE_UDP) && 231 if (me->desc.service_type & htonl(GNUNET_DNS_SERVICE_TYPE_UDP) &&
232 (port_in_ports(me->desc.ports, pkt6_udp->udp_hdr.dpt) || 232 (port_in_ports(me->desc.ports, pkt6_udp->udp_hdr.dpt) ||
233 port_in_ports(me->additional_ports, pkt6_udp->udp_hdr.dpt))) 233 testBit(me->additional_ports, ntohs(pkt6_udp->udp_hdr.dpt))))
234 { 234 {
235 size_t size = sizeof(struct GNUNET_MESH_Tunnel*) + sizeof(struct GNUNET_MessageHeader) + sizeof(GNUNET_HashCode) + ntohs(pkt6_udp->udp_hdr.len); 235 size_t size = sizeof(struct GNUNET_MESH_Tunnel*) + sizeof(struct GNUNET_MessageHeader) + sizeof(GNUNET_HashCode) + ntohs(pkt6_udp->udp_hdr.len);
236 struct GNUNET_MESH_Tunnel **cls = GNUNET_malloc(size); 236 struct GNUNET_MESH_Tunnel **cls = GNUNET_malloc(size);