diff options
author | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-27 03:06:50 +0000 |
---|---|---|
committer | Jeff Morriss <jeff.morriss@ulticom.com> | 2011-05-27 03:06:50 +0000 |
commit | f3f9f2697f4ac1571d0204aa51dce0d2cb9041dd (patch) | |
tree | 87c08d45e5035c9e9755fd61766ae0c0cda51efe /epan/wslua | |
parent | 024d0e2ac7f11af1c611c0db537d4023ed760676 (diff) |
Make TVBs opaque for most users.
Convert TVB_RAW_OFFSET() and TVB_GET_DS_TVB() into functions.
svn path=/trunk/; revision=37422
Diffstat (limited to 'epan/wslua')
-rw-r--r-- | epan/wslua/init_wslua.c | 2 | ||||
-rw-r--r-- | epan/wslua/wslua_tvb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/epan/wslua/init_wslua.c b/epan/wslua/init_wslua.c index 15f192a7d7..a1a9b2ab32 100644 --- a/epan/wslua/init_wslua.c +++ b/epan/wslua/init_wslua.c @@ -65,7 +65,7 @@ static int wslua_not_register_menu(lua_State* LS) { } int dissect_lua(tvbuff_t* tvb, packet_info* pinfo, proto_tree* tree) { - int consumed_bytes = tvb->length; + int consumed_bytes = tvb_length(tvb); lua_pinfo = pinfo; lua_tvb = tvb; diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c index 222e42d9fb..254a1c01c0 100644 --- a/epan/wslua/wslua_tvb.c +++ b/epan/wslua/wslua_tvb.c @@ -475,7 +475,7 @@ WSLUA_METHOD Tvb_offset(lua_State* L) { return 0; } - lua_pushnumber(L,TVB_RAW_OFFSET(tvb->ws_tvb)); + lua_pushnumber(L,tvb_raw_offset(tvb->ws_tvb)); WSLUA_RETURN(1); /* The raw offset of the Tvb. */ } |