-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathprotocol_constants.h
38 lines (28 loc) · 1.15 KB
/
protocol_constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#pragma once
#include <epan/value_string.h>
#define PID_SB_HS_LOGIN 0x00
#define PID_CB_LOGIN_DISCONNECT 0x00
#define PID_CB_LOGIN_CRYPT_RQ 0x01
#define PID_CB_LOGIN_SUCCESS 0x02
#define PID_CB_LOGIN_SET_COMPRESSION 0x03
#define PID_SB_LOGIN_START 0x00
#define PID_SB_LOGIN_CRYPT_RESPONSE 0x01
#define PID_CB_PLAY_SPAWN_PLAYER 0x05
#define PID_CB_PLAY_SERVER_DIFFICULTY 0x0D
#define PID_CB_PLAY_PLUGIN_MESSAGE 0x18
#define PID_CB_PLAY_UNLOAD_CHUNK 0x1D
#define PID_CB_PLAY_CHUNK_DATA 0x20
#define PID_CB_PLAY_JOIN_GAME 0x23
#define PID_CB_PLAY_RESOURCE_PACK_SEND 0x34
#define PID_CB_PLAY_RESPAWN 0x35
#define PID_CB_PLAY_ENTITY_METADATA 0x3C
#define PID_SB_PLAY_PLUGIN_MESSAGE 0x09
#define PID_SB_PLAY_POS_AND_VIEW 0x0E
#define PID_SB_PLAY_RESOURCE_PACK_STAT 0x18
//#define
extern const value_string sbpackettypes_handshake[];
extern const value_string cbpackettypes_slp[], sbpackettypes_slp[];
extern const value_string cbpackettypes_login[], sbpackettypes_login[];
extern const value_string cbpackettypes[], sbpackettypes[];
extern const value_string states[], difficulty_levels[], resourcepack_status[];
extern const value_string metadata_types[], direction[];