I tried to add a field in the cfile.h in _capture_file.
typedef struct _capture_file {
gboolean option_enabled;
...
And use it in tshark.c .
tshark.c is already using other fields of _capture_file
I got the following error
/bin/ld: run/tshark: hidden symbol `cfile' in CMakeFiles/tshark.dir/tshark.c.o is referenced by DSO
i did git clone mkdir build cd build cmake3 -G'Unix Makefiles' -DCMAKE_INSTALL_PREFIX=. .. make -j8 tshark