GNUnet 0.24.1-15-gab6ed22f1
plugin_testing_arm_probnat.c File Reference
Include dependency graph for plugin_testing_arm_probnat.c:

Go to the source code of this file.

Functions

static const char * get_conf_name (const char *my_node_id)
 

Function Documentation

◆ get_conf_name()

static const char * get_conf_name ( const char *  my_node_id)
static

Definition at line 34 of file plugin_testing_arm_probnat.c.

35{
36 const char *conf_name;
37 const char *dash;
38
39 dash = strchr (my_node_id, '-');
40 GNUNET_assert (NULL != dash);
41 dash++;
42
43 if (0 == strcmp ("000000", dash))
44 conf_name = "test_arm_probnat_host.conf";
45 else if (0 == strcmp ("000003", dash))
46 conf_name = "test_arm_probnat_peer1.conf";
47 else if (0 == strcmp ("000006", dash))
48 conf_name = "test_arm_probnat_peer1.conf";
49 else
50 {
52 "Getting conf for id %s failed \n",
54 GNUNET_assert (0);
55 }
56
58 "Using conf %s",
59 conf_name);
60 return conf_name;
61}
static const char * my_node_id
#define GNUNET_log(kind,...)
#define GNUNET_assert(cond)
Use this for fatal errors that cannot be handled.
@ GNUNET_ERROR_TYPE_ERROR
@ GNUNET_ERROR_TYPE_DEBUG

References GNUNET_assert, GNUNET_ERROR_TYPE_DEBUG, GNUNET_ERROR_TYPE_ERROR, GNUNET_log, and my_node_id.