Added option to run without the assumption of PlanetLab Vservers. We still assume...
[distributedratelimiting.git] / drl / config.h
index 883b641..3322573 100644 (file)
@@ -113,6 +113,14 @@ typedef struct ident_config {
     /** List of the identity's members (type IDENT_SET only). */
     ident_member *members;
 
+    /** If NM is setting up the hierarchy for us, this is the htb node to use
+     * for this identity. */
+    int htb_node;
+
+    /** If NM is setting up the hierarchy for us, this is the htb parent node
+     * to use for this identity. */
+    int htb_parent;
+
     /** Pointer to the next ident in the list or NULL if this is the last. */
     struct ident_config *next;
 } ident_config;
@@ -180,4 +188,6 @@ int parse_drl_config(const char *configfile, parsed_configs *configs);
  * allocation fails, or 1 if the cause of the error is unclear. */
 int get_eligible_leaves(struct drl_instance *instance);
 
+int parse_leaves(struct drl_instance *instance, char *leafstring);
+
 #endif  /* _DRL_CONFIG_ */