MINOR: quic: Add a useful function to compute any frame length.
authorFrédéric Lécaille <flecaille@haproxy.com>
Mon, 2 Aug 2021 14:41:28 +0000 (16:41 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Sep 2021 13:27:25 +0000 (15:27 +0200)
commitdb2a7649a9f96e4f36ffdcdb2c870f47a373e00c
treec28f09ad7e563af72f59b7438b6e583287e8b6b6
parentf5821dc7b734585d6d0867b7fc8d7e3a3ad0a3fd
MINOR: quic: Add a useful function to compute any frame length.

This should be used by the function which build packets to prevent
it from failing. This is important when the packet numbers are consumed
by several threads. The packet number is used to build and encrypt packets
and must be incremented only and only if the packet it refers to has been
successfully built.
include/haproxy/quic_frame.h