X-Git-Url: http://git.onelab.eu/?p=distributedratelimiting.git;a=blobdiff_plain;f=drl%2Fconfig.h;h=332257362bd89e9c6f12f0c73f123b6bc55eb8d5;hp=883b6419d876ba33f63e73d68d13f162addffe2d;hb=77e70ca3ac61f5a17ba5f0222ce205ff58c9a314;hpb=c9d6255f0c06ee41eb2c06a5f74a957ec7be3223 diff --git a/drl/config.h b/drl/config.h index 883b641..3322573 100644 --- a/drl/config.h +++ b/drl/config.h @@ -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_ */