aboutsummaryrefslogtreecommitdiffstats
path: root/packet-per.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-03-25 23:58:06 +0000
committerGuy Harris <guy@alum.mit.edu>2004-03-25 23:58:06 +0000
commit67a18192d01a764105bebc58ff5292ff8305de35 (patch)
treee49d586dde18776b0057d661f0bf4152c90fa053 /packet-per.c
parent6969a1a8dadcad1cced879e3b74c62337c46043d (diff)
From Tomas Kukosa: don't allow the PER protocol to be disabled.
svn path=/trunk/; revision=10488
Diffstat (limited to 'packet-per.c')
-rw-r--r--packet-per.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/packet-per.c b/packet-per.c
index 313bade1d0..b27cc61174 100644
--- a/packet-per.c
+++ b/packet-per.c
@@ -7,7 +7,7 @@ proper helper routines
* Routines for dissection of ASN.1 Aligned PER
* 2003 Ronnie Sahlberg
*
- * $Id: packet-per.c,v 1.25 2004/02/16 20:58:03 guy Exp $
+ * $Id: packet-per.c,v 1.26 2004/03/25 23:58:06 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1556,6 +1556,8 @@ proto_register_per(void)
proto_register_field_array(proto_per, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+ proto_set_cant_toggle(proto_per);
+
per_module = prefs_register_protocol(proto_per, NULL);
prefs_register_bool_preference(per_module, "display_internal_per_fields",
"Display the internal PER fields in the tree",