aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-07-20 10:19:02 -0700
committerGuy Harris <guy@alum.mit.edu>2010-07-20 10:19:02 -0700
commit9e7bc0881a92b30fce11a9f54c8f4204c5a8f9e7 (patch)
treefa025540e0e1ab51f0e82c86936443cd588c613c
parentcc7b2f2e42e508114c0b4162e6302e2a91c5b133 (diff)
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.
-rw-r--r--sf-pcap-ng.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sf-pcap-ng.c b/sf-pcap-ng.c
index 3535777..9049991 100644
--- a/sf-pcap-ng.c
+++ b/sf-pcap-ng.c
@@ -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;