projects
/
oweals
/
gnunet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- doxygen
[oweals/gnunet.git]
/
src
/
experimentation
/
gnunet-daemon-experimentation_capabilities.c
diff --git
a/src/experimentation/gnunet-daemon-experimentation_capabilities.c
b/src/experimentation/gnunet-daemon-experimentation_capabilities.c
index d2570d387afa7ac907af4a7da93bbeac7ac1a519..7d74c2827432976748bdc35aeeb7de6be41e77be 100644
(file)
--- a/
src/experimentation/gnunet-daemon-experimentation_capabilities.c
+++ b/
src/experimentation/gnunet-daemon-experimentation_capabilities.c
@@
-25,7
+25,6
@@
* @author Matthias Wachs
*/
#include "platform.h"
* @author Matthias Wachs
*/
#include "platform.h"
-#include "gnunet_getopt_lib.h"
#include "gnunet_util_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_statistics_service.h"
#include "gnunet_util_lib.h"
#include "gnunet_core_service.h"
#include "gnunet_statistics_service.h"
@@
-41,7
+40,7
@@
uint32_t GSE_node_capabilities;
/**
* Capabilities defined at the moment
*/
/**
* Capabilities defined at the moment
*/
-#define GNUNET_EXPERIMENTATION_capabilities_count 11
;
+#define GNUNET_EXPERIMENTATION_capabilities_count 11
/**
/**
@@
-72,7
+71,7
@@
GED_capability_to_str (uint32_t cap)
if (test != cap)
return "UNDEFINED";
if (test != cap)
return "UNDEFINED";
- if (index <
= 11
)
+ if (index <
GNUNET_EXPERIMENTATION_capabilities_count
)
return capstr[index];
else
return "UNDEFINED";
return capstr[index];
else
return "UNDEFINED";
@@
-112,7
+111,7
@@
GED_capabilities_start ()
/* Plugins configured */
/* Plugins configured */
- if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (G
SE
_cfg,
+ if (GNUNET_OK == GNUNET_CONFIGURATION_get_value_string (G
ED
_cfg,
"TRANSPORT", "PLUGINS", &plugins))
{
for (pos = strtok (plugins, " "); pos != NULL; pos = strtok (NULL, " "))
"TRANSPORT", "PLUGINS", &plugins))
{
for (pos = strtok (plugins, " "); pos != NULL; pos = strtok (NULL, " "))
@@
-139,12
+138,12
@@
GED_capabilities_start ()
/* IPv6 enabled
* FIXE: just having it not enabled is not really sufficient */
/* IPv6 enabled
* FIXE: just having it not enabled is not really sufficient */
- if (GNUNET_NO == GNUNET_CONFIGURATION_get_value_yesno (G
SE
_cfg,
+ if (GNUNET_NO == GNUNET_CONFIGURATION_get_value_yesno (G
ED
_cfg,
"NAT", "DISABLEV6"))
GSE_node_capabilities |= HAVE_IPV6;
/* Behind NAT */
"NAT", "DISABLEV6"))
GSE_node_capabilities |= HAVE_IPV6;
/* Behind NAT */
- if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno (G
SE
_cfg,
+ if (GNUNET_YES == GNUNET_CONFIGURATION_get_value_yesno (G
ED
_cfg,
"NAT", "BEHIND_NAT"))
GSE_node_capabilities |= BEHIND_NAT;
"NAT", "BEHIND_NAT"))
GSE_node_capabilities |= BEHIND_NAT;
@@
-154,7
+153,7
@@
GED_capabilities_start ()
index = index << c1;
if (GNUNET_YES == GED_capabilities_have (GSE_node_capabilities, index))
{
index = index << c1;
if (GNUNET_YES == GED_capabilities_have (GSE_node_capabilities, index))
{
- GNUNET_log (GNUNET_ERROR_TYPE_
INFO
, "We have `%s'\n",
+ GNUNET_log (GNUNET_ERROR_TYPE_
DEBUG
, "We have `%s'\n",
GED_capability_to_str(index));
}
}
GED_capability_to_str(index));
}
}