/** Pointer to the identity's parent in the HTB hierarchy. */
struct identity *parent;
+ /** Array of the leaves that are limited by this identity. Points into the
+ * leaves array for the identity's instance. */
+ struct leaf **leaves;
+
+ /** The number of leaves for which this identity is responsible. */
+ int leaf_count;
+
/** The fixed (per second) EWMA weight. */
double fixed_ewma_weight;
/** FPS previous weight value. */
double last_localweight;
+ double total_weight;
+
/** A flag to indicate whether or not the identity is in the flowstart
* state. During flowstart, the identity's limit is raised to allow for
* flows to grow before incurring losses. */
/* GRD */
/** GRD drop probability information. */
- double localdropprob;
+ double drop_prob;
/** GRD previous drop probability information. */
- double last_localdropprob;
+ double last_drop_prob;
/* Flow accounting machinery. */
/** The leaf's parent in the hierarchy. This is the identity to which this
* leaf belongs. */
identity_t *parent;
+
+ /** GRD: The leaf's packet drop probability. */
+ double drop_prob;
} leaf_t;
/**
uint32_t nodelimit;
/** The DRL policy (GRD, FPS) this node is using. */
- enum policies policynum;
+ enum policies policy;
/** The estimate interval (in milliseconds). */
int estintms;