]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-quic: rename qcs flag FIN_RECV to SIZE_KNOWN
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 1 Jul 2022 14:11:03 +0000 (16:11 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 5 Jul 2022 14:18:27 +0000 (16:18 +0200)
Rename QC_SF_FIN_RECV to the more generic name QC_SF_SIZE_KNOWN. This
better align with the QUIC RFC 9000 which uses the "Size Known" state
definition. This change is purely cosmetic.

include/haproxy/mux_quic-t.h
src/mux_quic.c

index 168f07444395ad15b6d39f7a9520faa8128636c1..a2004a49c7506034479dd763476551df1f72d248 100644 (file)
@@ -100,7 +100,7 @@ struct qcc {
 };
 
 #define QC_SF_NONE              0x00000000
-#define QC_SF_FIN_RECV          0x00000001  /* last frame received for this stream */
+#define QC_SF_SIZE_KNOWN        0x00000001  /* last frame received for this stream */
 #define QC_SF_FIN_STREAM        0x00000002  /* FIN bit must be set for last frame of the stream */
 #define QC_SF_BLK_MROOM         0x00000004  /* app layer is blocked waiting for room in the qcs.tx.buf */
 #define QC_SF_DETACH            0x00000008  /* sc is detached but there is remaining data to send */
index 24c7373ba6b761b71493a2c989f676d3d88859df..ccdcf54c614bf292d784153e7cffc545b43c8f4e 100644 (file)
@@ -541,7 +541,7 @@ static int qcc_decode_qcs(struct qcc *qcc, struct qcs *qcs)
        /* Signal FIN to application if STREAM FIN received and there is no gap
         * in the Rx buffer.
         */
-       if (qcs->flags & QC_SF_FIN_RECV && !ncb_is_fragmented(&qcs->rx.ncbuf))
+       if (qcs->flags & QC_SF_SIZE_KNOWN && !ncb_is_fragmented(&qcs->rx.ncbuf))
                fin = 1;
 
        ret = qcc->app_ops->decode_qcs(qcs, &b, fin);
@@ -672,7 +672,7 @@ int qcc_recv(struct qcc *qcc, uint64_t id, uint64_t len, uint64_t offset,
        }
 
        if (fin)
-               qcs->flags |= QC_SF_FIN_RECV;
+               qcs->flags |= QC_SF_SIZE_KNOWN;
 
        if (ncb_data(&qcs->rx.ncbuf, 0) && !(qcs->flags & QC_SF_DEM_FULL))
                qcc_decode_qcs(qcc, qcs);