-remove debug message
[oweals/gnunet.git] / src / exit / exit.h
index ff5e3f54c5cc1a421e154a52343ca6080b9a3126..41dad6246ec162fbc99ca722cebc2f43f332e8e5 100644 (file)
@@ -1,26 +1,26 @@
 /*
      This file is part of GNUnet.
-     (C) 2012 Christian Grothoff
+     Copyright (C) 2012 Christian Grothoff
 
-     GNUnet is free software; you can redistribute it and/or modify
-     it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 3, or (at your
-     option) any later version.
+     GNUnet is free software: you can redistribute it and/or modify it
+     under the terms of the GNU Affero General Public License as published
+     by the Free Software Foundation, either version 3 of the License,
+     or (at your option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
      WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-     General Public License for more details.
+     Affero General Public License for more details.
 
-     You should have received a copy of the GNU General Public License
-     along with GNUnet; see the file COPYING.  If not, write to the
-     Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-     Boston, MA 02111-1307, USA.
-*/
+     You should have received a copy of the GNU Affero General Public License
+     along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+     SPDX-License-Identifier: AGPL3.0-or-later
+ */
 
 /**
  * @file exit/exit.h
- * @brief format for mesh messages exchanged between VPN service and exit daemon
+ * @brief format for cadet messages exchanged between VPN service and exit daemon
  * @author Christian Grothoff
  */
 #ifndef EXIT_H
 GNUNET_NETWORK_STRUCT_BEGIN
 
 /**
- * Message send via mesh to an exit daemon to initiate forwarding of
+ * Message send via cadet to an exit daemon to initiate forwarding of
  * TCP data to a local service.
  */
 struct GNUNET_EXIT_TcpServiceStartMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_TO_SERVICE_START
    */
   struct GNUNET_MessageHeader header;
 
@@ -46,11 +46,6 @@ struct GNUNET_EXIT_TcpServiceStartMessage
    */
   uint32_t reserved GNUNET_PACKED;
 
-  /**
-   * Identification for the desired service.
-   */
-  struct GNUNET_HashCode service_descriptor;
-
   /**
    * Skeleton of the TCP header to send.  Port numbers are to
    * be replaced and the checksum may be updated as necessary.
@@ -62,13 +57,13 @@ struct GNUNET_EXIT_TcpServiceStartMessage
 
 
 /**
- * Message send via mesh to an exit daemon to initiate forwarding of
+ * Message send via cadet to an exit daemon to initiate forwarding of
  * TCP data to the Internet.
  */
 struct GNUNET_EXIT_TcpInternetStartMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_TO_INTERNET_START
    */
   struct GNUNET_MessageHeader header;
 
@@ -91,7 +86,7 @@ struct GNUNET_EXIT_TcpInternetStartMessage
 
 
 /**
- * Message send via mesh between VPN and entry and an exit daemon to 
+ * Message send via cadet between VPN and entry and an exit daemon to
  * transmit TCP data between the VPN entry and an exit session.  This
  * format is used for both Internet-exits and service-exits and
  * in both directions (VPN to exit and exit to VPN).
@@ -99,7 +94,7 @@ struct GNUNET_EXIT_TcpInternetStartMessage
 struct GNUNET_EXIT_TcpDataMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_TCP_DATA
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_TCP_DATA
    */
   struct GNUNET_MessageHeader header;
 
@@ -119,13 +114,13 @@ struct GNUNET_EXIT_TcpDataMessage
 
 
 /**
- * Message send via mesh to an exit daemon to send
+ * Message send via cadet to an exit daemon to send
  * UDP data to a local service.
  */
 struct GNUNET_EXIT_UdpServiceMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_TO_SERVICE
    */
   struct GNUNET_MessageHeader header;
 
@@ -136,26 +131,21 @@ struct GNUNET_EXIT_UdpServiceMessage
 
   /**
    * Destination port to use for the UDP request.  In NBO.
-   */   
-  uint16_t destination_port GNUNET_PACKED;
-
-  /**
-   * Identification for the desired service.
    */
-  struct GNUNET_HashCode service_descriptor;
+  uint16_t destination_port GNUNET_PACKED;
 
   /* followed by UDP payload */
 };
 
 
 /**
- * Message send via mesh to an exit daemon to forward
+ * Message send via cadet to an exit daemon to forward
  * UDP data to the Internet.
  */
 struct GNUNET_EXIT_UdpInternetMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_TO_INTERNET
    */
   struct GNUNET_MessageHeader header;
 
@@ -171,7 +161,7 @@ struct GNUNET_EXIT_UdpInternetMessage
 
   /**
    * Destination port to use for the UDP request.  In NBO.
-   */   
+   */
   uint16_t destination_port GNUNET_PACKED;
 
   /* followed by IP address of the destination; either
@@ -188,7 +178,7 @@ struct GNUNET_EXIT_UdpInternetMessage
 struct GNUNET_EXIT_UdpReplyMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_UDP_REPLY
    */
   struct GNUNET_MessageHeader header;
 
@@ -201,7 +191,7 @@ struct GNUNET_EXIT_UdpReplyMessage
   /**
    * Destination port to use for the UDP reply (0 to use the same
    * port as for the original request).  In NBO.
-   */   
+   */
   uint16_t destination_port GNUNET_PACKED;
 
   /* followed by UDP payload */
@@ -209,13 +199,13 @@ struct GNUNET_EXIT_UdpReplyMessage
 
 
 /**
- * Message send via mesh to an exit daemon to send
+ * Message send via cadet to an exit daemon to send
  * ICMP data to a local service.
  */
 struct GNUNET_EXIT_IcmpServiceMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_SERVICE
    */
   struct GNUNET_MessageHeader header;
 
@@ -227,11 +217,6 @@ struct GNUNET_EXIT_IcmpServiceMessage
    */
   int32_t af GNUNET_PACKED;
 
-  /**
-   * Identification for the desired service.
-   */
-  struct GNUNET_HashCode service_descriptor;
-
   /**
    * ICMP header to use.
    */
@@ -245,13 +230,13 @@ struct GNUNET_EXIT_IcmpServiceMessage
 
 
 /**
- * Message send via mesh to an exit daemon to forward
+ * Message send via cadet to an exit daemon to forward
  * ICMP data to the Internet.
  */
 struct GNUNET_EXIT_IcmpInternetMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_INTERNET
    */
   struct GNUNET_MessageHeader header;
 
@@ -280,13 +265,13 @@ struct GNUNET_EXIT_IcmpInternetMessage
 
 
 /**
- * Message send via mesh to the vpn service to send
+ * Message send via cadet to the vpn service to send
  * ICMP data to the VPN's TUN interface.
  */
 struct GNUNET_EXIT_IcmpToVPNMessage
 {
   /**
-   * Type is GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN
+   * Type is #GNUNET_MESSAGE_TYPE_VPN_ICMP_TO_VPN
    */
   struct GNUNET_MessageHeader header;