aboutsummaryrefslogtreecommitdiffstats
path: root/packet-wsp.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-03 08:42:48 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2001-01-03 08:42:48 +0000
commite2534b5ffb50ad4151b53180d94ef6036a3de560 (patch)
treeef82a557225e3f0d26afc6e25d3e8a82ab0d8db5 /packet-wsp.c
parent6159078d761fbb3885b11cf39ac7172af7e02acb (diff)
Register the WSP dissector, make it static, and have the WTP dissector
call it through a handle. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2815 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-wsp.c')
-rw-r--r--packet-wsp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/packet-wsp.c b/packet-wsp.c
index c64342f727..e35751599c 100644
--- a/packet-wsp.c
+++ b/packet-wsp.c
@@ -3,7 +3,7 @@
*
* Routines to dissect WSP component of WAP traffic.
*
- * $Id: packet-wsp.c,v 1.6 2001/01/03 06:55:34 guy Exp $
+ * $Id: packet-wsp.c,v 1.7 2001/01/03 08:42:48 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -369,7 +369,7 @@ tvb_get_guintvar (tvbuff_t *tvb, guint offset, guint *octetCount)
}
/* Code to actually dissect the packets */
-void
+static void
dissect_wsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
frame_data *fdata = pinfo->fd;
@@ -1468,6 +1468,8 @@ proto_register_wsp(void)
/* Required function calls to register the header fields and subtrees used */
proto_register_field_array(proto_wsp, hf, array_length(hf));
proto_register_subtree_array(ett, array_length(ett));
+
+ register_dissector("wsp", dissect_wsp);
};
void