Wireshark-commits: [Wireshark-commits] master 12621c5: wiretap: add a routine to add a "fake" IDB.
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=12621c5b641246bc7f26fb71bbc2045a844a2810
Submitter: "Guy Harris <gharris@xxxxxxxxx>"
Changed: branch: master
Repository: wireshark
Commits:
12621c5 by Guy Harris (gharris@xxxxxxxxx):
wiretap: add a routine to add a "fake" IDB.
It generates a fake IDB for files that don't have interface information
and that have a per-file encapsulation type, snapshot length, and time
stamp precision, and adds it to the file's list of IDBs.
Use it for libpcap.
We will use it later for other file formats, so that code such as the
mergecap code to merge into a pcapng file can handle input files that
don't have interface information.
(We should have a way to indicate whether the IDBs are real or fake, so
that capinfos and Statistics > Capture File Properties don't report
meaningless IDB information and make it look as if it's known that the
capture was done on one interface with the properties in question.)
Change-Id: Iec124bf3c7cbd4c69ec2ac7d0dd776e5287f8576
Reviewed-on: https://code.wireshark.org/review/37982
Petri-Dish: Guy Harris <gharris@xxxxxxxxx>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@xxxxxxxxx>
Actions performed:
from 7760bcb TECMP: Fixing the dissection of Status Bus Vendor Ext
add 12621c5 wiretap: add a routine to add a "fake" IDB.
Summary of changes:
debian/libwiretap0.symbols | 1 +
wiretap/libpcap.c | 19 +---------
wiretap/wtap.c | 91 ++++++++++++++++++++++++++++++++++++++++++++++
wiretap/wtap.h | 14 +++++++
4 files changed, 107 insertions(+), 18 deletions(-)