aboutsummaryrefslogtreecommitdiff
path: root/src/exit/gnunet-daemon-exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exit/gnunet-daemon-exit.c')
-rw-r--r--src/exit/gnunet-daemon-exit.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/exit/gnunet-daemon-exit.c b/src/exit/gnunet-daemon-exit.c
index 09576e393..2cd3441a1 100644
--- a/src/exit/gnunet-daemon-exit.c
+++ b/src/exit/gnunet-daemon-exit.c
@@ -979,7 +979,7 @@ send_tcp_packet_via_tun (const struct SocketAddress *destination_address,
979 } 979 }
980 len += sizeof (struct GNUNET_TUN_TcpHeader); 980 len += sizeof (struct GNUNET_TUN_TcpHeader);
981 len += payload_length; 981 len += payload_length;
982 if (len >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 982 if (len >= GNUNET_MAX_MESSAGE_SIZE)
983 { 983 {
984 GNUNET_break (0); 984 GNUNET_break (0);
985 return; 985 return;
@@ -1079,7 +1079,7 @@ send_icmp_packet_via_tun (const struct SocketAddress *destination_address,
1079 } 1079 }
1080 len += sizeof (struct GNUNET_TUN_IcmpHeader); 1080 len += sizeof (struct GNUNET_TUN_IcmpHeader);
1081 len += payload_length; 1081 len += payload_length;
1082 if (len >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1082 if (len >= GNUNET_MAX_MESSAGE_SIZE)
1083 { 1083 {
1084 GNUNET_break (0); 1084 GNUNET_break (0);
1085 return; 1085 return;
@@ -1358,7 +1358,7 @@ send_udp_packet_via_tun (const struct SocketAddress *destination_address,
1358 } 1358 }
1359 len += sizeof (struct GNUNET_TUN_UdpHeader); 1359 len += sizeof (struct GNUNET_TUN_UdpHeader);
1360 len += payload_length; 1360 len += payload_length;
1361 if (len >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 1361 if (len >= GNUNET_MAX_MESSAGE_SIZE)
1362 { 1362 {
1363 GNUNET_break (0); 1363 GNUNET_break (0);
1364 return; 1364 return;
@@ -2502,7 +2502,7 @@ store_service (int proto,
2502 GNUNET_h2s (&cadet_port), 2502 GNUNET_h2s (&cadet_port),
2503 name, 2503 name,
2504 (unsigned int) destination_port); 2504 (unsigned int) destination_port);
2505 service->port = GNUNET_CADET_open_porT (cadet_handle, 2505 service->port = GNUNET_CADET_open_port (cadet_handle,
2506 &cadet_port, 2506 &cadet_port,
2507 &new_service_channel, 2507 &new_service_channel,
2508 service, 2508 service,
@@ -2884,7 +2884,7 @@ tcp_from_helper (const struct GNUNET_TUN_TcpHeader *tcp,
2884 mtcp->crc = 0; 2884 mtcp->crc = 0;
2885 2885
2886 mlen = sizeof (struct GNUNET_EXIT_TcpDataMessage) + (pktlen - sizeof (struct GNUNET_TUN_TcpHeader)); 2886 mlen = sizeof (struct GNUNET_EXIT_TcpDataMessage) + (pktlen - sizeof (struct GNUNET_TUN_TcpHeader));
2887 if (mlen >= GNUNET_SERVER_MAX_MESSAGE_SIZE) 2887 if (mlen >= GNUNET_MAX_MESSAGE_SIZE)
2888 { 2888 {
2889 GNUNET_break (0); 2889 GNUNET_break (0);
2890 return; 2890 return;
@@ -2905,12 +2905,10 @@ tcp_from_helper (const struct GNUNET_TUN_TcpHeader *tcp,
2905 * Receive packets from the helper-process 2905 * Receive packets from the helper-process
2906 * 2906 *
2907 * @param cls unused 2907 * @param cls unused
2908 * @param client unsued
2909 * @param message message received from helper 2908 * @param message message received from helper
2910 */ 2909 */
2911static int 2910static int
2912message_token (void *cls GNUNET_UNUSED, 2911message_token (void *cls GNUNET_UNUSED,
2913 void *client GNUNET_UNUSED,
2914 const struct GNUNET_MessageHeader *message) 2912 const struct GNUNET_MessageHeader *message)
2915{ 2913{
2916 const struct GNUNET_TUN_Layer2PacketHeader *pkt_tun; 2914 const struct GNUNET_TUN_Layer2PacketHeader *pkt_tun;
@@ -3579,7 +3577,7 @@ advertise_dns_exit ()
3579 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3577 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3580 "Opening CADET port %s for DNS exit service\n", 3578 "Opening CADET port %s for DNS exit service\n",
3581 GNUNET_h2s (&port)); 3579 GNUNET_h2s (&port));
3582 dns_port = GNUNET_CADET_open_porT (cadet_handle, 3580 dns_port = GNUNET_CADET_open_port (cadet_handle,
3583 &port, 3581 &port,
3584 &new_channel, 3582 &new_channel,
3585 NULL, 3583 NULL,
@@ -3829,7 +3827,7 @@ run (void *cls,
3829 NULL); 3827 NULL);
3830 stats = GNUNET_STATISTICS_create ("exit", 3828 stats = GNUNET_STATISTICS_create ("exit",
3831 cfg); 3829 cfg);
3832 cadet_handle = GNUNET_CADET_connecT (cfg); 3830 cadet_handle = GNUNET_CADET_connect (cfg);
3833 if (NULL == cadet_handle) 3831 if (NULL == cadet_handle)
3834 { 3832 {
3835 GNUNET_SCHEDULER_shutdown (); 3833 GNUNET_SCHEDULER_shutdown ();
@@ -3862,7 +3860,7 @@ run (void *cls,
3862 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3860 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3863 "Opening CADET port %s for IPv4 gateway service\n", 3861 "Opening CADET port %s for IPv4 gateway service\n",
3864 GNUNET_h2s (&port)); 3862 GNUNET_h2s (&port));
3865 cadet_port4 = GNUNET_CADET_open_porT (cadet_handle, 3863 cadet_port4 = GNUNET_CADET_open_port (cadet_handle,
3866 &port, 3864 &port,
3867 &new_channel, 3865 &new_channel,
3868 NULL, 3866 NULL,
@@ -3902,7 +3900,7 @@ run (void *cls,
3902 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 3900 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
3903 "Opening CADET port %s for IPv6 gateway service\n", 3901 "Opening CADET port %s for IPv6 gateway service\n",
3904 GNUNET_h2s (&port)); 3902 GNUNET_h2s (&port));
3905 cadet_port6 = GNUNET_CADET_open_porT (cadet_handle, 3903 cadet_port6 = GNUNET_CADET_open_port (cadet_handle,
3906 &port, 3904 &port,
3907 &new_channel, 3905 &new_channel,
3908 NULL, 3906 NULL,