Couchbase: Add ifconfig command

And move some commands so they all appear in in numerical order
to make it easier to see if we're missing commands
This commit is contained in:
Trond Norbye 2022-02-15 15:07:27 +01:00
parent 1a83f3c43a
commit bc168ca376
1 changed files with 29 additions and 28 deletions

View File

@ -211,6 +211,30 @@
#define PROTOCOL_BINARY_CMD_GET_ALL_VB_SEQNOS 0x48
/* DCP commands */
#define PROTOCOL_BINARY_DCP_OPEN_CONNECTION 0x50
#define PROTOCOL_BINARY_DCP_ADD_STREAM 0x51
#define PROTOCOL_BINARY_DCP_CLOSE_STREAM 0x52
#define PROTOCOL_BINARY_DCP_STREAM_REQUEST 0x53
#define PROTOCOL_BINARY_DCP_FAILOVER_LOG_REQUEST 0x54
#define PROTOCOL_BINARY_DCP_STREAM_END 0x55
#define PROTOCOL_BINARY_DCP_SNAPSHOT_MARKER 0x56
#define PROTOCOL_BINARY_DCP_MUTATION 0x57
#define PROTOCOL_BINARY_DCP_DELETION 0x58
#define PROTOCOL_BINARY_DCP_EXPIRATION 0x59
#define PROTOCOL_BINARY_DCP_FLUSH 0x5a
#define PROTOCOL_BINARY_DCP_SET_VBUCKET_STATE 0x5b
#define PROTOCOL_BINARY_DCP_NOOP 0x5c
#define PROTOCOL_BINARY_DCP_BUFFER_ACKNOWLEDGEMENT 0x5d
#define PROTOCOL_BINARY_DCP_CONTROL 0x5e
#define PROTOCOL_BINARY_DCP_SYSTEM_EVENT 0x5f
#define PROTOCOL_BINARY_DCP_PREPARE 0x60
#define PROTOCOL_BINARY_DCP_SEQNO_ACK 0x61
#define PROTOCOL_BINARY_DCP_COMMIT 0x62
#define PROTOCOL_BINARY_DCP_ABORT 0x63
#define PROTOCOL_BINARY_DCP_SEQNO_ADVANCED 0x64
#define PROTOCOL_BINARY_DCP_OSO_SNAPSHOT 0x65
/* Commands from EP (eventually persistent) and bucket engines */
#define PROTOCOL_BINARY_CMD_STOP_PERSISTENCE 0x80
#define PROTOCOL_BINARY_CMD_START_PERSISTENCE 0x81
@ -251,6 +275,7 @@
#define PROTOCOL_BINARY_CMD_NOTIFY_VBUCKET_UPDATE 0xac
#define PROTOCOL_BINARY_CMD_ENABLE_TRAFFIC 0xad
#define PROTOCOL_BINARY_CMD_DISABLE_TRAFFIC 0xae
#define PROTOCOL_BINARY_CMD_IFCONFIG 0xaf
#define PROTOCOL_BINARY_CMD_CHANGE_VB_FILTER 0xb0
#define PROTOCOL_BINARY_CMD_CHECKPOINT_PERSISTENCE 0xb1
#define PROTOCOL_BINARY_CMD_RETURN_META 0xb2
@ -259,7 +284,9 @@
#define PROTOCOL_BINARY_CMD_SET_CLUSTER_CONFIG 0xb4
#define PROTOCOL_BINARY_CMD_GET_CLUSTER_CONFIG 0xb5
#define PROTOCOL_BINARY_CMD_GET_RANDOM_KEY 0xb6
#define PROTOCOL_BINARY_CMD_SEQNO_PERSISTENCE 0xb7
#define PROTOCOL_BINARY_CMD_GET_KEYS 0xb8
#define PROTOCOL_BINARY_CMD_COLLECTIONS_SET_MANIFEST 0xb9
#define PROTOCOL_BINARY_CMD_COLLECTIONS_GET_MANIFEST 0xba
#define PROTOCOL_BINARY_CMD_COLLECTIONS_GET_ID 0xbb
@ -285,33 +312,6 @@
#define PROTOCOL_BINARY_CMD_SUBDOC_GET_COUNT 0xd2
#define PROTOCOL_BINARY_CMD_SUBDOC_REPLACE_BODY_WITH_XATTR 0xd3
/* DCP commands */
#define PROTOCOL_BINARY_DCP_OPEN_CONNECTION 0x50
#define PROTOCOL_BINARY_DCP_ADD_STREAM 0x51
#define PROTOCOL_BINARY_DCP_CLOSE_STREAM 0x52
#define PROTOCOL_BINARY_DCP_STREAM_REQUEST 0x53
#define PROTOCOL_BINARY_DCP_FAILOVER_LOG_REQUEST 0x54
#define PROTOCOL_BINARY_DCP_STREAM_END 0x55
#define PROTOCOL_BINARY_DCP_SNAPSHOT_MARKER 0x56
#define PROTOCOL_BINARY_DCP_MUTATION 0x57
#define PROTOCOL_BINARY_DCP_DELETION 0x58
#define PROTOCOL_BINARY_DCP_EXPIRATION 0x59
#define PROTOCOL_BINARY_DCP_FLUSH 0x5a
#define PROTOCOL_BINARY_DCP_SET_VBUCKET_STATE 0x5b
#define PROTOCOL_BINARY_DCP_NOOP 0x5c
#define PROTOCOL_BINARY_DCP_BUFFER_ACKNOWLEDGEMENT 0x5d
#define PROTOCOL_BINARY_DCP_CONTROL 0x5e
#define PROTOCOL_BINARY_DCP_SYSTEM_EVENT 0x5f
#define PROTOCOL_BINARY_DCP_PREPARE 0x60
#define PROTOCOL_BINARY_DCP_SEQNO_ACK 0x61
#define PROTOCOL_BINARY_DCP_COMMIT 0x62
#define PROTOCOL_BINARY_DCP_ABORT 0x63
#define PROTOCOL_BINARY_DCP_SEQNO_ADVANCED 0x64
#define PROTOCOL_BINARY_DCP_OSO_SNAPSHOT 0x65
#define PROTOCOL_BINARY_CMD_GET_RANDOM_KEY 0xb6
#define PROTOCOL_BINARY_CMD_SEQNO_PERSISTENCE 0xb7
#define PROTOCOL_BINARY_CMD_GET_KEYS 0xb8
#define PROTOCOL_BINARY_CMD_SCRUB 0xf0
#define PROTOCOL_BINARY_CMD_ISASL_REFRESH 0xf1
#define PROTOCOL_BINARY_CMD_SSL_CERTS_REFRESH 0xf2
@ -834,6 +834,7 @@ static const value_string opcode_vals[] = {
{ PROTOCOL_BINARY_CMD_NOTIFY_VBUCKET_UPDATE, "Notify VBucket Update" },
{ PROTOCOL_BINARY_CMD_ENABLE_TRAFFIC, "Enable Traffic" },
{ PROTOCOL_BINARY_CMD_DISABLE_TRAFFIC, "Disable Traffic" },
{ PROTOCOL_BINARY_CMD_IFCONFIG, "Ifconfig" },
{ PROTOCOL_BINARY_CMD_CHANGE_VB_FILTER, "Change VBucket Filter" },
{ PROTOCOL_BINARY_CMD_CHECKPOINT_PERSISTENCE, "Checkpoint Persistence" },
{ PROTOCOL_BINARY_CMD_RETURN_META, "Return Meta" },