From 5afb2ade4a2aafff2520d18565b7df3ae1d3d1ac Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 7 May 2019 07:14:25 +0200 Subject: add comments --- usb/ncr-dispenser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usb/ncr-dispenser.lua') diff --git a/usb/ncr-dispenser.lua b/usb/ncr-dispenser.lua index 216cb65..2ade95d 100644 --- a/usb/ncr-dispenser.lua +++ b/usb/ncr-dispenser.lua @@ -38,9 +38,9 @@ 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 off = 64 + local off = 64 -- linux (usbmon) if usb_hl then - off = usb_hl.value + off = usb_hl.value -- windows (https://desowin.org/usbpcap/) end local magic = buffer(off + 8,2) if magic:le_uint() == 0xbeef then -- cgit