From a807aa20caec761b314a5eddcffbdd36650bd7d9 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 20 Feb 2013 15:15:35 +0000 Subject: Assosiate a configuration template while creating hosts. This paves a way to manage the configurations of controllers running on a host automatically. modified ADD_HOST message structure to have host configuration. This feature is yet to be implemented. The idea is that GNUNET_TESTBED_link_controllers() should take no configuration when hosts automatically update configuration when a new configuration is generated from a template. --- src/testbed/testbed.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src/testbed/testbed.h') diff --git a/src/testbed/testbed.h b/src/testbed/testbed.h index 180464bd7..880a44864 100644 --- a/src/testbed/testbed.h +++ b/src/testbed/testbed.h @@ -87,9 +87,19 @@ struct GNUNET_TESTBED_AddHostMessage */ uint16_t user_name_length GNUNET_PACKED; - /* followed by 0-terminated user name */ + /** + * Number of bytes in the host name (excluding 0-termination) that follows the + * user name; cannot be 0 + */ + uint16_t hostname_length GNUNET_PACKED; + + /* followed by non 0-terminated user name */ + + /* followed by non 0-terminated host name */ - /* followed by 0-terminated host name */ + /* followed by gzip compressed configuration to start or connect to a + controller on this host. While starting the controller this configration + is used as a template */ }; -- cgit v1.2.3