summaryrefslogtreecommitdiff
path: root/capture_info.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-02-15 14:46:30 -0800
committerGuy Harris <guy@alum.mit.edu>2015-02-15 22:47:03 +0000
commitfea325d2ba86cee47bb6bf89a068906744701c88 (patch)
tree403c99ed077e31fee09090b2ce689e8ed8aac0b7 /capture_info.c
parent1917023fc157b896a23349c0eca8c95f22f2fb6f (diff)
downloadwireshark-fea325d2ba86cee47bb6bf89a068906744701c88.tar.gz
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 <guy@alum.mit.edu>
Diffstat (limited to 'capture_info.c')
-rw-r--r--capture_info.c3
1 files changed, 3 insertions, 0 deletions
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;