From 71c02b20eb798569393da09fc6557c314244e3e8 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Wed, 24 Dec 2014 00:06:35 -0500 Subject: Create FT_FCWWN field type. Also, convert the "string" hf_ entries that used tvb_fcwwn_to_str as a string to use proto_tree_add_item with FT_FCWWN type. Change-Id: I4ca77870499fd8239584a70874998b5d194a7167 Reviewed-on: https://code.wireshark.org/review/6036 Petri-Dish: Michael Mann Reviewed-by: Michael Mann --- epan/wslua/wslua_proto.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'epan/wslua/wslua_proto.c') diff --git a/epan/wslua/wslua_proto.c b/epan/wslua/wslua_proto.c index ce6c49291e..8e974a46e6 100644 --- a/epan/wslua/wslua_proto.c +++ b/epan/wslua/wslua_proto.c @@ -491,6 +491,7 @@ static const wslua_ft_types_t ftenums[] = { {"ftypes.SYSTEM_ID", FT_SYSTEM_ID}, {"ftypes.REL_OID", FT_REL_OID}, {"ftypes.EUI64", FT_EUI64}, + {"ftypes.FCWWN", FT_FCWWN}, {NULL, FT_NONE} }; @@ -849,6 +850,8 @@ WSLUA_CONSTRUCTOR ProtoField_new(lua_State* L) { case FT_SYSTEM_ID: case FT_REL_OID: case FT_EUI64: + case FT_VINES: + case FT_FCWWN: if (base != BASE_NONE) { WSLUA_OPTARG_ERROR(ProtoField_new,BASE,"Base must be base.NONE"); return 0; -- cgit v1.2.1