aboutsummaryrefslogtreecommitdiffstats
path: root/epan/oids.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-03-05 19:33:07 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-03-05 19:33:07 +0000
commit1193f9d571f01015c32bf55ff96cab772b4bf55b (patch)
tree06f051076be7fb401dd1b2931a5ffeee4ab34d86 /epan/oids.c
parentf9ee74b4f65b646603a2a2810f42874d6d37b85b (diff)
From LEGO via bug 2309:
Alert the user that a restart is needed when changes are made to the MIBs configuration. svn path=/trunk/; revision=32124
Diffstat (limited to 'epan/oids.c')
-rw-r--r--epan/oids.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/epan/oids.c b/epan/oids.c
index 6d8854f2fa..d9a5b53022 100644
--- a/epan/oids.c
+++ b/epan/oids.c
@@ -495,6 +495,11 @@ static void unregister_mibs(void) {
/* smiExit(); */
}
+static void restart_needed_warning(void) {
+ if (oids_init_done)
+ report_failure("Wireshark needs to be restarted for these changes to take effect");
+}
+
static void register_mibs() {
SmiModule *smiModule;
SmiNode *smiNode;
@@ -524,7 +529,7 @@ static void register_mibs() {
smi_mod_copy_cb,
NULL,
smi_mod_free_cb,
- NULL,
+ restart_needed_warning,
smi_fields);
smi_paths_uat = uat_new("SMI Paths",
@@ -538,7 +543,7 @@ static void register_mibs() {
smi_mod_copy_cb,
NULL,
smi_mod_free_cb,
- NULL,
+ restart_needed_warning,
smi_paths_fields);