forked from osmocom/wireshark
Start declaring the proto_reg... functions to fix 'warning: no previous declaration'
svn path=/trunk/; revision=18691
This commit is contained in:
parent
ba62d2e1b3
commit
eb2e0d867d
|
@ -668,6 +668,8 @@ dissect_njack_static(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
return dissect_njack(tvb, pinfo, tree);
|
||||
}
|
||||
|
||||
void proto_register_njack(void);
|
||||
|
||||
void
|
||||
proto_register_njack(void)
|
||||
{
|
||||
|
@ -782,6 +784,8 @@ proto_register_njack(void)
|
|||
proto_register_subtree_array(ett, array_length(ett));
|
||||
}
|
||||
|
||||
void proto_reg_handoff_njack(void);
|
||||
|
||||
void
|
||||
proto_reg_handoff_njack(void)
|
||||
{
|
||||
|
|
|
@ -88,6 +88,8 @@ dissect_3com_xns(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
}
|
||||
}
|
||||
|
||||
void proto_register_3com_xns(void);
|
||||
|
||||
void
|
||||
proto_register_3com_xns(void)
|
||||
{
|
||||
|
@ -111,6 +113,8 @@ proto_register_3com_xns(void)
|
|||
proto_register_subtree_array(ett, array_length(ett));
|
||||
}
|
||||
|
||||
void proto_reg_handoff_3com_xns(void);
|
||||
|
||||
void
|
||||
proto_reg_handoff_3com_xns(void)
|
||||
{
|
||||
|
|
|
@ -1510,6 +1510,8 @@ dissect_a11( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
} /* dissect_a11 */
|
||||
|
||||
/* Register the protocol with Wireshark */
|
||||
void proto_register_a11(void);
|
||||
|
||||
void proto_register_a11(void)
|
||||
{
|
||||
|
||||
|
@ -1919,6 +1921,8 @@ void proto_register_a11(void)
|
|||
proto_register_subtree_array(ett, array_length(ett));
|
||||
}
|
||||
|
||||
void proto_reg_handoff_a11(void);
|
||||
|
||||
void
|
||||
proto_reg_handoff_a11(void)
|
||||
{
|
||||
|
|
|
@ -676,6 +676,8 @@ static void dissect_9P_dm(tvbuff_t * tvb, proto_item * item,int offset,int iscr
|
|||
}
|
||||
|
||||
/* Register 9P with Wireshark */
|
||||
void proto_register_9P(void);
|
||||
|
||||
void proto_register_9P(void)
|
||||
{
|
||||
static hf_register_info hf[] = {
|
||||
|
@ -823,6 +825,8 @@ void proto_register_9P(void)
|
|||
proto_register_subtree_array(ett, array_length(ett));
|
||||
}
|
||||
|
||||
void proto_reg_handoff_9P(void);
|
||||
|
||||
void proto_reg_handoff_9P(void)
|
||||
{
|
||||
dissector_handle_t ninep_handle;
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* With current IOS, you can use Cisco wireless Bridges/APs as a
|
||||
/* With current IOS, you can use Cisco wireless Bridges/APs as
|
||||
* wireless sniffers and configure them with the "monitor ..."
|
||||
* command to * send the data to some central IDS.
|
||||
* This dissector tries to decode those frames.
|
||||
|
@ -52,8 +52,6 @@
|
|||
#include <epan/prefs.h>
|
||||
|
||||
static guint udp_port = 0;
|
||||
void proto_reg_handoff_cwids(void);
|
||||
|
||||
|
||||
static int proto_cwids = -1;
|
||||
static int hf_cwids_version = -1;
|
||||
|
@ -131,7 +129,7 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
|
||||
offset += capturelen;
|
||||
}
|
||||
if (remain > 0) { /* FIXME: Shouldn't happen? */
|
||||
if (remain > 0) { /* FIXME: Shouldn't happen? Maybe if packet is truncated */
|
||||
ti = proto_tree_add_item(tree, proto_cwids, tvb, offset, remain, FALSE);
|
||||
cwids_tree = proto_item_add_subtree(ti, ett_cwids);
|
||||
|
||||
|
@ -139,6 +137,9 @@ dissect_cwids(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
|
|||
}
|
||||
}
|
||||
|
||||
void proto_register_cwids(void);
|
||||
void proto_reg_handoff_cwids(void);
|
||||
|
||||
void
|
||||
proto_register_cwids(void)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue