diff options
author | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-08 14:17:36 +0000 |
---|---|---|
committer | Kovarththanan Rajaratnam <kovarththanan.rajaratnam@gmail.com> | 2009-09-08 14:17:36 +0000 |
commit | cdfeebdd26121aedfd14aca657d02ba2648f06d4 (patch) | |
tree | abee187951dbd27c5394ecf71f599c90daf17f1a /epan/wslua/wslua_pinfo.c | |
parent | 7ce24f7744e90e129f5c3d8848b21342d5745150 (diff) |
Custom column deprecation:
We fill out the COL_OXID column by using 'pinfo->oxid'. This member is only set by the Fibre Channel dissector based on 'fc.ox_id'. So remove COL_OXID and migrate to 'fc.ox_id' custom column.
svn path=/trunk/; revision=29792
Diffstat (limited to 'epan/wslua/wslua_pinfo.c')
-rw-r--r-- | epan/wslua/wslua_pinfo.c | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/epan/wslua/wslua_pinfo.c b/epan/wslua/wslua_pinfo.c index 05823baadd..3c4fdcfdaf 100644 --- a/epan/wslua/wslua_pinfo.c +++ b/epan/wslua/wslua_pinfo.c @@ -67,7 +67,7 @@ WSLUA_CLASS_DEFINE(Address,NOP,NOP); /* Represents an address */ WSLUA_CONSTRUCTOR Address_ip(lua_State* L) { /* Creates an Address Object representing an IP address. */ - + #define WSLUA_ARG_Address_ip_HOSTNAME 1 /* The address or name of the IP host. */ Address addr = g_malloc(sizeof(address)); guint32* ip_addr = g_malloc(sizeof(guint32)); @@ -328,7 +328,6 @@ static const struct col_names_t colnames[] = { {"info",COL_INFO}, {"packet_len",COL_PACKET_LENGTH}, {"cumulative_bytes",COL_CUMULATIVE_BYTES}, - {"oxid",COL_OXID}, {"rxid",COL_RXID}, {"direction",COL_IF_DIR}, {"src_idx",COL_SRCIDX}, @@ -381,7 +380,7 @@ static int Column__gc(lua_State* L) { Column col = checkColumn(L,1); if (!col) return 0; - + if (!col->expired) col->expired = TRUE; else @@ -562,7 +561,7 @@ static int Columns_gc(lua_State* L) { Columns cols = checkColumns(L,1); if (!cols) return 0; - + if (!cols->expired) cols->expired = TRUE; else @@ -706,7 +705,7 @@ static int Pinfo_columns(lua_State *L) { luaL_error(L,"expired_pinfo"); return 0; } - + cols = g_malloc(sizeof(struct _wslua_cols)); cols->cinfo = pinfo->ws_pinfo->cinfo; cols->expired = FALSE; @@ -752,7 +751,7 @@ int Pinfo_set_addr(lua_State* L, packet_info* pinfo, pinfo_param_type_t pt) { luaL_error(L,"Not an OK address"); return 0; } - + if (!pinfo) { luaL_error(L,"expired_pinfo"); return 0; @@ -793,7 +792,7 @@ int Pinfo_set_int(lua_State* L, packet_info* pinfo, pinfo_param_type_t pt) { luaL_error(L,"expired_pinfo"); return 0; } - + switch(pt) { case PARAM_PORT_SRC: pinfo->srcport = (guint32)v; @@ -947,10 +946,10 @@ static const pinfo_method_t Pinfo_methods[] = { /* WSLUA_ATTRIBUTE Pinfo_desegment_offset RW Offset in the tvbuff at which the dissector will continue processing when next called*/ {"desegment_offset", Pinfo_desegment_offset, Pinfo_set_int, PARAM_DESEGMENT_OFFSET }, - + /* WSLUA_ATTRIBUTE Pinfo_private_data RO Access to private data */ {"private_data", Pinfo_private_data, pushnil_param, PARAM_NONE}, - + {NULL,NULL,NULL,PARAM_NONE} }; @@ -1018,7 +1017,7 @@ static int Pinfo_gc(lua_State* L) { Pinfo pinfo = checkPinfo(L,1); if (!pinfo) return 0; - + if (!pinfo->expired) pinfo->expired = TRUE; else |