aboutsummaryrefslogtreecommitdiffstats
path: root/packet-rip.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-03 06:56:03 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-03 06:56:03 +0000
commita45a8ee1ee114753b92ed43c9d44a6f33c68c8c4 (patch)
tree3d72ae6a3dba0301ae7eb98baf0c993eec9500d6 /packet-rip.c
parent0bf267fb9b92b8b400cc3ef3233e6dca04a4e184 (diff)
Have "proto_register_protocol()" build a list of data structures for
protocols, in addition to adding structures to the list of filterable fields. Give it an extra argument that specifies a "short name" for the protocol, for use in such places as pinfo->current_proto; the dialog box for constructing filters; the preferences tab for the protocol; and so on (although we're not yet using it in all those places). Make the preference name that appears in the preferences file and the command line for the DIAMETER protocol "diameter", not "Diameter"; the convention is that the name in question be all-lower-case. Make some routines and variables that aren't exported static. Update a comment in the ICP dissector to make it clear that the dissector won't see fragments other than the first fragment of a fragmented datagram. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2810 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-rip.c')
-rw-r--r--packet-rip.c29
1 files changed, 15 insertions, 14 deletions
diff --git a/packet-rip.c b/packet-rip.c
index e688ac57f8..732cc2e551 100644
--- a/packet-rip.c
+++ b/packet-rip.c
@@ -2,7 +2,7 @@
* Routines for RIPv1 and RIPv2 packet disassembly
* (c) Copyright Hannes R. Boehm <hannes@boehm.org>
*
- * $Id: packet-rip.c,v 1.20 2000/12/27 12:48:25 guy Exp $
+ * $Id: packet-rip.c,v 1.21 2001/01/03 06:55:31 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -193,22 +193,23 @@ dissect_rip_authentication(tvbuff_t *tvb, int offset, proto_tree *tree)
void
proto_register_rip(void)
{
-/* static hf_register_info hf[] = {
- { &variable,
- { "Name", "rip.abbreviation", TYPE, VALS_POINTER }},
- };*/
- static gint *ett[] = {
- &ett_rip,
- &ett_rip_vec,
- };
-
- proto_rip = proto_register_protocol("Routing Information Protocol", "rip");
- /* proto_register_field_array(proto_rip, hf, array_length(hf));*/
- proto_register_subtree_array(ett, array_length(ett));
+/* static hf_register_info hf[] = {
+ { &variable,
+ { "Name", "rip.abbreviation", TYPE, VALS_POINTER }},
+ };*/
+ static gint *ett[] = {
+ &ett_rip,
+ &ett_rip_vec,
+ };
+
+ proto_rip = proto_register_protocol("Routing Information Protocol",
+ "RIP", "rip");
+/* proto_register_field_array(proto_rip, hf, array_length(hf));*/
+ proto_register_subtree_array(ett, array_length(ett));
}
void
proto_reg_handoff_rip(void)
{
- dissector_add("udp.port", UDP_PORT_RIP, dissect_rip);
+ dissector_add("udp.port", UDP_PORT_RIP, dissect_rip);
}