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 a5e2564..32c0ec2 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";
        }