diff options
author | Supriti Singh <supritisingh08@gmail.com> | 2014-09-05 12:36:34 +0000 |
---|---|---|
committer | Supriti Singh <supritisingh08@gmail.com> | 2014-09-05 12:36:34 +0000 |
commit | ab98625d6e8f82dc7c897c48081b0f1fef947f8d (patch) | |
tree | 5e9dadb5a3945f416310fe40ff888adab43a21b8 /src/dht/gnunet_dht_profiler.c | |
parent | ebb5527954a8e214324d76f0c1c181cab3c51170 (diff) | |
download | gnunet-ab98625d6e8f82dc7c897c48081b0f1fef947f8d.tar.gz gnunet-ab98625d6e8f82dc7c897c48081b0f1fef947f8d.zip |
Removing r5n profiler, using the same profiler for both x-vine and r5n
Diffstat (limited to 'src/dht/gnunet_dht_profiler.c')
-rw-r--r-- | src/dht/gnunet_dht_profiler.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/dht/gnunet_dht_profiler.c b/src/dht/gnunet_dht_profiler.c index c5475c604..27aa892fa 100644 --- a/src/dht/gnunet_dht_profiler.c +++ b/src/dht/gnunet_dht_profiler.c | |||
@@ -63,6 +63,11 @@ static char *hosts_file; | |||
63 | struct ActiveContext; | 63 | struct ActiveContext; |
64 | 64 | ||
65 | /** | 65 | /** |
66 | * Context for a peer which should act maliciously. | ||
67 | */ | ||
68 | struct MaliciousContext; | ||
69 | |||
70 | /** | ||
66 | * Context to hold data of peer | 71 | * Context to hold data of peer |
67 | */ | 72 | */ |
68 | struct Context | 73 | struct Context |
@@ -82,6 +87,13 @@ struct Context | |||
82 | * Active context; NULL if this peer is not an active peer | 87 | * Active context; NULL if this peer is not an active peer |
83 | */ | 88 | */ |
84 | struct ActiveContext *ac; | 89 | struct ActiveContext *ac; |
90 | |||
91 | #if ENABLE_MALICIOUS | ||
92 | /** | ||
93 | * Malicious context; NULL if this peer is NOT malicious. | ||
94 | */ | ||
95 | struct MaliciousContext *mc; | ||
96 | #endif | ||
85 | }; | 97 | }; |
86 | 98 | ||
87 | 99 | ||