summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-05-06 10:29:16 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-05-06 10:29:16 +0200
commitf4fc72e2a41ce5a4b71f9438bab62393b0cac432 (patch)
tree03b555e36d0b64b4f72b42ccd9f4009768fd2f5c
parente22f515a2edd5b52dd5efce80c6f8264eb22f455 (diff)
downloadwireshark-dissectors-f4fc72e2a41ce5a4b71f9438bab62393b0cac432.tar.gz
untabify
-rw-r--r--usb/ncr-dispenser.lua18
1 files changed, 9 insertions, 9 deletions
diff --git a/usb/ncr-dispenser.lua b/usb/ncr-dispenser.lua
index 2403246..c81b085 100644
--- a/usb/ncr-dispenser.lua
+++ b/usb/ncr-dispenser.lua
@@ -6,8 +6,8 @@ usb_dl_f = Field.new("usb.data_len")
dispenser_proto = Proto("dispenser","NCR S1 Dispenser")
u1_vals = {
- [ 1 ] = "Command (?)",
- [ 2 ] = "Upload (?)",
+ [ 1 ] = "Command (?)",
+ [ 2 ] = "Upload (?)",
}
-- create the fields for our "protocol"
@@ -20,12 +20,12 @@ u18_1f_F = ProtoField.bytes("dispenser.u18", "Unknown 18-1f", base.HEX)
-- add the field to the protocol
dispenser_proto.fields = {
- u00_00_F,
- u01_07_F,
- magic_F,
- u0a_0f_F,
- u10_17_F,
- u18_1f_F,
+ u00_00_F,
+ u01_07_F,
+ magic_F,
+ u0a_0f_F,
+ u10_17_F,
+ u18_1f_F,
}
-- create a function to "postdissect" each frame
@@ -34,7 +34,7 @@ function dispenser_proto.dissector(buffer,pinfo,tree)
local usb_tt = usb_tt_f()
local usb_dl = usb_dl_f()
if usb_tt.value == 0x01 and usb_dl.value >= 63 then
- local magic = buffer(64 + 8,2)
+ local magic = buffer(64 + 8,2)
if magic:le_uint() == 0xbeef then
local subtree = tree:add(dispenser_proto, "NCR S1 Dispenser")
subtree:add(u00_00_F, buffer(64 + 0x00,1))