PEER_MSG_HEADER_LEN and PEER_MSG_ENC_LENGTH_MAXLEN are needed by the
stick-table code to estimate the size of update messages, so let's
move them out of peers.c.
This is needed by the next commit, so it must be backported along with
it.
#include <haproxy/stick_table-t.h>
#include <haproxy/thread-t.h>
+#define PEER_MSG_HEADER_LEN 2
+
+/* The maximum length of an encoded data length. */
+#define PEER_MSG_ENC_LENGTH_MAXLEN 5
+
/* peer state with respects of its applet, as seen from outside */
enum peer_app_state {
PEER_APP_ST_STOPPED = 0, /* The peer has no applet */
#define PEER_MSG_STKT_BIT 7
#define PEER_MSG_STKT_BIT_MASK (1 << PEER_MSG_STKT_BIT)
-/* The maximum length of an encoded data length. */
-#define PEER_MSG_ENC_LENGTH_MAXLEN 5
-
/* Minimum 64-bits value encoded with 2 bytes */
#define PEER_ENC_2BYTES_MIN 0xf0 /* 0xf0 (or 240) */
/* 3 bytes */
/* The left most number of bits set for PEER_ENC_2BYTES_MIN */
#define PEER_ENC_2BYTES_MIN_BITS 4
-#define PEER_MSG_HEADER_LEN 2
-
#define PEER_STKT_CACHE_MAX_ENTRIES 128
/**********************************/