Wireshark-commits: [Wireshark-commits] rev 52771: /trunk/epan/wslua/ /trunk/epan/wslua/: wslua.h ws
Date: Tue, 22 Oct 2013 17:41:07 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=52771

User: mmann
Date: 2013/10/22 05:41 PM

Log:
 Cannot define Field refering ProtoField defined in LUA. Bug 3513 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3513)
 
 When a new Field is created, does as following: 
 
 * Check whether that field is registered, by using `proto_registrar_get_byname`. This is current behavior.
 * (patched) If not registered, check whether that field is defined in LUA and will be registered. This is performed in `wslua_is_field_available` accessing LUA context.
 * If not, an error "a field with this name must exist"  occurs.

Directory: /trunk/epan/wslua/
  Changes    Path             Action
  +2 -0      wslua.h          Modified
  +1 -1      wslua_field.c    Modified
  +30 -0     wslua_proto.c    Modified