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:
parent
cc7b2f2e42
commit
9e7bc0881a
|
@ -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;
|
||||
|
|
Reference in New Issue