]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: Generic, list-based allocation and look-up of PPv2 TLVs
authorAlexander Stephan <alexander.stephan@sap.com>
Wed, 16 Aug 2023 13:35:04 +0000 (15:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Aug 2023 13:15:47 +0000 (15:15 +0200)
commitfecc573da18702557ab4bd9d25f10af71ef97596
tree00423ec91d29cc1c8b088b9408880527dbad7b49
parentc9d47652d28c9c210fcda02e2fd4c095c86e9446
MEDIUM: connection: Generic, list-based allocation and look-up of PPv2 TLVs

In order to be able to implement fetches in the future that allow
retrieval of any TLVs, a new generic data structure for TLVs is introduced.

Existing TLV fetches for PP2_TYPE_AUTHORITY and PP2_TYPE_UNIQUE_ID are
migrated to use this new data structure. TLV related pools are updated
to not rely on type, but only on size. Pools accomodate the TLV list
element with their associated value. For now, two pools for 128 B and
256 B values are introduced. More fine-grained solutions are possible
in the future, if necessary.
include/haproxy/connection-t.h
include/haproxy/connection.h
src/connection.c