Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Apr 8, 2023
1 parent 481c8cc commit 263cb07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pva.lua
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ local fsearch_mask = ProtoField.uint8("pva.mask", "Mask", base.HEX)
local fsearch_mask_repl = ProtoField.uint8("pva.reply", "Reply", base.HEX, {[0]="Optional",[1]="Required"}, 0x01)
local fsearch_mask_bcast = ProtoField.uint8("pva.ucast", "Reply", base.HEX, {[0]="Broadcast",[1]="Unicast"}, 0x80)
local fsearch_proto = ProtoField.string("pva.proto", "Transport Protocol")
local fsearch_count = ProtoField.uint16("pva.count", "Count")
local fsearch_count = ProtoField.uint16("pva.count", "PV Count")
local fsearch_cid = ProtoField.uint32("pva.cid", "CID")
local fsearch_name = ProtoField.string("pva.pv", "Name")

Expand Down Expand Up @@ -396,7 +396,7 @@ local function pva_client_search (buf, pkt, t, isbe, cmd)
else
npv = buf(0,2):le_uint()
end
t:add(fsearch_count, npv);
t:add(fsearch_count, buf(0,2), npv);
if npv>0 then
buf = buf(2)

Expand Down
2 changes: 0 additions & 2 deletions test-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ do
echo "======================="
echo " $cap"
echo "======================="
echo "::group::$(basename "$cap")"
if ! tshark -r "$cap" -X lua_script:ca.lua -X lua_script:pva.lua -PO ca,pva 'ca || pva' > "$cap".out
then
echo "::error file=$(basename "$cap")::exit $?"
Expand All @@ -22,7 +21,6 @@ do
echo "::error file=$(basename "$cap")::Empty output"
ret=1
fi
echo "::endgroup::$(basename "$cap")"
done

exit $ret

0 comments on commit 263cb07

Please sign in to comment.