dect
/
libpcap
Archived
13
0
Fork 0

Oops - should convert the LINKTYPE_ value in pcap-ng Interface

Description Blocks to a DLT_ value in the pcap_t, as applications expect
pcap_linktype() to return a DLT_ value.
This commit is contained in:
Guy Harris 2010-07-20 10:19:02 -07:00
parent cc7b2f2e42
commit 9e7bc0881a
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ pcap_ng_check_header(pcap_t *p, bpf_u_int32 magic, FILE *fp, char *errbuf)
done:
p->tzoff = 0; /* XXX - not used in pcap */
p->snapshot = idbp->snaplen;
p->linktype = idbp->linktype;
p->linktype = linktype_to_dlt(idbp->linktype);
p->linktype_ext = 0;
p->sf.next_packet_op = pcap_ng_next_packet;