aboutsummaryrefslogtreecommitdiffstats
path: root/packet-icp.c
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 /packet-icp.c
parent6c75aa83f9559312b7a3d3bf5989ab6668dbd076 (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. svn path=/trunk/; revision=2810
Diffstat (limited to 'packet-icp.c')
-rw-r--r--packet-icp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/packet-icp.c b/packet-icp.c
index d9a4d7b01c..b8490ac7f0 100644
--- a/packet-icp.c
+++ b/packet-icp.c
@@ -2,7 +2,7 @@
* Routines for ICP (internet cache protocol) packet disassembly
* RFC 2186 && RFC 2187
*
- * $Id: packet-icp.c,v 1.13 2000/11/19 08:53:58 guy Exp $
+ * $Id: packet-icp.c,v 1.14 2001/01/03 06:55:28 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Peter Torvals
@@ -184,7 +184,8 @@ static void dissect_icp(const u_char *pd, int offset, frame_data *fd,
OLD_CHECK_DISPLAY_AS_DATA(proto_icp, pd, offset, fd, tree);
-/* TBD: check if this is a fragment or first part of udp packet */
+/* TBD: check if this is the first fragment of a fragmented UDP datagram?
+ Or just wait for IP fragment reassembly to be implemented? */
icph.opcode=pd[offset];
icph.version=pd[offset+1];
icph.message_length=pntohs(&(pd[offset+2]));
@@ -288,7 +289,8 @@ proto_register_icp(void)
&ett_icp_payload,
};
- proto_icp = proto_register_protocol ("Internet Cache Protocol", "icp");
+ proto_icp = proto_register_protocol("Internet Cache Protocol",
+ "ICP", "icp");
proto_register_field_array(proto_icp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
}