commit | 39143340ecf82e8f0b9199f322d412cdb866604a | [log] [tgz] |
---|---|---|
author | Frédéric Lécaille <flecaille@haproxy.com> | Fri May 24 14:32:27 2019 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Jun 05 08:33:34 2019 +0200 |
tree | cf0351265e801459be9b6a0e80a8d2d1c8debda2 | |
parent | 1673bbdf9878776d489caa1528f7f5527c1a78b8 [diff] |
CLEANUP: peers: Replace hard-coded values by macros. All the peer stick-table messages are made of a 2-byte header (PEER_MSG_HEADER_LEN) followed by the encoded length of the remaining data wich is harcoded as 5 (in bytes) for the maximum (PEER_MSG_ENCODED_LENGTH_MAXLEN). With such a length we can encode a maximum length which equals to (1 << 32) - 1, which is from far enough. This patches replaces both these values by macros where applicable.