forked from osmocom/wireshark
When writing pcapng files use correct interface index
of 0 instead of 1. svn path=/trunk/; revision=28696
This commit is contained in:
parent
76dfdd6d6f
commit
1d65c4b06f
|
@ -1427,7 +1427,7 @@ pcapng_write_packet_block(wtap_dumper *wdh, wtapng_block_t *wblock, int *err)
|
||||||
wdh->bytes_dumped += sizeof bh;
|
wdh->bytes_dumped += sizeof bh;
|
||||||
|
|
||||||
/* write block fixed content */
|
/* write block fixed content */
|
||||||
epb.interface_id = 1; /* XXX */
|
epb.interface_id = 0; /* XXX */
|
||||||
epb.timestamp_high = wblock->data.packet.ts_high;
|
epb.timestamp_high = wblock->data.packet.ts_high;
|
||||||
epb.timestamp_low = wblock->data.packet.ts_low;
|
epb.timestamp_low = wblock->data.packet.ts_low;
|
||||||
epb.captured_len = wblock->data.packet.cap_len;
|
epb.captured_len = wblock->data.packet.cap_len;
|
||||||
|
|
Loading…
Reference in New Issue