136 while (NULL != (
p = model->
props))
static struct GNUNET_ARM_MonitorHandle * m
Monitor connection with ARM.
static struct Experiment * e
static struct GNUNET_OS_Process * p
Helper process we started.
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
#define GNUNET_break(cond)
Use this for internal assertion violations that are not fatal (can be handled) but should not occur.
#define GNUNET_new(type)
Allocate a struct or union of the given type.
#define GNUNET_free(ptr)
Wrapper around free.
GNUNET_TESTBED_UnderlayLinkModelType
The type of GNUNET_TESTBED_UnderlayLinkModel.
void GNUNET_TESTBED_underlaylinkmodel_free(struct GNUNET_TESTBED_UnderlayLinkModel *model)
Free the resources of the model.
void GNUNET_TESTBED_underlaylinkmodel_set_link(struct GNUNET_TESTBED_UnderlayLinkModel *model, struct GNUNET_TESTBED_Peer *peer, uint32_t latency, uint32_t loss, uint32_t bandwidth)
Set the metrics for a link to the given peer in the underlay model.
struct GNUNET_TESTBED_UnderlayLinkModel * GNUNET_TESTBED_underlaylinkmodel_create(struct GNUNET_TESTBED_Peer *peer, enum GNUNET_TESTBED_UnderlayLinkModelType type)
Create a GNUNET_TESTBED_UnderlayLinkModel for the given peer.
void GNUNET_TESTBED_underlaylinkmodel_add_peer(struct GNUNET_TESTBED_UnderlayLinkModel *model, struct GNUNET_TESTBED_Peer *peer)
Add a peer to the given model.
void GNUNET_TESTBED_underlaylinkmodel_commit(struct GNUNET_TESTBED_UnderlayLinkModel *model)
Commit the model.
A peer controlled by the testing framework.
uint8_t underlay_model_exists
Has an underlay model already set for this peer?
Model for configuring underlay links of a peer.
struct LinkProperty * props
list of link properties
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
struct ListEntry * entries
List of peers in the list.
struct GNUNET_TESTBED_Peer * peer
The peer associated with this model.
uint32_t bandwidth
bandwidth of the link in kilobytes per second
struct LinkProperty * next
next pointer for list
uint32_t latency
latency of the link in microseconds
uint32_t loss
data loss on the link expressed as percentage
struct GNUNET_TESTBED_Peer * peer
the peer whose link is defined by these properties
Container for holding a peer in whitelist/blacklist.
struct GNUNET_TESTBED_Peer * peer
the peer
struct ListEntry * next
the next pointer
internal API to access the 'peers' subsystem
struct GNUNET_TESTBED_UnderlayLinkModel free_entries(struct GNUNET_TESTBED_UnderlayLinkModel *model)
Function to free resources of list entries.
static void free_link_properties(struct GNUNET_TESTBED_UnderlayLinkModel *model)
Function to free resources of link properties added to the given model.
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
struct GNUNET_TESTBED_Peer * peer
The peer associated with this model.