Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
dd7bcb82
Commit
dd7bcb82
authored
Oct 30, 2018
by
Kai Vogelgesang
Browse files
Update dissector
parent
da6bd64d
Pipeline
#3197
passed with stages
in 4 minutes and 33 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
dissect/prrt.lua
View file @
dd7bcb82
...
...
@@ -25,10 +25,15 @@ local pf_data_length = ProtoField.uint32("prrt.data.length", "Length")
local
pf_data_timestamp
=
ProtoField
.
uint32
(
"prrt.data.timestamp"
,
"Timestamp"
)
local
pf_data_groupRTprop
=
ProtoField
.
uint32
(
"prrt.data.grouprtprop"
,
"Group RTprop"
)
local
pf_data_packettimeout
=
ProtoField
.
uint32
(
"prrt.data.packettimeout"
,
"Packet Timeout"
)
local
pf_data_btlbw
=
ProtoField
.
uint32
(
"prrt.data.btlbw"
,
"Bottleneck Bandwidth"
)
local
pf_data_btl_pace
=
ProtoField
.
uint32
(
"prrt.data.btl_pace"
,
"Bottleneck Pace"
)
local
pf_data_appSendTotal_pace
=
ProtoField
.
uint32
(
"prrt.data.appSendTotal_pace"
,
"Sender total application pace"
)
local
pf_red
=
ProtoField
.
new
(
"Redundancy"
,
"prrt.redundancy"
,
ftypes
.
BYTES
,
base
.
NONE
)
local
pf_red_baseSeqN
=
ProtoField
.
uint16
(
"prrt.redundancy.baseSequenceNumber"
,
"Base Sequence Number"
,
base
.
DEC
)
local
pf_red_timestamp
=
ProtoField
.
uint32
(
"prrt.redundancy.timestamp"
,
"Timestamp"
)
local
pf_red_btl_pace
=
ProtoField
.
uint32
(
"prrt.redundancy.btl_pace"
,
"Bottleneck Pace"
)
local
pf_red_appSendTotal_pace
=
ProtoField
.
uint32
(
"prrt.redundancy.appSendTotal_pace"
,
"Sender total application pace"
)
local
pf_red_n
=
ProtoField
.
uint8
(
"prrt.redundancy.n"
,
"n"
)
local
pf_red_k
=
ProtoField
.
uint8
(
"prrt.redundancy.k"
,
"k"
)
...
...
@@ -57,10 +62,15 @@ prrt_proto.fields = {
pf_data_timestamp
,
pf_data_groupRTprop
,
pf_data_packettimeout
,
pf_data_btlbw
,
pf_data_btl_pace
,
pf_data_appSendTotal_pace
,
pf_red
,
pf_red_baseSeqN
,
pf_red_timestamp
,
pf_red_btl_pace
,
pf_red_appSendTotal_pace
,
pf_red_n
,
pf_red_k
,
...
...
@@ -117,6 +127,9 @@ local function dissect_data(buffer, pinfo, root)
tree
:
add
(
pf_data_timestamp
,
buffer
:
range
(
4
,
4
))
tree
:
add
(
pf_data_groupRTprop
,
buffer
:
range
(
8
,
4
))
tree
:
add
(
pf_data_packettimeout
,
buffer
:
range
(
12
,
4
))
tree
:
add
(
pf_data_btlbw
,
buffer
:
range
(
16
,
4
))
tree
:
add
(
pf_data_btl_pace
,
buffer
:
range
(
20
,
4
))
tree
:
add
(
pf_data_appSendTotal_pace
,
buffer
:
range
(
24
,
4
))
local
label
=
"[D] Idx="
..
getIndex
()
..
" Len="
..
getDataLength
()
tree
:
set_text
(
label
)
...
...
@@ -127,8 +140,10 @@ local function dissect_redundancy(buffer, pinfo, root)
local
tree
=
root
:
add
(
pf_red
,
buffer
:
range
(
0
))
tree
:
add
(
pf_red_baseSeqN
,
buffer
:
range
(
0
,
2
))
tree
:
add
(
pf_red_timestamp
,
buffer
:
range
(
2
,
4
))
tree
:
add
(
pf_red_n
,
buffer
:
range
(
6
,
1
))
tree
:
add
(
pf_red_k
,
buffer
:
range
(
7
,
1
))
tree
:
add
(
pf_red_btl_pace
,
buffer
:
range
(
6
,
4
))
tree
:
add
(
pf_red_appSendTotal_pace
,
buffer
:
range
(
10
,
4
))
tree
:
add
(
pf_red_n
,
buffer
:
range
(
14
,
1
))
tree
:
add
(
pf_red_k
,
buffer
:
range
(
15
,
1
))
local
label
=
"[R] Idx="
..
getIndex
()
..
" b="
..
getRedBaseSeqNo
()
..
" n="
..
getRedN
()
..
" k="
..
getRedK
()
tree
:
set_text
(
label
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment