]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: peers: handle arrays of std types in peers protocol
authorEmeric Brun <ebrun@haproxy.com>
Tue, 22 Jun 2021 14:09:55 +0000 (16:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 6 Jul 2021 05:24:42 +0000 (07:24 +0200)
commit90a9b676a80a8eb3f311ff1ffa74c7048203f88c
tree7f198eae23fc0b1a104d2ffef9c19b3615544791
parentc64a2a307ccd304f0e5ee5a842b019cf6d4053b1
MEDIUM: peers: handle arrays of std types in peers protocol

This patch adds support of array data_types on the peer protocol.

The table definition message will provide an additionnal parameter
for array data-types: the number of elements of the array.

In case of array of frqp it also provides a second parameter:
the period used to compute freq counter.

The array elements are std_type values linearly encoded in
the update message.

Note: if a remote peer announces an array data_type without
parameters into the table definition message, all updates
on this table will be ignored because we can not
parse update messages consistently.
include/haproxy/peers-t.h
src/peers.c