tvb:range did not appear under Tvb in generated refman
pinfo.curr_proto appeared as pinfo.match pinfo.columns in the refman was pinfo.cols in lua (now it is both in lua and in refman) svn path=/trunk/; revision=20539
This commit is contained in:
parent
e42f2848f5
commit
e9d3877fb8
|
@ -817,12 +817,15 @@ static const pinfo_method_t Pinfo_methods[] = {
|
|||
/* WSLUA_ATTRIBUTE Pinfo_match RO Port/Data we are matching */
|
||||
{"match", Pinfo_match, pushnil_param, PARAM_NONE },
|
||||
|
||||
/* WSLUA_ATTRIBUTE Pinfo_match RO Which Protocol are we dissecting */
|
||||
/* WSLUA_ATTRIBUTE Pinfo_curr_proto RO Which Protocol are we dissecting */
|
||||
{"curr_proto", Pinfo_curr_proto, pushnil_param, PARAM_NONE },
|
||||
|
||||
/* WSLUA_ATTRIBUTE Pinfo_columns RO Accesss to the packet list columns */
|
||||
{"cols", Pinfo_columns, pushnil_param, PARAM_NONE },
|
||||
{"columns", Pinfo_columns, pushnil_param, PARAM_NONE },
|
||||
|
||||
/* WSLUA_ATTRIBUTE Pinfo_cols RO Accesss to the packet list columns (equivalent to pinfo.cols) */
|
||||
{"cols", Pinfo_columns, pushnil_param, PARAM_NONE },
|
||||
|
||||
{NULL,NULL,NULL,PARAM_NONE}
|
||||
};
|
||||
|
||||
|
|
|
@ -429,6 +429,19 @@ WSLUA_METHOD Tvb_offset(lua_State* L) {
|
|||
}
|
||||
|
||||
|
||||
#if USED_FOR_DOC_PURPOSES
|
||||
WSLUA_METHOD Tvb_range(lua_State* L) {
|
||||
/* creates a tvbr from this Tvb. This is used also as the Tvb:__call() metamethod. */
|
||||
#define WSLUA_OPTARG_Tvb_range_OFFSET 2 /* The offset (in octets) from the begining of the Tvb. Defaults to 0. */
|
||||
#define WSLUA_OPTARG_Tvb_range_LENGTH 2 /* The length (in octets) of the range. Defaults to until the end of the Tvb. */
|
||||
return 0
|
||||
}
|
||||
WSLUA_METAMETHOD Tvb__call(lua_State* L) {
|
||||
/* equivalent to tvb:range(...) */
|
||||
return 0
|
||||
}
|
||||
#endif
|
||||
|
||||
static const luaL_reg Tvb_methods[] = {
|
||||
{"len", Tvb_len},
|
||||
{"offset", Tvb_offset},
|
||||
|
@ -436,12 +449,6 @@ static const luaL_reg Tvb_methods[] = {
|
|||
};
|
||||
|
||||
static int Tvb_range(lua_State* L);
|
||||
#if USED_FOR_DOC_PURPOSES
|
||||
WSLUA_METAMETHOD Tvb__call(lua_State* L) {
|
||||
/* equivalent to tvb:range(...) */
|
||||
return 0
|
||||
}
|
||||
#endif
|
||||
|
||||
static const luaL_reg Tvb_meta[] = {
|
||||
{"__call", Tvb_range},
|
||||
|
|
Loading…
Reference in New Issue