- Make local functions static.

- Forward declaration of register functions.

svn path=/trunk/; revision=53941
This commit is contained in:
Anders Broman 2013-12-11 19:46:38 +00:00
parent b4020a83d1
commit 7a5d4ed4da
23 changed files with 69 additions and 10 deletions

View File

@ -47,6 +47,8 @@
#define COMMUNICATION_PHASE_3 (0x3)
#define COMMUNICATION_PHASE_4 (0x4)
void proto_register_sercosiii(void);
void proto_reg_handoff_sercosiii(void);
/* Initialize the protocol and registered fields */
static gint proto_siii = -1;
@ -775,7 +777,7 @@ static const value_string siii_at_hotplug_status_error_text[]=
void dissect_siii_mst(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
static void dissect_siii_mst(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
proto_item *ti;
proto_tree *subtree;
@ -801,7 +803,7 @@ void dissect_siii_mst(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
}
void dissect_siii_mdt_hp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
static void dissect_siii_mdt_hp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
proto_tree *subtree;
proto_tree *subtree2;
@ -821,7 +823,7 @@ void dissect_siii_mdt_hp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
proto_tree_add_item(subtree, hf_siii_mdt_hp_info, tvb, 4, 4, ENC_NA);
}
void dissect_siii_mdt_devctrl(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
static void dissect_siii_mdt_devctrl(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
proto_tree *subtree;
proto_item *ti;
@ -834,7 +836,7 @@ void dissect_siii_mdt_devctrl(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree
proto_tree_add_item(subtree, hf_siii_mdt_dev_control_top_control, tvb, 0, 2, ENC_LITTLE_ENDIAN);
}
void dissect_siii_mdt_svc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint devno _U_) /* devno will be needed in later versions */
static void dissect_siii_mdt_svc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint devno _U_) /* devno will be needed in later versions */
{
proto_tree *subtree;
proto_item *ti;
@ -930,7 +932,7 @@ static void dissect_siii_mdt_cp3_4(tvbuff_t *tvb, packet_info *pinfo, proto_tree
proto_tree_add_text(tree, tvb, 0, 0, "Device Controls");
}
void dissect_siii_mdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static void dissect_siii_mdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *subtree;
@ -984,7 +986,7 @@ void dissect_siii_mdt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
}
}
void dissect_siii_at_svc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint devno _U_) /* devno will be used in later versions */
static void dissect_siii_at_svc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint devno _U_) /* devno will be used in later versions */
{
proto_tree *subtree;
proto_item *ti;
@ -1000,7 +1002,7 @@ void dissect_siii_at_svc(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree
proto_tree_add_item(tree, hf_siii_at_svch_info, tvb, 2, 4, ENC_NA);
}
void dissect_siii_at_devstat(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
static void dissect_siii_at_devstat(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
proto_tree *subtree;
proto_item *ti;
@ -1018,7 +1020,7 @@ void dissect_siii_at_devstat(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *
proto_tree_add_item(subtree, hf_siii_at_dev_status_parameterization_level_active, tvb, 0, 2, ENC_LITTLE_ENDIAN);
}
void dissect_siii_at_hp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
static void dissect_siii_at_hp(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree)
{
proto_tree *subtree;
proto_tree *subtree2;
@ -1122,7 +1124,7 @@ static void dissect_siii_at_cp3_4(tvbuff_t *tvb, packet_info *pinfo, proto_tree
}
void dissect_siii_at(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static void dissect_siii_at(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
proto_item *ti;
proto_tree *subtree;

View File

@ -40,6 +40,11 @@
#include "packet-ber.h"
#include "packet-ses.h"
void proto_register_ses(void);
void proto_reg_handoff_ses(void);
void proto_register_clses(void);
void proto_reg_handoff_clses(void);
/* ses header fields */
static int proto_ses = -1;

View File

@ -61,6 +61,8 @@
#define SFLOW_UDP_PORTS "6343"
void proto_register_sflow(void);
static dissector_handle_t sflow_handle;
/*

View File

@ -44,6 +44,8 @@
*/
#define SCTP_PORT_SGSAP 29118
void proto_register_sgsap(void);
void proto_reg_handoff_sgsap(void);
/* Global variables */
static dissector_handle_t gsm_a_dtap_handle;

View File

@ -43,6 +43,9 @@
#include <epan/sigcomp-udvm.h>
#include <epan/sigcomp_state_hdlr.h>
void proto_register_sigcomp(void);
void proto_reg_handoff_sigcomp(void);
/* Initialize the protocol and registered fields */
static int proto_sigcomp = -1;
static int proto_raw_sigcomp = -1;

View File

@ -43,6 +43,8 @@
#define CA_SYSTEM_ID_MIKEY 0x9999 /* CA_system_ID corresponding to MIKEY ECM */
#define CA_SYSTEM_ID_MIKEY_PROTO "mikey" /* Protocol name to be used to "decode as" ECMs with CA_SYSTEM_ID_MIKEY */
void proto_register_simulcrypt(void);
/* Tecm_interpretation links ca_system_id to ecmg port and protocol name for dissection of
* ecm_datagram in ECM_Response message.
* Currently size is 1 as only have MIKEY protocol but could add extra protocols

View File

@ -65,6 +65,8 @@
#define TLS_PORT_SIP 5061
#define DEFAULT_SIP_PORT_RANGE "5060"
void proto_register_sip(void);
static dissector_handle_t sip_tcp_handle;
static gint sip_tap = -1;

View File

@ -32,6 +32,7 @@
* Doesn't do a detailed dissection of the lines of the message, just treat as text.
*/
void proto_register_sipfrag(void);
/* Initialize the protocol and registered fields. */
static int proto_sipfrag = -1;

View File

@ -47,6 +47,9 @@
#include "packet-ssl.h"
#include "packet-skinny.h"
void proto_register_skinny(void);
void proto_reg_handoff_skinny(void);
#define TCP_PORT_SKINNY 2000
#define SSL_PORT_SKINNY 2443 /* IANA assigned to PowerClient Central Storage Facility */

View File

@ -47,6 +47,9 @@
#include <epan/packet.h>
#include <epan/conversation.h>
void proto_register_skype(void);
void proto_reg_handoff_skype(void);
/* Things we may want to remember for a whole conversation */
typedef struct _skype_udp_conv_info_t {
guint32 global_src_ip;

View File

@ -35,6 +35,9 @@
#include <epan/packet.h>
#include <epan/to_str.h>
void proto_register_slimp3(void);
void proto_reg_handoff_slimp3(void);
static int proto_slimp3 = -1;
static int hf_slimp3_opcode = -1;
static int hf_slimp3_control = -1;

View File

@ -40,6 +40,8 @@
#include <epan/addr_resolv.h>
#include <epan/etypes.h>
void proto_register_sll(void);
void proto_reg_handoff_sll(void);
/*
* A DLT_LINUX_SLL fake link-layer header.
*/

View File

@ -39,6 +39,8 @@
#include <epan/expert.h>
/* General declarations */
void proto_register_slow_protocols(void);
void proto_reg_handoff_slow_protocols(void);
#define SLOW_PROTO_SUBTYPE 0

View File

@ -42,6 +42,9 @@
#include <epan/expert.h>
#include "packet-tcp.h"
void proto_register_slsk(void);
void proto_reg_handoff_slsk(void);
/* Initialize the protocol and registered fields */
static int proto_slsk = -1;

View File

@ -38,6 +38,9 @@
#include "packet-smb-browse.h"
#include "packet-dcerpc.h"
void proto_register_smb_browse(void);
void proto_reg_handoff_smb_browse(void);
static int proto_smb_browse = -1;
static int hf_command = -1;
static int hf_update_count = -1;

View File

@ -33,6 +33,8 @@
#include "packet-windows-common.h"
#include "packet-smb-common.h"
void proto_register_smb_logon(void);
static int proto_smb_logon = -1;
static int hf_command = -1;
static int hf_computer_name = -1;

View File

@ -37,6 +37,9 @@
#include "packet-smb-browse.h"
#include "packet-smb-pipe.h"
void proto_register_smb_mailslot(void);
void proto_reg_handoff_smb_mailslot(void);
static int proto_smb_msp = -1;
static int hf_opcode = -1;
static int hf_priority = -1;

View File

@ -50,6 +50,11 @@ XXX Fixme : shouldn't show [malformed frame] for long packets
#include "packet-dcerpc.h"
#include <epan/reassemble.h>
void proto_register_pipe_lanman(void);
void proto_register_pipe_dcerpc(void);
void proto_register_smb_pipe(void);
void proto_reg_handoff_smb_pipe(void);
static int proto_smb_pipe = -1;
static int hf_smb_pipe_function = -1;
static int hf_smb_pipe_priority = -1;

View File

@ -54,6 +54,9 @@
#include <wsutil/wsgcrypt.h>
#endif /* HAVE_LIBGCRYPT */
void proto_register_smb2(void);
void proto_reg_handoff_smb2(void);
static const char smb_header_label[] = "SMB2 Header";
static const char smb_transform_header_label[] = "SMB2 Transform Header";

View File

@ -38,6 +38,7 @@
* http://www.iana.org/assignments/websocket (last updated 2012-04-12)
*/
void proto_register_websocket(void);
void proto_reg_handoff_websocket(void);
static dissector_handle_t text_lines_handle;
@ -131,7 +132,7 @@ static dissector_table_t port_subdissector_table;
static heur_dissector_list_t heur_subdissector_list;
#define MAX_UNMASKED_LEN (1024 * 64)
tvbuff_t *
static tvbuff_t *
tvb_unmasked(tvbuff_t *tvb, const guint offset, guint payload_length, const guint8 *masking_key)
{

View File

@ -64,6 +64,9 @@ RWHOD(8) UNIX System Manager's Manual RWHOD(8)
*
*/
void proto_register_who(void);
void proto_reg_handoff_who(void);
static int proto_who = -1;
static int hf_who_vers = -1;
static int hf_who_type = -1;

View File

@ -30,6 +30,8 @@
#include "packet-ieee80211.h"
void proto_register_wifi_display(void);
static int proto_wifi_display = -1;
static int hf_wfd_subelem_id = -1;

View File

@ -30,6 +30,8 @@
#include "packet-ieee80211.h"
void proto_register_p2p(void);
enum {
P2P_ATTR_STATUS = 0,
P2P_ATTR_MINOR_REASON_CODE = 1,