p = l ? l->bind_conf->frontend :
s ? s->proxy : NULL;
- return p ? EXTRA_COUNTERS_GET(p->extra_counters_fe, m) : NULL;
+ if (l && p)
+ return EXTRA_COUNTERS_GET(p->extra_counters_fe, m);
+ else if (s && p)
+ return EXTRA_COUNTERS_GET(p->extra_counters_be, m);
+ return NULL;
}
void chunk_frm_appendf(struct buffer *buf, const struct quic_frame *frm);
/* Packet number spaces */
qc->ipktns = qc->hpktns = qc->apktns = NULL;
LIST_INIT(&qc->pktns_list);
- qc->prx_counters = EXTRA_COUNTERS_GET(prx->extra_counters_fe, &quic_stats_module);
qc->cids = pool_alloc(pool_head_quic_cids);
if (!qc->cids) {
qc->odcid = initial_pkt->dcid;
/* Copy the packet SCID to reuse it as DCID for sending */
qc->dcid = initial_pkt->scid;
+
+ qc->prx_counters = EXTRA_COUNTERS_GET(prx->extra_counters_fe, &quic_stats_module);
}
/* QUIC Client (outgoing connection to servers) */
else {
goto err;
qc->dcid.len = sizeof(qc->dcid.data);
qc->odcid = qc->dcid;
+
+ qc->prx_counters = EXTRA_COUNTERS_GET(prx->extra_counters_be, &quic_stats_module);
}
qc->err = quic_err_transport(QC_ERR_NO_ERROR);