diff options
author | Guy Harris <gharris@sonic.net> | 2020-07-29 01:30:54 -0700 |
---|---|---|
committer | Guy Harris <gharris@sonic.net> | 2020-07-29 09:05:24 +0000 |
commit | f8efccc3cc1e8d604a4fd085ab9a0f0174e9b25f (patch) | |
tree | fab66a38a9126c70da2a011a426e4a93e90d32db /wiretap/dpa400.c | |
parent | 12621c5b641246bc7f26fb71bbc2045a844a2810 (diff) |
wiretap: generate fake IDBs for more capture file types.
That makes them work as input to a mergecap that writes pcapng files.
File types that don't have a single per-file encapsulation type need
more work, with multiple fake IDBs, one for each packet encapsulation
type seen in the file, unless we can generate real IDBs.
Change-Id: I2859e4f7fb15ec0c0f31a4044dc15638e5db7826
Reviewed-on: https://code.wireshark.org/review/37983
Petri-Dish: Guy Harris <gharris@sonic.net>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <gharris@sonic.net>
Diffstat (limited to 'wiretap/dpa400.c')
-rw-r--r-- | wiretap/dpa400.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/wiretap/dpa400.c b/wiretap/dpa400.c index bd709aa10a..a298520b47 100644 --- a/wiretap/dpa400.c +++ b/wiretap/dpa400.c @@ -231,5 +231,13 @@ wtap_open_return_val dpa400_open(wtap *wth, int *err, gchar **err_info) wth->subtype_seek_read = dpa400_seek_read; wth->snapshot_length = 0; + /* + * Add an IDB; we don't know how many interfaces were + * involved, so we just say one interface, about which + * we only know the link-layer type, snapshot length, + * and time stamp resolution. + */ + wtap_add_generated_idb(wth); + return WTAP_OPEN_MINE; } |