forked from osmocom/wireshark
Second try to fix wslua building.
svn path=/trunk/; revision=45603
This commit is contained in:
parent
a734f16e5b
commit
e0fea3a34c
|
@ -297,11 +297,12 @@ WSLUA_METHOD Dumper_dump(lua_State* L) {
|
|||
pkthdr.len = ba->len;
|
||||
pkthdr.caplen = ba->len;
|
||||
pkthdr.pkt_encap = DUMPER_ENCAP(d);
|
||||
pkthdr.pseudo_header = *ph->wph;
|
||||
|
||||
/* TODO: Can we get access to pinfo->fd->opt_comment here somehow? We
|
||||
* should be copying it to pkthdr.opt_comment if we can. */
|
||||
|
||||
if (! wtap_dump(d, &pkthdr, ph->wph, ba->data, &err)) {
|
||||
if (! wtap_dump(d, &pkthdr, ba->data, &err)) {
|
||||
luaL_error(L,"error while dumping: %s",
|
||||
wtap_strerror(err));
|
||||
}
|
||||
|
@ -380,7 +381,7 @@ WSLUA_METHOD Dumper_dump_current(lua_State* L) {
|
|||
pkthdr.len = tvb_reported_length(tvb);
|
||||
pkthdr.caplen = tvb_length(tvb);
|
||||
pkthdr.pkt_encap = lua_pinfo->fd->lnk_t;
|
||||
pkthdr.pseudo_header = lua_pinfo->pseudo_header;
|
||||
pkthdr.pseudo_header = *lua_pinfo->pseudo_header;
|
||||
|
||||
if (lua_pinfo->fd->opt_comment)
|
||||
pkthdr.opt_comment = ep_strdup(lua_pinfo->fd->opt_comment);
|
||||
|
|
Loading…
Reference in New Issue