]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: define a generic QUIC error type
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 13 Jul 2022 13:07:56 +0000 (15:07 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Jul 2022 12:57:49 +0000 (14:57 +0200)
commit57e6db7021483f2cd4e903397cb4ad9890d0719e
treebc16e20e2279edba727e8200f861058ee670c97e
parent41cd8793837f1b29293bd25d4f96b2c8dcd45237
MINOR: quic: define a generic QUIC error type

Define a new structure quic_err to abstract a QUIC error type. This
allows to easily differentiate a transport and an application error
code. This simplifies error transmission from QUIC MUX and H3 layers.

This new type is defined in quic_frame module. It is used to replace
<err_code> field in <quic_conn>. QUIC_FL_CONN_APP_ALERT flag is removed
as it is now useless.

Utility functions are defined to be able to quickly instantiate
transport, tls and application errors.
include/haproxy/quic_frame-t.h
include/haproxy/quic_frame.h
include/haproxy/xprt_quic-t.h
include/haproxy/xprt_quic.h
src/mux_quic.c
src/xprt_quic.c