Handle DLT_LOOP differently from DLT_NULL.
authorGuy Harris <guy@alum.mit.edu>
Sun, 15 Feb 2015 22:46:30 +0000 (14:46 -0800)
committerGuy Harris <guy@alum.mit.edu>
Sun, 15 Feb 2015 22:47:03 +0000 (22:47 +0000)
commitfea325d2ba86cee47bb6bf89a068906744701c88
tree403c99ed077e31fee09090b2ce689e8ed8aac0b7
parent1917023fc157b896a23349c0eca8c95f22f2fb6f
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>
capture_info.c
epan/dissectors/packet-null.c
epan/dissectors/packet-null.h
wiretap/pcap-common.c
wiretap/wtap.c
wiretap/wtap.h