776 #define ENV_TESTBED_CONFIG "GNUNET_TESTBED_CONTROLLER_CONFIG"
#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
The identity of the host (wraps the signing key of the peer).
Notify the service about a host that we intend to use.
uint16_t username_length
Number of bytes in the user name that follows; 0 to use no user name; otherwise 'strlen (username)',...
uint16_t ssh_port
SSH port to use, 0 for default (in NBO).
uint16_t hostname_length
Number of bytes in the host name (excluding 0-termination) that follows the user name; cannot be 0.
uint32_t host_id
Unique ID for the host (in NBO).
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST.
uint16_t config_size
The length of the uncompressed configuration.
Message to cancel a barrier.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_CANCEL.
char name[0]
The barrier name.
Message to initialise a barrier.
uint8_t quorum
The quorum percentage needed for crossing the barrier.
char name[0]
name of the barrier.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_INIT.
Message for signalling status changes of a barrier.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_STATUS.
char data[0]
the barrier name (0-terminated) concatenated with an error message (0-terminated) if the status were ...
uint16_t name_len
strlen of the barrier name
Message sent from peers to the testbed-barrier service to indicate that they have reached a barrier a...
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_BARRIER_WAIT.
char name[0]
The name of the barrier they have reached.
Event notification from a controller to a client.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_PEER_CONNECT_EVENT.
uint32_t peer1
First peer.
int32_t event_type
'enum GNUNET_TESTBED_EventType' (in NBO); either GNUNET_TESTBED_ET_CONNECT or GNUNET_TESTBED_ET_DISCO...
uint64_t operation_id
Operation ID that is used to identify this operation.
uint32_t peer2
Second peer.
Client notifies controller that it should delegate requests for a particular client to a particular s...
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS.
uint32_t slave_host_id
Which host is responsible for managing the delegation? NBO.
uint64_t operation_id
The id of the operation which created this message.
uint32_t delegated_host_id
For which host should requests be delegated? NBO.
uint8_t is_subordinate
Set to 1 if the receiving controller is the master controller for the slave host (and thus responsibl...
Response message for ControllerLinkRequest message.
uint64_t operation_id
The id of the operation which created this message.
uint16_t config_size
The size of the compressed configuration.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_LINK_CONTROLLERS_RESULT.
uint16_t success
Set to GNUNET_YES to signify SUCCESS; GNUNET_NO to signify failure.
Event notification from a controller to a client for a generic operational success where the operatio...
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_GENERIC_OPERATION_SUCCESS.
int32_t event_type
'enum GNUNET_TESTBED_EventType' (in NBO); GNUNET_TESTBED_ET_OPERATION_FINISHED.
uint64_t operation_id
Operation ID of the operation that created this event.
Confirmation from the service that adding a host worked (or failed).
uint32_t host_id
Unique ID for the host (in NBO).
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_ADD_HOST_SUCCESS.
Initial message from a client to a testing control service.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_INIT.
uint64_t event_mask
Event mask that specifies which events this client is interested in.
uint32_t host_id
Host ID that the controller is either given (if this is the dominating client) or assumed to have (fo...
Message to start/stop services of a peer.
uint64_t operation_id
Operation ID.
uint32_t peer_id
Unique ID of the peer whose service has to be managed.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_SHUTDOWN_PEERS.
uint8_t start
set this to 1 to start the service; 0 to stop the service
Event notification from a controller to a client.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_OPERATION_FAIL_EVENT.
int32_t event_type
'enum GNUNET_TESTBED_EventType' (in NBO); GNUNET_TESTBED_ET_OPERATION_FINISHED.
uint64_t operation_id
Operation ID of the operation that created this event.
Message sent from client to testing service to connect two peers.
uint32_t peer1
Unique ID for the first peer.
uint32_t peer2
Unique ID for the second peer.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_OVERLAY_CONNECT.
uint32_t peer2_host_id
The ID of the host which runs peer2.
uint64_t operation_id
Operation ID that is used to identify this operation.
Message sent from client to testing service to create (configure, but not start) a peer.
uint32_t host_id
On which host should the peer be started?
uint32_t peer_id
Unique ID for the peer.
uint64_t operation_id
Unique operation id.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER.
uint16_t config_size
Size of the uncompressed configuration.
Event notification from a controller to a client.
uint32_t peer_id
Peer identity of the peer that was created.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER_SUCCESS.
uint64_t operation_id
Operation ID of the operation that created this event.
Message sent from client to testing service to destroy a (stopped) peer.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_DESTROY_PEER.
uint64_t operation_id
Operation ID that is used to identify this operation.
uint32_t peer_id
Unique ID for the peer.
Event notification from a controller to a client.
uint32_t peer_id
Peer that was started or stopped.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_PEER_EVENT.
uint64_t operation_id
Operation ID that is used to identify this operation.
int32_t event_type
enum GNUNET_TESTBED_EventType (in NBO); either GNUNET_TESTBED_ET_PEER_START or GNUNET_TESTBED_ET_PEER...
uint32_t host_id
Host where the peer is running.
Message sent from client to testing service to obtain the configuration of a peer.
uint64_t operation_id
Operation ID that is used to identify this operation.
uint32_t peer_id
Unique ID for the peer.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_INFORMATION.
Message sent from client to testing service to start a peer.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_START_PEER.
uint32_t peer_id
Unique ID for the peer.
uint64_t operation_id
Operation ID that is used to identify this operation.
Message sent from client to testing service to stop a peer.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_STOP_PEER.
uint32_t peer_id
Unique ID for the peer.
uint64_t operation_id
Operation ID that is used to identify this operation.
Message sent from host controller of a peer(A) to the host controller of another peer(B) to request B...
struct GNUNET_PeerIdentity peer_identity
Identity of A.
struct GNUNET_MessageHeader hello[0]
To be followed by the HELLO message of A.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_REMOTE_OVERLAY_CONNECT.
uint32_t peer
The Unique ID of B.
uint64_t operation_id
The Operation ID that is used to identify this operation.
uint64_t operation_id
Operation ID.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_SHUTDOWN_PEERS.
Reply to GNUNET_MESSAGE_TYPE_TESTBED_GET_SLAVE_CONFIGURATION message.
uint64_t operation_id
Operation ID.
uint16_t config_size
The size of the configuration when uncompressed.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_SLAVE_CONFIGURATION.
uint32_t slave_id
The id of the host where the slave is running.
Message to request configuration of a slave controller.
uint64_t operation_id
Operation ID.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_TESTBED_GET_SLAVE_CONFIGURATION.
uint32_t slave_id
The id of the slave host.
Message to send underlay link model of a peer.
struct GNUNET_MessageHeader header
Type is #GNUNET_MESSAGE_TYPE_UNDERLAYLINKMODELMSG.
uint32_t nprops
The number of link properties contained in this message.
uint32_t nentries
The number of peer entries contained in this message.