X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ftransport%2Ftransport.h;h=c0e02c3d9ad7075078a53a313ca4e3800db6eeae;hb=609e4becfe496ed62c2007db18d04fbc8d523476;hp=88656a012339496479d6b95df0956f04c33875d7;hpb=634aea297cc983c3d70f65a004f698f215abe590;p=oweals%2Fgnunet.git diff --git a/src/transport/transport.h b/src/transport/transport.h index 88656a012..c0e02c3d9 100644 --- a/src/transport/transport.h +++ b/src/transport/transport.h @@ -223,12 +223,12 @@ struct SendOkMessage * in either case, it is now OK for this client to * send us another message for the given peer. */ - uint32_t success GNUNET_PACKED; + uint16_t success GNUNET_PACKED; /** * Size of message sent */ - uint32_t bytes_msg GNUNET_PACKED; + uint16_t bytes_msg GNUNET_PACKED; /** * Size of message sent over wire @@ -871,7 +871,7 @@ struct GNUNET_TRANSPORT_CreateQueue /** - * Transport tells communicator that it wants a new queue. + * Communicator tells transport how queue creation went down. */ struct GNUNET_TRANSPORT_CreateQueueResponse { @@ -973,7 +973,34 @@ struct GNUNET_TRANSPORT_CommunicatorBackchannel message to the communicator */ /* Followed by the 0-terminated string specifying the desired - communicator */ + communicator at the target (@e pid) peer */ +}; + + +/** + * Message from transport to communicator passing along a backchannel + * message from the given peer @e pid. + */ +struct GNUNET_TRANSPORT_CommunicatorBackchannelIncoming +{ + /** + * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_COMMUNICATOR_BACKCHANNEL_INCOMING + */ + struct GNUNET_MessageHeader header; + + /** + * Always zero, for alignment. + */ + uint32_t reserved; + + /** + * Origin peer. + */ + struct GNUNET_PeerIdentity pid; + + /* Followed by a `struct GNUNET_MessageHeader` with the encapsulated + message to the communicator */ + }; @@ -1054,6 +1081,32 @@ struct GNUNET_TRANSPORT_MonitorData }; + +/** + * Request to verify address. + */ +struct GNUNET_TRANSPORT_AddressToVerify +{ + + /** + * Type will be #GNUNET_MESSAGE_TYPE_TRANSPORT_ADDRESS_CONSIDER_VERIFY. + */ + struct GNUNET_MessageHeader header; + + /** + * Reserved. 0. + */ + uint32_t reserved; + + /** + * Peer the address is from. + */ + struct GNUNET_PeerIdentity peer; + + /* followed by variable-size raw address */ +}; + + #endif GNUNET_NETWORK_STRUCT_END