]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: refactor packet drop on reception
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 17 Oct 2022 10:04:49 +0000 (12:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 19 Oct 2022 16:45:58 +0000 (18:45 +0200)
commit6e56a9e05524862a7e415d87d0d46f28a5b9a999
treed257c3a7703ed0b25d231afde3e50cb264dc51ed
parent982896961ccfb9054c2b527b552293716658dc15
MINOR: quic: refactor packet drop on reception

Sometimes, a packet is dropped on reception. Several goto statements are
used, mostly to increment a proxy drop counter or drop silently the
packet. However, this labels are interleaved. Re-arrang goto labels to
simplify this process :
* drop label is used to drop a packet with counter incrementation. This
  is the default method.
* drop_silent is the next label which does the same thing but skip the
  counter incrementation. This is useful when we do not need to report
  the packet dropping operation.

This should be backported up to 2.6.
src/quic_conn.c