aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rlm.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-21 02:10:19 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-10-21 02:10:19 +0000
commit06b82a395a87dfcf4139fb44caeb9f4952f56b6d (patch)
treea955184a13d8444bdec0de9200f261c46cfa2734 /epan/dissectors/packet-rlm.c
parent75cdd631a75832f542fe2b02ea6a469fdfcffa8a (diff)
For proto_tree_add_item(..., proto_xxx, ...)use ENC_NA as the encoding arg.
Also: remove trailing whitespace for a number of files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39503 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-rlm.c')
-rw-r--r--epan/dissectors/packet-rlm.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/epan/dissectors/packet-rlm.c b/epan/dissectors/packet-rlm.c
index 3641208f43..d1d7f17a8a 100644
--- a/epan/dissectors/packet-rlm.c
+++ b/epan/dissectors/packet-rlm.c
@@ -12,39 +12,39 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-
+
/*
* RLM is a proprietary Cisco protocol used for centralling managing
* many redundant NASes. I don't know much about the format, but you
* can read about the feature here:
- *
+ *
* http://www.cisco.com/en/US/docs/ios/12_0t/12_0t3/feature/guide/rlm_123.html
*
* RLM runs on a UDP port (default 3000) between the MGC and the NAS.
* On port N+1 (default 3001), a Q.931/LAPD/UDP connection is maintained.
* Both sides use the same local port number for the connection, so source
* and dest port are always the same.
- *
+ *
* In large networks, the links are typically split onto higher ports,
* so anything up to 3015 (or higher) could either be RLM or Q.931 traffic,
* although always the RLM has the one lower port number for that RLM group.
*
* Multiple RLM groups are possible on a single NAS.
- *
+ *
* I haven't been able to find the protocol documented, so I've
* guessed some of the fields based on the output of debug commands on
* cisco NASes.
- *
+ *
*/
#ifdef HAVE_CONFIG_H
@@ -81,7 +81,7 @@ static gint ett_rlm = -1;
/* #define ??? ?? */
-/*
+/*
Maybe this isn't the best place for it, but RLM goes hand in hand
with Q.931 traffic on a higher port.
*/
@@ -164,7 +164,7 @@ dissect_rlm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree) {
/* proto_tree_add_protocol_format(tree, proto_rlm, tvb, 0,
16, "Cisco Session Management"); */
- ti = proto_tree_add_item(tree, proto_rlm, tvb, 0, 8, FALSE);
+ ti = proto_tree_add_item(tree, proto_rlm, tvb, 0, 8, ENC_NA);
rlm_tree = proto_item_add_subtree(ti, ett_rlm);
proto_tree_add_item(rlm_tree, hf_rlm_version, tvb, 0, 1, ENC_BIG_ENDIAN);
proto_tree_add_uint_format(rlm_tree, hf_rlm_type, tvb, 1, 1, rlm_type, "Type: %u (%s)", rlm_type, type_str);
@@ -203,27 +203,27 @@ proto_register_rlm(void)
static hf_register_info hf[] = {
{ &hf_rlm_version,
{ "Version", "rlm.version",
- FT_UINT8, BASE_DEC, NULL, 0x0,
+ FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_rlm_type,
{ "Type", "rlm.type",
- FT_UINT8, BASE_DEC, NULL, 0x0,
+ FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_rlm_unknown,
{ "Unknown", "rlm.unknown",
- FT_UINT16, BASE_HEX, NULL, 0x0,
+ FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
{ &hf_rlm_tid,
{ "Transaction ID", "rlm.tid",
- FT_UINT16, BASE_DEC, NULL, 0x0,
+ FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
{ &hf_rlm_unknown2,
{ "Unknown", "rlm.unknown2",
- FT_UINT16, BASE_HEX, NULL, 0x0,
+ FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
};