aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_dumper.c
diff options
context:
space:
mode:
Diffstat (limited to 'epan/wslua/wslua_dumper.c')
-rw-r--r--epan/wslua/wslua_dumper.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/wslua/wslua_dumper.c b/epan/wslua/wslua_dumper.c
index ddd0aea261..8d61a087d9 100644
--- a/epan/wslua/wslua_dumper.c
+++ b/epan/wslua/wslua_dumper.c
@@ -373,7 +373,7 @@ WSLUA_METHOD Dumper_new_for_current(lua_State* L) {
return 0;
}
- encap = lua_pinfo->fd->lnk_t;
+ encap = lua_pinfo->pkt_encap;
d = wtap_dump_open(filename, filetype, encap, 0, FALSE, &err);
@@ -433,11 +433,10 @@ WSLUA_METHOD Dumper_dump_current(lua_State* L) {
pkthdr.rec_type = REC_TYPE_PACKET;
pkthdr.presence_flags = WTAP_HAS_TS|WTAP_HAS_CAP_LEN;
- pkthdr.ts.secs = lua_pinfo->fd->abs_ts.secs;
- pkthdr.ts.nsecs = lua_pinfo->fd->abs_ts.nsecs;
+ pkthdr.ts = lua_pinfo->abs_ts;
pkthdr.len = tvb_reported_length(tvb);
pkthdr.caplen = tvb_captured_length(tvb);
- pkthdr.pkt_encap = lua_pinfo->fd->lnk_t;
+ pkthdr.pkt_encap = lua_pinfo->pkt_encap;
pkthdr.pseudo_header = *lua_pinfo->pseudo_header;
if (lua_pinfo->fd->flags.has_user_comment)