]> git.kaiwu.me - haproxy.git/commit
CLEANUP: quic: Rely on the packet length set by qc_lstnr_pkt_rcv()
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 27 Apr 2022 13:09:53 +0000 (15:09 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 28 Apr 2022 14:22:40 +0000 (16:22 +0200)
commit4646cf3b70d82b48e22398c498bd9c5dbe1c8880
tree87db8eb9d5234b831b00fe73f171935b7c13dc4c
parent87373e72695c3c48e75e8fc286ab98409b4b462b
CLEANUP: quic: Rely on the packet length set by qc_lstnr_pkt_rcv()

This function is used to parse the QUIC packets carried by a UDP datagram.
When a correct packet could be found, the ->len RX packet structure value
is set to the packet length value. On the contrary, it is set to the remaining
number of bytes in the UDP datagram if no correct QUIC packet could be found.
So, there is no need to make this function return a status value. It allows
the caller to parse any QUIC packet carried by a UDP datagram without this.
src/xprt_quic.c