diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-08-10 19:08:40 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-08-11 02:09:15 +0000 |
commit | 08cbe559b3c82c4e152c3b8df2f6f6f1fe3d51a0 (patch) | |
tree | 69312aaa10e79c42055b5ae69d803b97e6cf34ca /wiretap/wtap_opttypes.c | |
parent | f4ac2635647d389db83b369ed72054627ddab1af (diff) |
Add support for reading and writing the new if_hardware IDB option.
Support for writing it in live captures will come later; this change,
but not that one, will be backported so older versions of Wireshark
won't remove it when writing a file out.
Change-Id: I9fd4067991acfd2d18c03d0a373ce8337a9f3a76
Reviewed-on: https://code.wireshark.org/review/29064
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/wtap_opttypes.c')
-rw-r--r-- | wiretap/wtap_opttypes.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wiretap/wtap_opttypes.c b/wiretap/wtap_opttypes.c index 34b779a470..91690d0e69 100644 --- a/wiretap/wtap_opttypes.c +++ b/wiretap/wtap_opttypes.c @@ -1073,6 +1073,14 @@ void wtap_opttypes_initialize(void) NULL, NULL }; + static wtap_opttype_t if_hardware = { + "hardware", + "IDB Hardware", + WTAP_OPTTYPE_STRING, + 0, + NULL, + NULL + }; static wtap_blocktype_t nrb_block = { WTAP_BLOCK_NG_NRB, /* block_type */ @@ -1198,6 +1206,7 @@ void wtap_opttypes_initialize(void) wtap_opttype_option_register(&idb_block, OPT_IDB_FILTER, &if_filter); wtap_opttype_option_register(&idb_block, OPT_IDB_OS, &if_os); wtap_opttype_option_register(&idb_block, OPT_IDB_FCSLEN, &if_fcslen); + wtap_opttype_option_register(&idb_block, OPT_IDB_HARDWARE, &if_hardware); /* * Register the NRB and the options that can appear in it. |