diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-09-28 20:23:39 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-09-29 03:24:15 +0000 |
commit | a699fbdf45481113470cbc56f89e03cdae730f44 (patch) | |
tree | c4dc26b9d04f5eef0c5d8a6d4fd10f055d53fb79 /epan/dissectors/packet-x25.c | |
parent | cc3d23fc6989bffc7aee1f83c9989d5646c95795 (diff) |
Add a mechanism to register aliases for preference modules.
That way, we don't need a chunk of code in epan/prefs.c that knows about
various preference module mappings; individual dissectors can register
aliases as appropriate.
(The Nortel Discovery Protocol never *had* any preferences, even when
it was the SynOptics Network Management Protocol, so there's no need for
it to register an alias.)
Change-Id: I4a718dac6bb06801cc06a6ee5a28d7ed81e67e5d
Reviewed-on: https://code.wireshark.org/review/29914
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-x25.c')
-rw-r--r-- | epan/dissectors/packet-x25.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/epan/dissectors/packet-x25.c b/epan/dissectors/packet-x25.c index ae67efb9af..c09a4158aa 100644 --- a/epan/dissectors/packet-x25.c +++ b/epan/dissectors/packet-x25.c @@ -2351,6 +2351,8 @@ proto_register_x25(void) /* Preferences */ x25_module = prefs_register_protocol(proto_x25, NULL); + /* For reading older preference files with "x.25." preferences */ + prefs_register_module_alias("x.25", x25_module); prefs_register_obsolete_preference(x25_module, "non_q_bit_is_sna"); prefs_register_bool_preference(x25_module, "payload_is_qllc_sna", "Default to QLLC/SNA", |