forked from diffusiondata/wireshark-dissector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dpt.v5.lua
158 lines (152 loc) · 7.3 KB
/
dpt.v5.lua
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
-- V5 package
-- This package provides constants used by v5
-- Package header
local master = diffusion or {}
if master.v5 ~= nil then
return master.v5
end
local SERVICE_TOPIC = "@"
local MODE_ERROR = 0x00
local MODE_REQUEST = 0x01
local MODE_RESPONSE = 0x02
local SERVICE_PING = 0x01
local SERVICE_FETCH = 0x02
local SERVICE_SUBSCRIBE = 0x03
local SERVICE_UNSUBSCRIBE = 0x04
local SERVICE_CHANGE_PRINCIPAL = 0x05
local SERVICE_SEND = 0x06
local SERVICE_SUBSCRIPTION_CONTROL = 0x0a
local SERVICE_UNSUBSCRIPTION_CONTROL = 0x0b
local SERVICE_STATE_PROVIDER = 0x0c
local SERVICE_QUEUE_EVENT = 0x0d
local SERVICE_CLOSE_CLIENT = 0x0e
local SERVICE_SET_CLIENT_QUEUE_CONFLATION = 0x0f
local SERVICE_THROTTLE_CLIENT_QUEUE = 0x10
local SERVICE_GET_SESSION_DETAILS = 0x11
local SERVICE_SERVER_CONTROL_REGISTRATION = 0x12
local SERVICE_SERVER_CONTROL_DEREGISTRATION = 0x13
local SERVICE_TOPIC_CONTROL_REGISTRATION = 0x14
local SERVICE_TOPIC_CONTROL_REGISTRATION_PARAMETERS = 0x15
local SERVICE_AUTHENTICATION_CONTROL_REGISTRATION = 0x16
local SERVICE_AUTHENTICATION_CONTROL_REGISTRATION_PARAMETERS = 0x17
local SERVICE_AUTHENTICATION = 0x18
local SERVICE_SESSION_LISTENER_REGISTRATION = 0x19
local SERVICE_SESSION_DETAILS_EVENT = 0x1a
local SERVICE_CLIENT_SEND = 0x1c
local SERVICE_TOPIC_SOURCE_REGISTRATION = 0x1e
local SERVICE_TOPIC_SOURCE_DEREGISTRATION = 0x1f
local SERVICE_TOPIC_SOURCE_STATE = 0x20
local SERVICE_TOPIC_SOURCE_UPDATE = 0x22
local SERVICE_UPDATE_SOURCE_UPDATE = 0x23
local SERVICE_SUBSCRIPTION_NOTIFICATION = 0x28
local SERVICE_GET_TOPIC_DETAILS = 0x29
local SERVICE_UNSUBSCRIPTION_NOTIFICATION = 0x2a
local SERVICE_ADD_TOPIC = 0x2e
local SERVICE_REMOVE_TOPICS = 0x2f
local SERVICE_MISSING_TOPIC = 0x32
local SERVICE_ROUTING_SUBSCRIPTION_CONTROL = 0x33
local SERVICE_ROUTING_SUBSCRIPTION_RESPONSE = 0x34
local SERVICE_TOPIC_WILL_PARAMETERS = 0x35
local SERVICE_TOPIC_WILL_PARAMETERS = 0x36
local SERVICE_SYSTEM_PING = 0x37
local SERVICE_USER_PING = 0x38
local modeValues = {
[MODE_ERROR] = "Error",
[MODE_REQUEST] = "Request",
[MODE_RESPONSE] = "Response"
}
local serviceIdentity = {
[SERVICE_PING] = "Ping",
[SERVICE_FETCH] = "Fetch",
[SERVICE_SUBSCRIBE] = "Subscribe",
[SERVICE_UNSUBSCRIBE] = "Unsubscribe",
[SERVICE_CHANGE_PRINCIPAL] = "Change Principal",
[SERVICE_SEND] = "Send",
[SERVICE_SUBSCRIPTION_CONTROL] = "Subscription Control",
[SERVICE_UNSUBSCRIPTION_CONTROL] = "Unsubscription Control",
[SERVICE_STATE_PROVIDER] = "State Provider",
[SERVICE_QUEUE_EVENT] = "Queue Event",
[SERVICE_CLOSE_CLIENT] = "Close Client",
[SERVICE_SET_CLIENT_QUEUE_CONFLATION] = "Set Client Queue Conflation",
[SERVICE_THROTTLE_CLIENT_QUEUE] = "Throttle Client Queue",
[SERVICE_GET_SESSION_DETAILS] = "Get Session Details",
[SERVICE_SERVER_CONTROL_REGISTRATION] = "Server Control Registration",
[SERVICE_SERVER_CONTROL_DEREGISTRATION] = "Server Control Deregistration",
[SERVICE_TOPIC_CONTROL_REGISTRATION] = "Topic Control Registration",
[SERVICE_TOPIC_CONTROL_REGISTRATION_PARAMETERS] = "Topic Control Registration Parameters",
[SERVICE_AUTHENTICATION_CONTROL_REGISTRATION] = "Authentication Control Registration",
[SERVICE_AUTHENTICATION_CONTROL_REGISTRATION_PARAMETERS] = "Authentication Control Registration Parameters",
[SERVICE_AUTHENTICATION] = "Authentication",
[SERVICE_SESSION_LISTENER_REGISTRATION] = "Session Listener Registration",
[SERVICE_SESSION_DETAILS_EVENT] = "Session Details Event",
[SERVICE_CLIENT_SEND] = "Client Send",
[SERVICE_TOPIC_SOURCE_REGISTRATION] = "Topic Source Registration",
[SERVICE_TOPIC_SOURCE_DEREGISTRATION] = "Topic Source Deregistration",
[SERVICE_TOPIC_SOURCE_STATE] = "Topic Source State",
[SERVICE_TOPIC_SOURCE_UPDATE] = "Topic Source Update",
[SERVICE_UPDATE_SOURCE_UPDATE] = "Update Source Update",
[SERVICE_SUBSCRIPTION_NOTIFICATION] = "Subscription Notification",
[SERVICE_GET_TOPIC_DETAILS] = "Get Topic Details",
[SERVICE_UNSUBSCRIPTION_NOTIFICATION] = "Unsubscription Notification",
[SERVICE_ADD_TOPIC] = "Add Topic",
[SERVICE_REMOVE_TOPICS] = "Remove Topics",
[SERVICE_MISSING_TOPIC] = "Missing Topic",
[SERVICE_ROUTING_SUBSCRIPTION_CONTROL] = "Routing Subscription Control",
[SERVICE_ROUTING_SUBSCRIPTION_RESPONSE] = "Routing Subscription Response",
[SERVICE_TOPIC_WILL_PARAMETERS] = "Topic Will Parameters",
[SERVICE_TOPIC_WILL_PARAMETERS] = "Topic Will Parameters",
[SERVICE_SYSTEM_PING] = "System Ping",
[SERVICE_USER_PING] = "User Ping"
}
--- Package footer
master.v5 = {
SERVICE_TOPIC = SERVICE_TOPIC,
MODE_ERROR = MODE_ERROR,
MODE_REQUEST = MODE_REQUEST,
MODE_RESPONSE = MODE_RESPONSE,
SERVICE_PING = SERVICE_PING,
SERVICE_FETCH = SERVICE_FETCH,
SERVICE_SUBSCRIBE = SERVICE_SUBSCRIBE,
SERVICE_UNSUBSCRIBE = SERVICE_UNSUBSCRIBE,
SERVICE_CHANGE_PRINCIPAL = SERVICE_CHANGE_PRINCIPAL,
SERVICE_SEND = SERVICE_SEND,
SERVICE_SUBSCRIPTION_CONTROL = SERVICE_SUBSCRIPTION_CONTROL,
SERVICE_UNSUBSCRIPTION_CONTROL = SERVICE_UNSUBSCRIPTION_CONTROL,
SERVICE_STATE_PROVIDER = SERVICE_STATE_PROVIDER,
SERVICE_QUEUE_EVENT = SERVICE_QUEUE_EVENT,
SERVICE_CLOSE_CLIENT = SERVICE_CLOSE_CLIENT,
SERVICE_SET_CLIENT_QUEUE_CONFLATION = SERVICE_SET_CLIENT_QUEUE_CONFLATION,
SERVICE_THROTTLE_CLIENT_QUEUE = SERVICE_THROTTLE_CLIENT_QUEUE,
SERVICE_GET_SESSION_DETAILS = SERVICE_GET_SESSION_DETAILS,
SERVICE_SERVER_CONTROL_REGISTRATION = SERVICE_SERVER_CONTROL_REGISTRATION,
SERVICE_SERVER_CONTROL_DEREGISTRATION = SERVICE_SERVER_CONTROL_DEREGISTRATION,
SERVICE_TOPIC_CONTROL_REGISTRATION = SERVICE_TOPIC_CONTROL_REGISTRATION,
SERVICE_TOPIC_CONTROL_REGISTRATION_PARAMETERS = SERVICE_TOPIC_CONTROL_REGISTRATION_PARAMETERS,
SERVICE_AUTHENTICATION_CONTROL_REGISTRATION = SERVICE_AUTHENTICATION_CONTROL_REGISTRATION,
SERVICE_AUTHENTICATION_CONTROL_REGISTRATION_PARAMETERS = SERVICE_AUTHENTICATION_CONTROL_REGISTRATION_PARAMETERS,
SERVICE_AUTHENTICATION = SERVICE_AUTHENTICATION,
SERVICE_SESSION_LISTENER_REGISTRATION = SERVICE_SESSION_LISTENER_REGISTRATION,
SERVICE_SESSION_DETAILS_EVENT = SERVICE_SESSION_DETAILS_EVENT,
SERVICE_CLIENT_SEND = SERVICE_CLIENT_SEND,
SERVICE_TOPIC_SOURCE_REGISTRATION = SERVICE_TOPIC_SOURCE_REGISTRATION,
SERVICE_TOPIC_SOURCE_DEREGISTRATION = SERVICE_TOPIC_SOURCE_DEREGISTRATION,
SERVICE_TOPIC_SOURCE_STATE = SERVICE_TOPIC_SOURCE_STATE,
SERVICE_TOPIC_SOURCE_UPDATE = SERVICE_TOPIC_SOURCE_UPDATE,
SERVICE_UPDATE_SOURCE_UPDATE = SERVICE_UPDATE_SOURCE_UPDATE,
SERVICE_SUBSCRIPTION_NOTIFICATION = SERVICE_SUBSCRIPTION_NOTIFICATION,
SERVICE_GET_TOPIC_DETAILS = SERVICE_GET_TOPIC_DETAILS,
SERVICE_UNSUBSCRIPTION_NOTIFICATION = SERVICE_UNSUBSCRIPTION_NOTIFICATION,
SERVICE_ADD_TOPIC = SERVICE_ADD_TOPIC,
SERVICE_REMOVE_TOPICS = SERVICE_REMOVE_TOPICS,
SERVICE_MISSING_TOPIC = SERVICE_MISSING_TOPIC,
SERVICE_ROUTING_SUBSCRIPTION_CONTROL = SERVICE_ROUTING_SUBSCRIPTION_CONTROL,
SERVICE_ROUTING_SUBSCRIPTION_RESPONSE = SERVICE_ROUTING_SUBSCRIPTION_RESPONSE,
SERVICE_TOPIC_WILL_PARAMETERS = SERVICE_TOPIC_WILL_PARAMETERS,
SERVICE_TOPIC_WILL_PARAMETERS = SERVICE_TOPIC_WILL_PARAMETERS,
SERVICE_SYSTEM_PING = SERVICE_SYSTEM_PING,
SERVICE_USER_PING = SERVICE_USER_PING,
modeValues = modeValues,
serviceIdentity = serviceIdentity
}
diffusion = master
return master.v5