diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-26 14:00:28 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2013-01-26 14:00:28 +0000 |
commit | 6de27f2fd0e5cfaba3f70955002cb0d6cab73df5 (patch) | |
tree | a0377eaa32bb2a7c8545e545dfd2e5162fffd25e /src/testbed/testbed_api_peers.c | |
parent | ba007d1a80d1d376712d362881b17d64b36898d8 (diff) | |
download | gnunet-6de27f2fd0e5cfaba3f70955002cb0d6cab73df5.tar.gz gnunet-6de27f2fd0e5cfaba3f70955002cb0d6cab73df5.zip |
- rename
Diffstat (limited to 'src/testbed/testbed_api_peers.c')
-rw-r--r-- | src/testbed/testbed_api_peers.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/testbed/testbed_api_peers.c b/src/testbed/testbed_api_peers.c index 9105793f1..908428a83 100644 --- a/src/testbed/testbed_api_peers.c +++ b/src/testbed/testbed_api_peers.c | |||
@@ -64,7 +64,7 @@ opstart_peer_create (void *cls) | |||
64 | msg = GNUNET_realloc (xconfig, msize); | 64 | msg = GNUNET_realloc (xconfig, msize); |
65 | memmove (&msg[1], msg, xc_size); | 65 | memmove (&msg[1], msg, xc_size); |
66 | msg->header.size = htons (msize); | 66 | msg->header.size = htons (msize); |
67 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_CREATEPEER); | 67 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER); |
68 | msg->operation_id = GNUNET_htonll (opc->id); | 68 | msg->operation_id = GNUNET_htonll (opc->id); |
69 | msg->host_id = htonl (GNUNET_TESTBED_host_get_id_ (data->peer->host)); | 69 | msg->host_id = htonl (GNUNET_TESTBED_host_get_id_ (data->peer->host)); |
70 | msg->peer_id = htonl (data->peer->unique_id); | 70 | msg->peer_id = htonl (data->peer->unique_id); |
@@ -118,7 +118,7 @@ opstart_peer_destroy (void *cls) | |||
118 | opc->state = OPC_STATE_STARTED; | 118 | opc->state = OPC_STATE_STARTED; |
119 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerDestroyMessage)); | 119 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerDestroyMessage)); |
120 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerDestroyMessage)); | 120 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerDestroyMessage)); |
121 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_DESTROYPEER); | 121 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_DESTROY_PEER); |
122 | msg->peer_id = htonl (peer->unique_id); | 122 | msg->peer_id = htonl (peer->unique_id); |
123 | msg->operation_id = GNUNET_htonll (opc->id); | 123 | msg->operation_id = GNUNET_htonll (opc->id); |
124 | GNUNET_CONTAINER_DLL_insert_tail (opc->c->ocq_head, opc->c->ocq_tail, opc); | 124 | GNUNET_CONTAINER_DLL_insert_tail (opc->c->ocq_head, opc->c->ocq_tail, opc); |
@@ -164,7 +164,7 @@ opstart_peer_start (void *cls) | |||
164 | opc->state = OPC_STATE_STARTED; | 164 | opc->state = OPC_STATE_STARTED; |
165 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerStartMessage)); | 165 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerStartMessage)); |
166 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerStartMessage)); | 166 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerStartMessage)); |
167 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_STARTPEER); | 167 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_START_PEER); |
168 | msg->peer_id = htonl (peer->unique_id); | 168 | msg->peer_id = htonl (peer->unique_id); |
169 | msg->operation_id = GNUNET_htonll (opc->id); | 169 | msg->operation_id = GNUNET_htonll (opc->id); |
170 | GNUNET_CONTAINER_DLL_insert_tail (opc->c->ocq_head, opc->c->ocq_tail, opc); | 170 | GNUNET_CONTAINER_DLL_insert_tail (opc->c->ocq_head, opc->c->ocq_tail, opc); |
@@ -211,7 +211,7 @@ opstart_peer_stop (void *cls) | |||
211 | GNUNET_assert (PS_STARTED == peer->state); | 211 | GNUNET_assert (PS_STARTED == peer->state); |
212 | opc->state = OPC_STATE_STARTED; | 212 | opc->state = OPC_STATE_STARTED; |
213 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerStopMessage)); | 213 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_PeerStopMessage)); |
214 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_STOPPEER); | 214 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_STOP_PEER); |
215 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerStopMessage)); | 215 | msg->header.size = htons (sizeof (struct GNUNET_TESTBED_PeerStopMessage)); |
216 | msg->peer_id = htonl (peer->unique_id); | 216 | msg->peer_id = htonl (peer->unique_id); |
217 | msg->operation_id = GNUNET_htonll (opc->id); | 217 | msg->operation_id = GNUNET_htonll (opc->id); |
@@ -258,7 +258,7 @@ GNUNET_TESTBED_generate_peergetconfig_msg_ (uint32_t peer_id, | |||
258 | (struct GNUNET_TESTBED_PeerGetConfigurationMessage)); | 258 | (struct GNUNET_TESTBED_PeerGetConfigurationMessage)); |
259 | msg->header.size = | 259 | msg->header.size = |
260 | htons (sizeof (struct GNUNET_TESTBED_PeerGetConfigurationMessage)); | 260 | htons (sizeof (struct GNUNET_TESTBED_PeerGetConfigurationMessage)); |
261 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_GETPEERCONFIG); | 261 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_GET_PEER_CONFIGURATION); |
262 | msg->peer_id = htonl (peer_id); | 262 | msg->peer_id = htonl (peer_id); |
263 | msg->operation_id = GNUNET_htonll (operation_id); | 263 | msg->operation_id = GNUNET_htonll (operation_id); |
264 | return msg; | 264 | return msg; |
@@ -345,7 +345,7 @@ opstart_overlay_connect (void *cls) | |||
345 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_OverlayConnectMessage)); | 345 | msg = GNUNET_malloc (sizeof (struct GNUNET_TESTBED_OverlayConnectMessage)); |
346 | msg->header.size = | 346 | msg->header.size = |
347 | htons (sizeof (struct GNUNET_TESTBED_OverlayConnectMessage)); | 347 | htons (sizeof (struct GNUNET_TESTBED_OverlayConnectMessage)); |
348 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_OLCONNECT); | 348 | msg->header.type = htons (GNUNET_MESSAGE_TYPE_TESTBED_OVERLAY_CONNECT); |
349 | msg->peer1 = htonl (data->p1->unique_id); | 349 | msg->peer1 = htonl (data->p1->unique_id); |
350 | msg->peer2 = htonl (data->p2->unique_id); | 350 | msg->peer2 = htonl (data->p2->unique_id); |
351 | msg->operation_id = GNUNET_htonll (opc->id); | 351 | msg->operation_id = GNUNET_htonll (opc->id); |