/*
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
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.
*/
/**
struct GNUNET_DV_ConnectMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_CONNECT
+ * Type: #GNUNET_MESSAGE_TYPE_DV_CONNECT
*/
struct GNUNET_MessageHeader header;
uint32_t distance GNUNET_PACKED;
/**
- * The network the peer is in
+ * The other peer (at the given distance).
*/
- uint32_t network GNUNET_PACKED;
+ struct GNUNET_PeerIdentity peer;
/**
- * The other peer (at the given distance).
+ * The network the peer is in
*/
- struct GNUNET_PeerIdentity peer;
+ uint32_t network GNUNET_PACKED;
};
struct GNUNET_DV_DisconnectMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_DISCONNECT
+ * Type: #GNUNET_MESSAGE_TYPE_DV_DISCONNECT
*/
struct GNUNET_MessageHeader header;
struct GNUNET_DV_ReceivedMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_TRANSPORT_DV_RECV
+ * Type: #GNUNET_MESSAGE_TYPE_DV_RECV
*/
struct GNUNET_MessageHeader header;
struct GNUNET_DV_SendMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_DV_SEND
+ * Type: #GNUNET_MESSAGE_TYPE_DV_SEND
*/
struct GNUNET_MessageHeader header;
struct GNUNET_DV_AckMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_DV_SEND_ACK or
- * GNUNET_MESSAGE_TYPE_DV_SEND_NACK.
+ * Type: #GNUNET_MESSAGE_TYPE_DV_SEND_ACK or
+ * #GNUNET_MESSAGE_TYPE_DV_SEND_NACK.
*/
struct GNUNET_MessageHeader header;
struct GNUNET_DV_DistanceUpdateMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED.
+ * Type: #GNUNET_MESSAGE_TYPE_DV_DISTANCE_CHANGED.
*/
struct GNUNET_MessageHeader header;
*/
struct GNUNET_PeerIdentity peer;
+ /**
+ * The network the peer is in
+ */
+ uint32_t network GNUNET_PACKED;
+
};