]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: contrib: add support for heartbeat control messages.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 21 Jan 2021 15:23:29 +0000 (16:23 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 2 Mar 2021 10:08:37 +0000 (11:08 +0100)
Nothing really complicated: add a new control message type for such heartbeat
messages.

contrib/wireshark-dissectors/peers/packet-happp.c

index a5e25640ae6036e546564cd6255a347b0d68b1ef..32c0ec2f9051fbe7d755e6d100f8d7c5e2d7b8a2 100644 (file)
@@ -147,6 +147,7 @@ enum {
        PEER_MSG_CTRL_RESYNCFINISHED,
        PEER_MSG_CTRL_RESYNCPARTIAL,
        PEER_MSG_CTRL_RESYNCCONFIRM,
+       PEER_MSG_CTRL_HEARTBEAT,
 };
 
 /* Error messages */
@@ -533,6 +534,8 @@ static const char *control_msg_type_str_from_byte(guint8 c)
                return "resync. partial";
        case PEER_MSG_CTRL_RESYNCCONFIRM:
                return "resync. confirm";
+       case PEER_MSG_CTRL_HEARTBEAT:
+               return "heartbeat";
        default:
                return "Unknown";
        }