In libpcap_process_header(), fill in what phdr points to, not wth->phdr.

svn path=/trunk/; revision=49403
This commit is contained in:
Guy Harris 2013-05-18 03:15:06 +00:00
parent 4097d6e676
commit 3fc0506b41
1 changed files with 3 additions and 3 deletions

View File

@ -708,9 +708,9 @@ libpcap_process_header(wtap *wth, FILE_T fh, struct wtap_pkthdr *phdr,
else
phdr->ts.nsecs = hdr.hdr.ts_usec * 1000;
} else {
/* Set interface ID for ERF format */
wth->phdr.presence_flags |= WTAP_HAS_INTERFACE_ID;
wth->phdr.interface_id = wth->phdr.pseudo_header.erf.phdr.flags & 0x03;
/* Set interface ID for ERF format */
phdr->presence_flags |= WTAP_HAS_INTERFACE_ID;
phdr->interface_id = phdr->pseudo_header.erf.phdr.flags & 0x03;
}
phdr->caplen = packet_size;
phdr->len = orig_size;