mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
MINOR: quic: Rename qc_prep_hdshk_pkts() to qc_prep_pkts()
qc_prep_hdshk_pkts() does not prepare only handshake packets but any type of packet.
This commit is contained in:
parent
b5b5247b18
commit
e2660e61e2
@ -2172,14 +2172,14 @@ static inline void qc_set_dg(struct cbuf *cbuf,
|
||||
cb_add(cbuf, dglen + sizeof dglen + sizeof pkt);
|
||||
}
|
||||
|
||||
/* Prepare as much as possible handshake packets into <qr> ring buffer for
|
||||
/* Prepare as much as possible packets into <qr> ring buffer for
|
||||
* the QUIC connection with <ctx> as I/O handler context, possibly concatenating
|
||||
* several packets in the same datagram. A header made of two fields is added
|
||||
* to each datagram: the datagram length followed by the address of the first
|
||||
* packet in this datagram.
|
||||
* Returns 1 if succeeded, or 0 if something wrong happened.
|
||||
*/
|
||||
static int qc_prep_hdshk_pkts(struct qring *qr, struct ssl_sock_ctx *ctx)
|
||||
static int qc_prep_pkts(struct qring *qr, struct ssl_sock_ctx *ctx)
|
||||
{
|
||||
struct quic_conn *qc;
|
||||
enum quic_tls_enc_level tel, next_tel;
|
||||
@ -2913,7 +2913,7 @@ struct task *quic_conn_io_cb(struct task *t, void *context, unsigned int state)
|
||||
|
||||
if (!qr)
|
||||
qr = MT_LIST_POP(qc->tx.qring_list, typeof(qr), mt_list);
|
||||
ret = qc_prep_hdshk_pkts(qr, ctx);
|
||||
ret = qc_prep_pkts(qr, ctx);
|
||||
if (ret == -1)
|
||||
goto err;
|
||||
else if (ret == 0)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user