X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fdv%2Fdv.h;h=844cfb5e1cfb5c72724b649cb27562ae476671fc;hb=633c9ed2d8392f0620dee12513f65a4cc602ea60;hp=c0247218efa7c8712307937af4a95985d63fd288;hpb=d1c05be0514d7b0074a8df34b12a0acb6bae82d0;p=oweals%2Fgnunet.git diff --git a/src/dv/dv.h b/src/dv/dv.h index c0247218e..844cfb5e1 100644 --- a/src/dv/dv.h +++ b/src/dv/dv.h @@ -1,6 +1,6 @@ /* This file is part of GNUnet. - (C) 2013 Christian Grothoff (and other contributing authors) + Copyright (C) 2013 GNUnet e.V. GNUnet is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published @@ -14,8 +14,8 @@ 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. + Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ /** @@ -37,7 +37,7 @@ GNUNET_NETWORK_STRUCT_BEGIN struct GNUNET_DV_ConnectMessage { /** - * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_CONNECT + * Type: #GNUNET_MESSAGE_TYPE_DV_CONNECT */ struct GNUNET_MessageHeader header; @@ -51,6 +51,11 @@ struct GNUNET_DV_ConnectMessage */ struct GNUNET_PeerIdentity peer; + /** + * The network the peer is in + */ + uint32_t network GNUNET_PACKED; + }; @@ -64,7 +69,7 @@ struct GNUNET_DV_ConnectMessage struct GNUNET_DV_DisconnectMessage { /** - * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_DISCONNECT + * Type: #GNUNET_MESSAGE_TYPE_DV_DISCONNECT */ struct GNUNET_MessageHeader header; @@ -91,7 +96,7 @@ struct GNUNET_DV_DisconnectMessage struct GNUNET_DV_ReceivedMessage { /** - * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECV + * Type: #GNUNET_MESSAGE_TYPE_DV_RECV */ struct GNUNET_MessageHeader header; @@ -116,39 +121,14 @@ struct GNUNET_DV_ReceivedMessage struct GNUNET_DV_SendMessage { /** - * Type: GNUNET_MESSAGE_TYPE_DV_SEND + * Type: #GNUNET_MESSAGE_TYPE_DV_SEND */ struct GNUNET_MessageHeader header; /** - * Unique ID for this message, for confirm callback, must never be zero. - */ - uint32_t uid GNUNET_PACKED; - - /** - * The (actual) target of the message + * Reserved for alignment. 0. */ - struct GNUNET_PeerIdentity target; - -}; - - -/** - * Message from service to DV plugin, saying that a - * SEND request was handled. - */ -struct GNUNET_DV_AckMessage -{ - /** - * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK or - * GNUNET_MESSAGE_TYPE_DV_SEND_NACK. - */ - struct GNUNET_MessageHeader header; - - /** - * Which message is being acknowledged? - */ - uint32_t uid GNUNET_PACKED; + uint32_t reserved GNUNET_PACKED; /** * The (actual) target of the message @@ -165,8 +145,8 @@ struct GNUNET_DV_AckMessage struct GNUNET_DV_DistanceUpdateMessage { /** - * Type: GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED. - */ + * Type: #GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED. + */ struct GNUNET_MessageHeader header; /** @@ -179,6 +159,11 @@ struct GNUNET_DV_DistanceUpdateMessage */ struct GNUNET_PeerIdentity peer; + /** + * The network the peer is in + */ + uint32_t network GNUNET_PACKED; + };