struct flt_conf *f;
struct spoe_config *conf = fconf->conf;
struct proxy *target;
- struct logsrv *logsrv;
int i;
/* Check all SPOE filters for proxy <px> to be sure all SPOE agent names
HA_SPIN_INIT(&conf->agent->rt[i].lock);
}
- list_for_each_entry(logsrv, &conf->agent_fe.logsrvs, list) {
- if (logsrv->type == LOG_TARGET_BUFFER) {
- struct sink *sink = sink_find(logsrv->ring_name);
-
- if (!sink || sink->type != SINK_TYPE_BUFFER) {
- ha_alert("Proxy %s : log server used by SPOE agent '%s' declared"
- " at %s:%d uses unknown ring named '%s'.\n",
- px->id, conf->agent->id, conf->agent->conf.file,
- conf->agent->conf.line, logsrv->ring_name);
- return 1;
- }
- logsrv->sink = sink;
- }
- }
+ if (postresolve_logsrv_list(&conf->agent_fe.logsrvs, "SPOE agent", conf->agent->id) & ERR_CODE)
+ return 1;
ha_free(&conf->agent->b.name);
conf->agent->b.be = target;