When writing pcapng files use correct interface index

of 0 instead of 1.

svn path=/trunk/; revision=28696
This commit is contained in:
Michael Tüxen 2009-06-11 11:24:29 +00:00
parent 76dfdd6d6f
commit 1d65c4b06f
1 changed files with 1 additions and 1 deletions

View File

@ -1427,7 +1427,7 @@ pcapng_write_packet_block(wtap_dumper *wdh, wtapng_block_t *wblock, int *err)
wdh->bytes_dumped += sizeof bh;
/* write block fixed content */
epb.interface_id = 1; /* XXX */
epb.interface_id = 0; /* XXX */
epb.timestamp_high = wblock->data.packet.ts_high;
epb.timestamp_low = wblock->data.packet.ts_low;
epb.captured_len = wblock->data.packet.cap_len;