This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Recently I encountered a problem. I wrote a lua script and it can work normally on Win7-64bit PC,

but today I use it on Win10-64bit PC,it pop up a error:

【Lua:error during loading xxx.lua:71 line :bad argument #3 to 'bytes' (display must be either base.NONE,base.DOT,base.DASH,base.COLON.base.SPACE)】

this lua script's Line 71 is shown as below

f_RawData = ProtoField.bytes("HdplcFrame.RawData", "Raw Data", base.HEX)

I would appreciate it very much if you would help me with it. Thanks in advance

asked 26 Oct '17, 22:42

hithall's gravatar image

hithall
6112
accept rate: 0%

Wireshark versions on both platforms?

(27 Oct '17, 01:49) Jaap ♦

Based on the error message, is it erroring out on "base.HEX"? Not sure what the factor is between Win7 and Win10 on base.HEX

(27 Oct '17, 06:53) Papa Packet

@Papa Packet, that's exactly why @Jaap was asking for Wireshark version on both OSes because direct relationship to OS would be weird. It is more likely that something like 2.1.x is running on Win7 and something like 2.4.x is running on Win10. Between these releases, the Lua API has become more strict in some aspects.

(27 Oct '17, 07:14) sindy
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×431

question asked: 26 Oct '17, 22:42

question was seen: 679 times

last updated: 27 Oct '17, 07:19

p​o​w​e​r​e​d by O​S​Q​A