MySQL: Add initial support for command 30 (binlog dump gtid)
Change-Id: I1442e401e4b5dbd07ae16bd21944bfb10f54cf53 Reviewed-on: https://code.wireshark.org/review/26833 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
parent
2173309920
commit
9d49b1258f
|
@ -117,7 +117,7 @@ void proto_reg_handoff_mysql(void);
|
|||
#define MYSQL_RFSH_SLAVE 64 /* Reset master info and restart slave thread */
|
||||
#define MYSQL_RFSH_MASTER 128 /* Remove all bin logs in the index and truncate the index */
|
||||
|
||||
/* MySQL command codes */
|
||||
/* MySQL command codes (enum_server_command in mysql-server.git:include/my_command.h) */
|
||||
#define MYSQL_SLEEP 0 /* not from client */
|
||||
#define MYSQL_QUIT 1
|
||||
#define MYSQL_INIT_DB 2
|
||||
|
@ -147,6 +147,10 @@ void proto_reg_handoff_mysql(void);
|
|||
#define MYSQL_STMT_RESET 26
|
||||
#define MYSQL_SET_OPTION 27
|
||||
#define MYSQL_STMT_FETCH 28
|
||||
#define MYSQL_DAEMON 29
|
||||
#define MYSQL_BINLOG_DUMP_GTID 30 /* replication */
|
||||
#define MYSQL_RESET_CONNECTION 31
|
||||
|
||||
|
||||
/* MySQL cursor types */
|
||||
|
||||
|
@ -195,6 +199,7 @@ static const value_string mysql_command_vals[] = {
|
|||
{MYSQL_STMT_RESET, "Reset Statement"},
|
||||
{MYSQL_SET_OPTION, "Set Option"},
|
||||
{MYSQL_STMT_FETCH, "Fetch Data"},
|
||||
{MYSQL_BINLOG_DUMP_GTID, "Send Binlog GTID"},
|
||||
{0, NULL}
|
||||
};
|
||||
static value_string_ext mysql_command_vals_ext = VALUE_STRING_EXT_INIT(mysql_command_vals);
|
||||
|
@ -1548,6 +1553,7 @@ mysql_dissect_request(tvbuff_t *tvb,packet_info *pinfo, int offset,
|
|||
mysql_set_conn_state(pinfo, conn_data, RESPONSE_TABULAR);
|
||||
break;
|
||||
|
||||
case MYSQL_BINLOG_DUMP_GTID:
|
||||
case MYSQL_BINLOG_DUMP:
|
||||
proto_tree_add_item(req_tree, hf_mysql_binlog_position, tvb, offset, 4, ENC_LITTLE_ENDIAN);
|
||||
offset += 4;
|
||||
|
|
Loading…
Reference in New Issue