URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=fea325d2ba86cee47bb6bf89a068906744701c88
Submitter: Guy Harris (guy@xxxxxxxxxxxx)
Changed: branch: master
Repository: wireshark
Commits:
fea325d by Guy Harris (guy@xxxxxxxxxxxx):
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@xxxxxxxxxxxx>
Actions performed:
from 1917023 Don't base interpretation of LINKTYPE_ values on DLT_ value definitions.
adds fea325d Handle DLT_LOOP differently from DLT_NULL.
Summary of changes:
capture_info.c | 3 ++
epan/dissectors/packet-null.c | 96 +++++++++++++++++++++++++++++++++++------
epan/dissectors/packet-null.h | 3 ++
wiretap/pcap-common.c | 10 ++---
wiretap/wtap.c | 5 ++-
wiretap/wtap.h | 1 +
6 files changed, 98 insertions(+), 20 deletions(-)