diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-04-08 07:07:42 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2000-04-08 07:07:42 +0000 |
commit | a831e8f8f2eefe74564ab3356dd7b5bcfd64c449 (patch) | |
tree | 8c2187183a707d04b8678a4cbfddb5577187c015 /packet-who.c | |
parent | 907093903ca0afdc6a9106415d88fc7565a492a7 (diff) |
Move calls to "dissector_add()" out of the register routines for TCP and
UDP and into the handoff registration routines for the protocols in
question.
Make the dissectors for those protocols static if they're not called
outside the dissector's source file.
Get rid of header files if all they did was declare dissectors that are
now static; remove declarations of now-static dissectors from header
files that do more than just declare the dissector.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1823 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-who.c')
-rw-r--r-- | packet-who.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/packet-who.c b/packet-who.c index 1c67041b67..c5f78046f1 100644 --- a/packet-who.c +++ b/packet-who.c @@ -2,7 +2,7 @@ * Routines for who protocol (see man rwhod) * Gilbert Ramirez <gram@xiexie.org> * - * $Id: packet-who.c,v 1.4 2000/03/12 04:47:51 gram Exp $ + * $Id: packet-who.c,v 1.5 2000/04/08 07:07:41 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -89,10 +89,11 @@ static int hf_who_idle = -1; static gint ett_who = -1; static gint ett_whoent = -1; +#define UDP_PORT_WHO 513 static void dissect_whoent(const u_char *pd, int offset, frame_data *fd, proto_tree *tree); -void +static void dissect_who(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) { @@ -295,3 +296,8 @@ proto_register_who(void) proto_register_subtree_array(ett, array_length(ett)); } +void +proto_reg_handoff_who(void) +{ + dissector_add("udp.port", UDP_PORT_WHO, dissect_who); +} |