summaryrefslogtreecommitdiff
path: root/plugins/mgcp
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-01-03 06:56:03 +0000
committerGuy Harris <guy@alum.mit.edu>2001-01-03 06:56:03 +0000
commit0e7c1de08a9e6b453b47c60a698a24387d63719a (patch)
tree3d72ae6a3dba0301ae7eb98baf0c993eec9500d6 /plugins/mgcp
parent6c75aa83f9559312b7a3d3bf5989ab6668dbd076 (diff)
downloadwireshark-0e7c1de08a9e6b453b47c60a698a24387d63719a.tar.gz
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. svn path=/trunk/; revision=2810
Diffstat (limited to 'plugins/mgcp')
-rw-r--r--plugins/mgcp/packet-mgcp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/mgcp/packet-mgcp.c b/plugins/mgcp/packet-mgcp.c
index 09491a133e..76811fffd1 100644
--- a/plugins/mgcp/packet-mgcp.c
+++ b/plugins/mgcp/packet-mgcp.c
@@ -2,7 +2,7 @@
* Routines for mgcp packet disassembly
* RFC 2705
*
- * $Id: packet-mgcp.c,v 1.11 2000/12/28 10:10:17 guy Exp $
+ * $Id: packet-mgcp.c,v 1.12 2001/01/03 06:56:03 guy Exp $
*
* Copyright (c) 2000 by Ed Warnicke <hagbard@physics.rutgers.edu>
*
@@ -58,7 +58,7 @@ G_MODULE_EXPORT const gchar version[] = VERSION;
#define TCP_PORT_MGCP_CALLAGENT 2727
#define UDP_PORT_MGCP_CALLAGENT 2727
-void proto_reg_handoff_mgcp(void);
+static void proto_reg_handoff_mgcp(void);
/* Define the mgcp proto */
@@ -476,7 +476,7 @@ proto_register_mgcp(void)
&global_mgcp_dissect_tree);
proto_mgcp = proto_register_protocol("Media Gateway Control Protocol",
- "mgcp");
+ "MGCP", "mgcp");
proto_register_field_array(proto_mgcp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
@@ -484,7 +484,7 @@ proto_register_mgcp(void)
}
/* The registration hand-off routine */
-void
+static void
proto_reg_handoff_mgcp(void)
{
static int mgcp_prefs_initialized = FALSE;