aboutsummaryrefslogtreecommitdiffstats
path: root/epan/in_cksum.h
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2024-02-14 20:22:00 -0500
committerAndersBroman <a.broman58@gmail.com>2024-02-18 20:23:39 +0000
commit4fb2ef8af871682905b29cc1f3dbbfaba41c9e38 (patch)
treee1ff6528baa15cf9d406c7ed1668786e87eb1503 /epan/in_cksum.h
parent48bb12831bac88c338011b99ff9e5518c3da23fa (diff)
extcap: Really don't load extcap interfaces if disabled
If the capture.no_extcap preference is set, really don't load the extcap interfaces. Previously, the extcap interfaces were loaded before the preference was read, because otherwise the extcap preferences wouldn't be registered and properly read out of the configuration file. Wait until after that preference is read to register the extcap preferences and then re-read just the extcap module preferences from the configuration files. Make sure to check other times when the preference may be changed, such as switching profiles. Write extcap prefs to a separate file so that they don't get lost if the extcap interfaces aren't loaded and the prefs are then written out. Continue writing them to the main file for backwards compability. Related to #15295. Cuts ~100 ms off the loading time of Wireshark in a normal situation if the capture.no_extcap preference is set, more if an extcap has some kind of issue that makes it take a long time to load.
Diffstat (limited to 'epan/in_cksum.h')
0 files changed, 0 insertions, 0 deletions