From fea325d2ba86cee47bb6bf89a068906744701c88 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 15 Feb 2015 14:46:30 -0800 Subject: Handle DLT_LOOP differently from DLT_NULL. That's a little cleaner, and lets us preserve the LINKTYPE_ value for DLT_LOOP captures. ("Preserve" here doesn't mean "write files with a link-layer header type of 12", as that's ambiguous; we write it with a link-layer header type of LINKTYPE_LOOP, i.e. 108. If programs on OpenBSD don't recognize that as DLT_LOOP, that's a bug in OpenBSD's libpcap or in the program.) Change-Id: I48a2e04aed41c013823ffb5c588d2a8e8b376e15 Reviewed-on: https://code.wireshark.org/review/7143 Reviewed-by: Guy Harris --- capture_info.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'capture_info.c') diff --git a/capture_info.c b/capture_info.c index 3989d00faa..548e8a68f0 100644 --- a/capture_info.c +++ b/capture_info.c @@ -290,6 +290,9 @@ capture_info_packet(packet_counts *counts, gint wtap_linktype, const guchar *pd, case WTAP_ENCAP_NULL: capture_null(pd, caplen, counts); break; + case WTAP_ENCAP_LOOP: + capture_loop(pd, caplen, counts); + break; case WTAP_ENCAP_PPP: capture_ppp_hdlc(pd, 0, caplen, counts); break; -- cgit v1.2.3