diff options
author | Luis Ontanon <luis.ontanon@gmail.com> | 2007-04-11 19:24:19 +0000 |
---|---|---|
committer | Luis Ontanon <luis.ontanon@gmail.com> | 2007-04-11 19:24:19 +0000 |
commit | 5b088218664be309108bbc624c12f4c0828acc1c (patch) | |
tree | 4b8f288006362eb9b01e6ff48790172e603014ba /epan/wslua/wslua_tvb.c | |
parent | 19ac60d3a7703d4e92582e92c9035f6f5ef25835 (diff) |
have tvbrange:get_ipv4() not modifying the byte order of the extraced data.
have Proto.new() registering the protocol by name.
svn path=/trunk/; revision=21385
Diffstat (limited to 'epan/wslua/wslua_tvb.c')
-rw-r--r-- | epan/wslua/wslua_tvb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/wslua/wslua_tvb.c b/epan/wslua/wslua_tvb.c index 309872395d..b31eb1860e 100644 --- a/epan/wslua/wslua_tvb.c +++ b/epan/wslua/wslua_tvb.c @@ -694,7 +694,7 @@ WSLUA_METHOD TvbRange_get_ipv4(lua_State* L) { addr = g_malloc(sizeof(address)); ip_addr = g_malloc(sizeof(guint32)); - *ip_addr = tvb_get_ntohl(tvbr->tvb,tvbr->offset); + *ip_addr = tvb_get_ipv4(tvbr->tvb,tvbr->offset); SET_ADDRESS(addr, AT_IPv4, 4, ip_addr); pushAddress(L,addr); |