]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: ncbmbuf: define new ncbmbuf type
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 14 Oct 2025 09:29:40 +0000 (11:29 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Oct 2025 13:04:06 +0000 (15:04 +0200)
commitb9f91ad3ff29c373a404b43b3d715955314c7b4f
tree8c1fc6545fac60e0f9b323a50cbcf581aa54f286
parent59f0bafef28259f4bceebb00bbce4c48e5dd5791
MINOR: ncbmbuf: define new ncbmbuf type

Define ncbmbuf which is an alternative non-contiguous buffer
implementation. "bm" abbreviation stands for bitmap, which reflects how
gaps and filled blocks are encoded. The main purpose of this
implementation is to get rid of the ncbuf limitation regarding the
minimal size for gaps between two blocks of data.

This commit adds the new module ncbmbuf. Along with it, some utility
functions such as ncbmb_make(), ncbmb_init() and ncbmb_is_empty() are
defined. Public API of ncbmbuf will be extended in the following
patches.

This patch is not considered a bug fix. However, it will be required to
fix issue encountered on QUIC CRYPTO frames parsing. Thus, it will be
necessary to backport the current patch prior to the fix to come.
Makefile
include/haproxy/ncbmbuf-t.h [new file with mode: 0644]
include/haproxy/ncbmbuf.h [new file with mode: 0644]
src/ncbmbuf.c [new file with mode: 0644]