/* Return the aggregator of the slave that is next in line of @aggregator's slave in the bond, or NULL if it can't be found.  */
static struct aggregator* __get_next_agg(struct aggregator *aggregator)
/* Return the aggregator of the slave that is next in line of @aggregator's slave in the bond, or NULL if it can't be found.  */
static struct aggregator* __get_next_agg(struct aggregator *aggregator)
{
	struct slave *slave = aggregator->slave;
	struct bonding *bond = bond_get_bond_by_slave(slave);
	if ((bond == NULL) || (slave->next == bond->first_slave)) {
		return NULL;
	}
	return &(SLAVE_AD_INFO(slave->next).aggregator);
}