| Bug ID | 
          9549
           | 
        
        
          | Summary | 
          LUA: ProtoField.new() type and base parameters must be in quotes
           | 
        
        
          | Classification | 
          Unclassified
           | 
        
        
          | Product | 
          Wireshark
           | 
        
        
          | Version | 
          1.10.3
           | 
        
        
          | Hardware | 
          x86
           | 
        
        
          | OS | 
          Windows 7
           | 
        
        
          | Status | 
          UNCONFIRMED
           | 
        
        
          | Severity | 
          Minor
           | 
        
        
          | Priority | 
          Low
           | 
        
        
          | Component | 
          Dissection engine (libwireshark)
           | 
        
        
          | Assignee | 
          [email protected]
           | 
        
        
          | Reporter | 
          [email protected]
           | 
        
      
        
        Build Information:
Version 1.10.3 (SVN Rev 53022 from /trunk-1.10)
--
When I use line like this:
local f_protocol = ProtoField.new("xxx.protocol", "Protocol", ftypes.UINT8,
nil, base.DEC, nil, "Protocol")
I get error about invalid ftype. 
When I put ftypes in quotes it works ok:
local f_protocol = ProtoField.new("xxx.protocol", "Protocol", "ftypes.UINT8",
nil, "base.DEC", nil, "Protocol")
It seems confusing, because documentation does not say anything about quotes:
http://www.wireshark.org/docs/wsug_html_chunked/lua_module_Proto.html#lua_class_ProtoField
And when used as ProtoField.uint8() variant it does not require quoutes for
base.DEC.
I was trying to use ftypes.PROTOCOL type from wiki doc and noticed that there
is no specific method for this. As result I tried Protofield.new() as a
universal method. From source code:
http://anonsvn.wireshark.org/viewvc/trunk/epan/wslua/wslua_proto.c?view=markup
it seems there is no ftypes.PROTOCOL support anymore. So it must be removed
from wiki page to not confuse people.
         
      
      
      You are receiving this mail because:
      
      
          - You are watching all bug changes.