#include "packet-tcp.h"
+void proto_register_bittorrent(void);
+void proto_reg_handoff_bittorrent(void);
+
/*
* See
*
#include <epan/conversation.h>
#include <epan/prefs.h>
+void proto_register_bt_utp(void);
+void proto_reg_handoff_bt_utp(void);
+
enum {
ST_DATA = 0,
ST_FIN = 1,
static gint ett_bt_utp = -1;
static gint ett_bt_utp_extension = -1;
-void proto_reg_handoff_bt_utp(void);
-
static gint
get_utp_version(tvbuff_t *tvb) {
guint8 v0_flags, v0_ext;
#include <epan/prefs.h>
#include "packet-tcp.h"
+void proto_register_bzr(void);
+void proto_reg_handoff_bzr(void);
+
static int proto_bzr = -1;
static gint ett_bzr = -1;
#include <epan/expert.h>
#include <epan/prefs.h>
+void proto_register_ccsds(void);
+void proto_reg_handoff_ccsds(void);
/*
* See
#include "packet-dcerpc-nt.h"
#include "packet-windows-common.h"
+void proto_register_dcerpc_messenger(void);
+void proto_reg_handoff_dcerpc_messenger(void);
static int proto_dcerpc_messenger = -1;
static int hf_messenger_opnum = -1;
{ 0, NULL }
};
static int misc_dissect_element_winreg_Data_string(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
-static int misc_dissect_element_winreg_Data_string(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
static int misc_dissect_element_winreg_Data_binary(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
static int misc_dissect_element_winreg_Data_value(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
-static int misc_dissect_element_winreg_Data_value(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
static int misc_dissect_element_winreg_Data_string_array(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
static int misc_dissect_element_winreg_Data_data(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *tree _U_, dcerpc_info* di _U_, guint8 *drep _U_);
static int
#include "packet-ip.h"
#include "packet-ipv6.h"
+void proto_register_enc(void);
+void proto_reg_handoff_enc(void);
+
#ifndef offsetof
/* Can't trust stddef.h to be there for us */
# define offsetof(type, member) ((size_t)(&((type *)0)->member))
static gint
gbl_symbols_compare_vs(gconstpointer a, gconstpointer b)
{
- value_string *vsa = (value_string *)a;
- value_string *vsb = (value_string *)b;
+ const value_string *vsa = (const value_string *)a;
+ const value_string *vsb = (const value_string *)b;
if(vsa->value > vsb->value)
return 1;
#include <epan/addr_resolv.h>
+void proto_register_fddi(void);
+void proto_reg_handoff_fddi(void);
+
static int proto_fddi = -1;
static int hf_fddi_fc = -1;
static int hf_fddi_fc_clf = -1;
#include <epan/wmem/wmem.h>
#include <epan/expert.h>
-#define FINGER_PORT 79 /* This is the registered IANA port */
-
+void proto_register_finger(void);
void proto_reg_handoff_finger(void);
+#define FINGER_PORT 79 /* This is the registered IANA port */
+
static int proto_finger = -1;
static int hf_finger_query = -1;
static int hf_finger_response = -1;
switch (fix_fields[i].type) {
case 1: /* strings */
proto_tree_add_string_format_value(fix_tree, fix_fields[i].hf_id, tvb, field_offset, tag->field_len, value,
- "%s (%s)", value, str_to_str(value, (string_string *)fix_fields[i].table, "unknown %s"));
+ "%s (%s)", value, str_to_str(value, (const string_string *)fix_fields[i].table, "unknown %s"));
break;
case 2: /* char */
proto_tree_add_string_format_value(fix_tree, fix_fields[i].hf_id, tvb, field_offset, tag->field_len, value,
- "%s (%s)", value, val_to_str(*value, (value_string *)fix_fields[i].table, "unknown %d"));
+ "%s (%s)", value, val_to_str(*value, (const value_string *)fix_fields[i].table, "unknown %d"));
break;
default:
proto_tree_add_string_format_value(fix_tree, fix_fields[i].hf_id, tvb, field_offset, tag->field_len, value,
- "%s (%s)", value, val_to_str(atoi(value), (value_string *)fix_fields[i].table, "unknown %d"));
+ "%s (%s)", value, val_to_str(atoi(value), (const value_string *)fix_fields[i].table, "unknown %d"));
break;
}
}
#include <epan/wmem/wmem.h>
#include <epan/etypes.h>
+void proto_register_fw1(void);
+void proto_reg_handoff_fw1(void);
+
/* Place FW1 summary in proto tree */
static gboolean fw1_summary_in_tree = TRUE;
static gboolean fw1_with_uuid = FALSE;
proto_reg_handoff_fw1(void)
{
ethertype_handle = find_dissector("ethertype");
-}
\ No newline at end of file
+}
#include <epan/dissectors/packet-tcp.h>
+void proto_register_gadu_gadu(void);
+void proto_reg_handoff_gadu_gadu(void);
+
#define TCP_PORT_GADU_GADU 8074 /* assigned by IANA */
/* desegmentation of Gadu-Gadu over TCP */
#include <epan/prefs.h>
#include "packet-tcp.h"
+void proto_register_git(void);
+void proto_reg_handoff_git(void);
+
static dissector_handle_t git_handle;
static int proto_git = -1;
#include <epan/packet.h>
#include <epan/expert.h>
+void proto_register_glbp(void);
+void proto_reg_handoff_glbp(void);
+
static int proto_glbp = -1;
/* glbp header? */
static gint hf_glbp_version = -1;
#include "packet-rpc.h"
#include "packet-gluster.h"
+void proto_register_gluster_gd_mgmt(void);
+void proto_reg_handoff_gluster_gd_mgmt(void);
+
/* Initialize the protocol and registered fields */
static gint proto_glusterd = -1;
static gint proto_gd_mgmt = -1;
#include "packet-ieee8023.h"
+void proto_register_gmhdr(void);
+void proto_reg_handoff_gmhdr(void);
+
#define GMHDR_FTYPE_PKTSIZE 1
#define GMHDR_FTYPE_SRCPORT_G 2
#define GMHDR_FTYPE_TIMESTAMP_LOCAL 3
#include "packet-x509af.h"
#include "packet-x509if.h"
+void proto_register_gpef(void);
+void proto_reg_handoff_gpef(void);
+
static int proto_gpef = -1;
static int hf_gpef_keycount = -1;
static int hf_gpef_efskey = -1;
#include <epan/packet.h>
#include <epan/llcsaps.h>
+void proto_register_gvrp(void);
+void proto_reg_handoff_gvrp(void);
+
/* Initialize the protocol and registered fields */
static int proto_gvrp = -1;
static int hf_gvrp_proto_id = -1;
#include <epan/packet.h>
+void proto_register_hyperscsi(void);
+void proto_reg_handoff_hyperscsi(void);
+
static int proto_hyperscsi;
static int hf_hs_cmd = -1;
register_dissector("hyperscsi", dissect_hyperscsi, proto_hyperscsi);
}
+/* XXX <epan/etypes.h> */
#define ETHERTYPE_HYPERSCSI 0x889A
void
#include "packet-i2c.h"
#include "packet-hdcp.h"
+void proto_register_i2c(void);
+void proto_reg_handoff_i2c(void);
+
static int proto_i2c = -1;
static int hf_i2c_bus = -1;
#include <epan/wmem/wmem.h>
#include <epan/tap.h>
+void proto_register_icmp(void);
+void proto_reg_handoff_icmp(void);
+
static int icmp_tap = -1;
/* Conversation related data */
#include "packet-6lowpan.h"
#include "packet-ip.h"
+void proto_register_icmpv6(void);
+void proto_reg_handoff_icmpv6(void);
+
/*
* The information used comes from:
* RFC 1885/2463/4443: Internet Control Message Protocol (ICMPv6) for the Internet Protocol Version 6 (IPv6) Specification
#include <epan/packet.h>
#include <epan/addr_resolv.h>
+void proto_register_icp(void);
+void proto_reg_handoff_icp(void);
+
static int proto_icp=-1;
static int hf_icp_length=-1;
static int hf_icp_opcode=-1;
#include "packet-idp.h"
#include <epan/etypes.h>
+void proto_register_idp(void);
+void proto_reg_handoff_idp(void);
+
static int proto_idp = -1;
static int hf_idp_checksum = -1;
static int hf_idp_len = -1;
#include "packet-tcp.h"
#include "packet-fc.h"
+void proto_register_ifcp(void);
+void proto_reg_handoff_ifcp(void);
+
#define iFCP_ENCAP_HEADER_LEN 28
#define iFCP_MIN_HEADER_LEN 16 /* upto frame len field */
#include <epan/to_str.h>
#include <epan/ipproto.h>
+void proto_register_igrp(void);
+void proto_reg_handoff_igrp(void);
+
#define IGRP_HEADER_LENGTH 12
#define IGRP_ENTRY_LENGTH 14
#include <epan/packet.h>
+void proto_register_gif(void);
+void proto_reg_handoff_gif(void);
+
/* General-purpose debug logger.
* Requires double parentheses because of variable arguments of printf().
*
#include <epan/packet.h>
+void proto_register_interlink(void);
+void proto_reg_handoff_interlink(void);
/*
* No public information available.
#include <epan/geoip_db.h>
#endif /* HAVE_GEOIP */
+void proto_register_ip(void);
+void proto_reg_handoff_ip(void);
static int ip_tap = -1;
#include <epan/packet.h>
#include <epan/wmem/wmem.h>
+void proto_register_ipars(void);
+
static int proto_ipars = -1;
static guint8 ipars_eomtype = G_MAXUINT8;
static gint ett_ipars = -1;
#include "packet-ipfc.h"
#include "packet-llc.h"
+void proto_register_ipfc(void);
+void proto_reg_handoff_ipfc(void);
+
/* Initialize the protocol and registered fields */
static int proto_ipfc = -1;
static int hf_ipfc_network_da = -1;
#include <glib.h>
#include <epan/packet.h>
+void proto_register_ipmi_session(void);
+void proto_reg_handoff_ipmi_session(void);
+
#define RMCP_CLASS_IPMI 0x07
static int proto_ipmi_session = -1;
#include "packet-ipmi.h"
+void proto_register_ipmi(void);
+
/*
* See the IPMI specifications at
*
/* Register IPMB protocol.
*/
-void
-proto_reg_handoff_ipmi(void)
-{
-}
void
proto_register_ipmi(void)
#include <epan/to_str.h>
#include "packet-http.h"
+void proto_register_ipp(void);
+void proto_reg_handoff_ipp(void);
+
static int proto_ipp = -1;
static int hf_ipp_timestamp = -1;
#include <wsutil/wsgcrypt.h>
#endif /* HAVE_LIBGCRYPT */
+void proto_register_ipsec(void);
+void proto_reg_handoff_ipsec(void);
static int proto_ah = -1;
static int hf_ah_spi = -1;
#include <epan/expert.h>
#include <epan/wmem/wmem.h>
+void proto_register_iso7816(void);
+void proto_reg_handoff_iso7816(void);
+
static int proto_iso7816 = -1;
static int proto_iso7816_atr = -1;
#include <epan/packet.h>
#include <epan/prefs.h>
+void proto_register_jmirror(void);
+void proto_reg_handoff_jmirror(void);
+
#define MIRROR_HDR_SZ 8
#define MIRROR_ID_SZ 4
#define SESSION_ID_SZ 4
static guint global_jmirror_udp_port = DEF_JMIRROR_UDP_PORT;
-/* Forward declaration */
-void proto_reg_handoff_jmirror(void);
-
/* Routine to return the dissector handle based on heuristic packet inspection */
static dissector_handle_t
get_heuristic_handle(tvbuff_t *tvb)
#include <epan/wmem/wmem.h>
#include <epan/conversation.h>
+void proto_register_kingfisher(void);
+void proto_reg_handoff_kingfisher(void);
+
#define SUPPORT_KINGFISHER_SERIES_2
#define TCP_PORT_KINGFISHER 4058
#include "config.h"
-
-
#include "packet-rpc.h"
#include "packet-nfs.h"
#include "packet-klm.h"
+void proto_register_klm(void);
+void proto_reg_handoff_klm(void);
+
static int proto_klm = -1;
static int hf_klm_procedure_v1 = -1;
static int hf_klm_exclusive = -1;
#include "packet-ber.h"
#include <epan/prefs.h>
+void proto_register_kpasswd(void);
+void proto_reg_handoff_kpasswd(void);
+
/* Desegment Kerberos over TCP messages */
static gboolean kpasswd_desegment = TRUE;
#include <wiretap/wtap.h>
#include <epan/strutil.h>
+void proto_register_l1_events(void);
+void proto_reg_handoff_l1_events(void);
/*
* dissector for line-based text messages from layer 1
#include <epan/packet.h>
+void proto_register_lanforge(void);
+void proto_reg_handoff_lanforge(void);
+
/* magic num used for heuristic */
#define LANFORGE_MAGIC 0x1a2b3c4d
#include <epan/reassemble.h>
#include <epan/wmem/wmem.h>
+void proto_register_lapsat(void);
+void proto_reg_handoff_lapsat(void);
static int proto_lapsat = -1;
#include <epan/expert.h>
#include <epan/wmem/wmem.h>
+void proto_register_lisp(void);
+void proto_reg_handoff_lisp(void);
+
#define INET_ADDRLEN 4
#define INET6_ADDRLEN 16
#include <epan/addr_resolv.h>
#include "packet-lldp.h"
+void proto_register_lldp(void);
+void proto_reg_handoff_lldp(void);
+
/* Sub Dissector Tables */
static dissector_table_t oui_unique_code_table;
#include <epan/expert.h>
#include <epan/dissectors/packet-tcp.h>
+void proto_register_llrp(void);
+void proto_reg_handoff_llrp(void);
+
#define LLRP_PORT 5084
/* Initialize the protocol and registered fields */
#include <epan/packet.h>
#include <epan/etypes.h>
+void proto_register_loop(void);
+void proto_reg_handoff_loop(void);
+
static int proto_loop = -1;
static int hf_loop_skipcount = -1;
static int hf_loop_function = -1;
#include "packet-mac-lte.h"
#include "packet-rlc-lte.h"
+void proto_register_mac_lte(void);
+void proto_reg_handoff_mac_lte(void);
/* Described in:
* 3GPP TS 36.321 Evolved Universal Terrestrial Radio Access (E-UTRA)
#include <epan/expert.h>
#include "packet-tcp.h"
+void proto_register_mongo(void);
+void proto_reg_handoff_mongo(void);
+
/* This is not IANA assigned nor registered */
#define TCP_PORT_MONGO 27017
};
#endif
-void proto_reg_handoff_mongo(void);
-
-
static int proto_mongo = -1;
static int hf_mongo_message_length = -1;
static int hf_mongo_request_id = -1;
#include "packet-mount.h"
#include "packet-nfs.h"
-
+void proto_register_mount(void);
+void proto_reg_handoff_mount(void);
static int proto_mount = -1;
static int proto_sgi_mount = -1;
#include "packet-mpeg-descriptor.h"
+void proto_register_mpeg_ca(void);
+void proto_reg_handoff_mpeg_ca(void);
+
static int proto_mpeg_ca = -1;
static int hf_mpeg_ca_reserved = -1;
static int hf_mpeg_ca_version_number = -1;
#include <epan/packet.h>
#include <epan/strutil.h>
+void proto_register_msnms(void);
+void proto_reg_handoff_msnms(void);
+
/*
* The now-expired Internet-Draft for the MSN Messenger 1.0 protocol
* can, as of the time of the writing of this comment, be found at:
#include "packet-tcp.h"
#include "packet-udp.h"
-extern void udp_hash_add(guint16 proto,
- void (*dissect)(const guchar *, int, frame_data *, proto_tree *));
+void proto_register_msproxy(void);
+void proto_reg_handoff_msproxy(void);
static int proto_msproxy = -1;
#include <epan/ipproto.h>
#include <wiretap/nettl.h>
+void proto_register_nettl(void);
+void proto_reg_handoff_nettl(void);
+
/* Initialize the protocol and registered fields */
static int proto_nettl = -1;
#include <epan/packet.h>
#include <epan/strutil.h>
+void proto_register_nntp(void);
+void proto_reg_handoff_nntp(void);
+
static int proto_nntp = -1;
static int hf_nntp_response = -1;
static int hf_nntp_request = -1;
#include <epan/prefs.h>
#include <epan/expert.h>
+void proto_register_olsr(void);
+void proto_reg_handoff_olsr(void);
+
#define UDP_PORT_OLSR 698
#define HELLO 1
#define TC 2
#include <epan/packet.h>
#include <epan/ptvcursor.h>
+void proto_register_omapi(void);
+void proto_reg_handoff_omapi(void);
+
static int proto_omapi = -1;
static int hf_omapi_version = -1;
static int hf_omapi_hlength = -1;
#include "packet-esis.h"
#include "packet-tpkt.h"
+void proto_reg_handoff_osi(void);
+void proto_register_osi(void);
+
static int proto_osi = -1;
static dissector_handle_t osi_handle;
#include "packet-tcp.h"
+void proto_register_ouch(void);
+void proto_reg_handoff_ouch(void);
static const value_string pkt_type_val[] = {
{ 'O', "Enter Order" },
#include <string.h>
+void proto_reg_handoff_packetbb(void);
+void proto_register_packetbb(void);
+
#define PACKET_HEADER_HASSEQNR 0x08
#define PACKET_HEADER_HASTLV 0x04
#include <epan/packet.h>
#include <wiretap/wtap.h>
+void proto_register_packetlogger(void);
+void proto_reg_handoff_packetlogger(void);
+
#define PNAME "PacketLogger"
#define PSNAME "PKTLOG"
#define PFNAME "packetlogger"
#include "packet-tcp.h"
+void proto_register_paltalk(void);
+void proto_reg_handoff_paltalk(void);
+
#define INET_IPV4_ADDRESS_FROM_BYTES(a,b,c,d) g_htonl(((a)<<24) | ((b)<<16) | ((c)<<8) | (d)) /* *network* order */
#define PALTALK_SERVERS_ADDRESS INET_IPV4_ADDRESS_FROM_BYTES(199,106,0,0) /* 199.106.0.0 in *network* order */
#include <epan/expert.h>
#include "packet-tcp.h"
+void proto_register_pcep(void);
+void proto_reg_handoff_pcep(void);
+
/*differents types of objects*/
#define PCEP_OPEN_OBJ 1
#define PCEP_RP_OBJ 2
/*Register the protocol with wireshark*/
void
-proto_register_pcep(void) {
-
+proto_register_pcep(void)
+{
static hf_register_info pcepf_info[] = {
/* Message type number */
#include <epan/expert.h>
#include "packet-tcp.h"
+void proto_register_pcp(void);
+void proto_reg_handoff_pcp(void);
+
#define PCP_PORT 44321
#define PCP_HEADER_LEN 12
#include "packet-rlc-lte.h"
#include "packet-pdcp-lte.h"
+void proto_register_pdcp(void);
+void proto_reg_handoff_pdcp_lte(void);
+
/* Described in:
* 3GPP TS 36.323 Evolved Universal Terrestrial Radio Access (E-UTRA)
* Packet Data Convergence Protocol (PDCP) specification v11.0.0
#include <epan/packet.h>
#include <wiretap/wtap.h>
+void proto_register_peekremote(void);
+void proto_reg_handoff_peekremote(void);
+
static int proto_peekremote = -1;
static gint hf_peekremote_unknown1 = -1;
static gint hf_peekremote_unknown2 = -1;
#include <epan/wmem/wmem.h>
#include <epan/ptvcursor.h>
+void proto_register_pgm(void);
+void proto_reg_handoff_pgm(void);
+
/*
* Flag to control whether to check the PGM checksum.
*/
static gboolean pgm_check_checksum = TRUE;
-void proto_reg_handoff_pgm(void);
-
/* constants for hdr types */
#define PGM_SPM_PCKT 0x00
#define PGM_ODATA_PCKT 0x04
#include <epan/wmem/wmem.h>
#include "packet-pim.h"
+void proto_register_pim(void);
+void proto_reg_handoff_pim(void);
+
#define PIM_TYPE(x) ((x) & 0x0f)
#define PIM_VER(x) (((x) & 0xf0) >> 4)
#include "packet-ntlmssp.h"
#include "packet-smb2.h"
+void proto_register_smb(void);
+void proto_reg_handoff_smb(void);
+
/*
* Various specifications and documents about SMB can be found in
*
#include "packet-tcp.h"
+void proto_register_ucp(void);
+void proto_reg_handoff_ucp(void);
+
/* Tap Record */
typedef struct _ucp_tap_rec_t {
guint message_type; /* 0 = Operation; 1 = Result */
#include "packet-usb.h"
void proto_register_usb_vid(void);
+void proto_reg_handoff_usb_vid(void);
/* References are to sections in USB Video Class specifications -
* specifically V1.5, but versions have tended to keep
#define USB_SETUP_GET_RES_ALL 0x94 /* UVC 1.5 */
#define USB_SETUP_GET_DEF_ALL 0x97 /* UVC 1.5 */
-void proto_reg_handoff_usb_vid(void);
-void proto_reg_handoff_usb_vid(void);
-
/* protocols and header fields */
static int proto_usb_vid = -1;
#include <epan/tvbuff.h>
+#include "dwarf.h"
+
gint
dissect_uleb128(tvbuff_t *tvb, gint offset, guint64 *value)
{
in a header file. If not, a header file is not needed at all. */
#include "packet-wimaxmacphy.h"
-/* Forward declaration we need below */
-void proto_reg_handoff_wimaxmacphy(void);
-
/* Initialize the protocol and registered fields */
static int proto_wimaxmacphy = -1;
guint16 dir;
};
-const sctp_allassocs_info_t* sctp_stat_get_info(void);
-
void assoc_analyse(sctp_assoc_info_t* assoc);
void set_child(struct sctp_udata *child, struct sctp_analyse *parent);
void sctp_set_assoc_filter(void);
-#endif
\ No newline at end of file
+#endif