From RuudS:

Patch to LUA to implement byte arrays.

This fixes bug 2110.

svn path=/trunk/; revision=23896
This commit is contained in:
Stig Bjørlykke 2007-12-17 09:00:45 +00:00
parent 80039e2976
commit 3d7d0393b2
1 changed files with 3 additions and 1 deletions

View File

@ -119,10 +119,12 @@ static int TreeItem_add_item_any(lua_State *L, gboolean little_endian) {
case FT_STRINGZ:
item = proto_tree_add_string(tree_item->tree,hfid,tvbr->tvb,tvbr->offset,tvbr->len,luaL_checkstring(L,1));
break;
case FT_BYTES:
item = proto_tree_add_bytes(tree_item->tree,hfid,tvbr->tvb,tvbr->offset,tvbr->len, (const guint8*) luaL_checkstring(L,1));
break;
case FT_UINT64:
case FT_INT64:
case FT_ETHER:
case FT_BYTES:
case FT_UINT_BYTES:
case FT_IPv4:
case FT_IPv6: