aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-21 00:48:46 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-21 00:48:46 +0000
commit5fa8e751492a3d47d7d9d60586ad20a7006d8e5c (patch)
tree2fd7e9f13537d9a62869a04150e5031ca0a6c4bc /epan/wslua
parent1b2cddf0b3b38627882c25eb9e282d4910feb551 (diff)
packet_info.c and packet.c
add sccp_info to struct _packet_info (Sorry but the way private_data works and the fact that TCAP uses it and BSSAP/RANAP can be tunnelled on GSMMAP over TCAP makes it impossible to avoid) SCCP - Have SCCP to have a TAP, - Fix associations so that every message belongs to the association. - Export message type values so that they can be used by a tap listener RANAP - Have RANAP information attached to the sccp_info BSSAP + GSM_A - Have DTAP, BSSMAP and BSSAP info attached to the sccp_info svn path=/trunk/; revision=21076
Diffstat (limited to 'epan/wslua')
-rw-r--r--epan/wslua/Makefile.am2
-rw-r--r--epan/wslua/wslua_dumper.c5
2 files changed, 4 insertions, 3 deletions
diff --git a/epan/wslua/Makefile.am b/epan/wslua/Makefile.am
index a264428294..b9d9ecfa0d 100644
--- a/epan/wslua/Makefile.am
+++ b/epan/wslua/Makefile.am
@@ -103,5 +103,5 @@ declare_wslua.h: make-reg.pl $(wslua_modules) taps_wslua.c
dummy:
touch dummy
-init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h ../proto.h
+init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h ../proto.h ../../stat_menu.h
$(PERL) $(srcdir)/make-init-lua.pl template-init.lua > init.lua
diff --git a/epan/wslua/wslua_dumper.c b/epan/wslua/wslua_dumper.c
index 39f0d3d2a6..faf361a632 100644
--- a/epan/wslua/wslua_dumper.c
+++ b/epan/wslua/wslua_dumper.c
@@ -286,8 +286,9 @@ WSLUA_METHOD Dumper_dump(lua_State* L) {
if (! ba) WSLUA_ARG_ERROR(Dumper_dump,BYTEARRAY,"must be a ByteArray");
- pkthdr.ts.secs = (int)floor(ts);
- pkthdr.ts.nsecs = (int)floor(ts - pkthdr.ts.secs) * 1000000000;
+ pkthdr.ts.secs = (unsigned)floor(ts);
+ pkthdr.ts.nsecs = (unsigned)floor((ts - (double)pkthdr.ts.secs) * 1000000000);
+
pkthdr.len = ba->len;
pkthdr.caplen = ba->len;
pkthdr.pkt_encap = DUMPER_ENCAP(d);