#define PSNAME "ANSI MAP"
#define PFNAME "ansi_map"
+
+void proto_register_ansi_map(void);
+void proto_reg_handoff_ansi_map(void);
+
/* Preference settings default */
#define MAX_SSN 254
static range_t *global_ssn_range;
guint8 *dst_str;
char *buf;
- buf=ep_alloc(1024);
+ buf=(char *)ep_alloc(1024);
/* Data from the TCAP dissector */
if (actx->pinfo->private_data != NULL){
static gboolean display_oid = TRUE;
static gboolean snmp_var_in_tree = TRUE;
+void proto_register_snmp(void);
+void proto_reg_handoff_snmp(void);
+void proto_register_smux(void);
+void proto_reg_handoff_smux(void);
+
static gboolean snmp_usm_auth_md5(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
static gboolean snmp_usm_auth_sha1(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
proto_tree_add_ether(pt_name,k->hfid,tvb,name_offset,buf_len, buf);
break;
case OID_KEY_TYPE_IPADDR: {
- guint32* ipv4_p = (void*)buf;
+ guint32* ipv4_p = (guint32*)buf;
proto_tree_add_ipv4(pt_name,k->hfid,tvb,name_offset,buf_len, *ipv4_p);
}
break;
return clear_tvb;
on_gcry_error:
- *error = (void*)gpg_strerror(err);
+ *error = (const gchar *)gpg_strerror(err);
if (hd) gcry_cipher_close(hd);
return NULL;
#else
return clear_tvb;
on_gcry_error:
- *error = (void*)gpg_strerror(err);
+ *error = (const gchar *)gpg_strerror(err);
if (hd) gcry_cipher_close(hd);
return NULL;
}
#endif
}
-gboolean
+static gboolean
check_ScopedPdu(tvbuff_t* tvb)
{
int offset;
#define PSNAME "ANSI MAP"
#define PFNAME "ansi_map"
+
+void proto_register_ansi_map(void);
+void proto_reg_handoff_ansi_map(void);
+
/* Preference settings default */
#define MAX_SSN 254
static range_t *global_ssn_range;
static int hf_ansi_map_qualificationRequest2Res = -1; /* QualificationRequest2Res */
/*--- End of included file: packet-ansi_map-hf.c ---*/
-#line 321 "../../asn1/ansi_map/packet-ansi_map-template.c"
+#line 325 "../../asn1/ansi_map/packet-ansi_map-template.c"
/* Initialize the subtree pointers */
static gint ett_ansi_map = -1;
static gint ett_ansi_map_ReturnData = -1;
/*--- End of included file: packet-ansi_map-ett.c ---*/
-#line 353 "../../asn1/ansi_map/packet-ansi_map-template.c"
+#line 357 "../../asn1/ansi_map/packet-ansi_map-template.c"
/* Global variables */
static dissector_table_t is637_tele_id_dissector_table; /* IS-637 Teleservice ID */
/*--- End of included file: packet-ansi_map-fn.c ---*/
-#line 3584 "../../asn1/ansi_map/packet-ansi_map-template.c"
+#line 3588 "../../asn1/ansi_map/packet-ansi_map-template.c"
/*
* 6.5.2.dk N.S0013-0 v 1.0,X.S0004-550-E v1.0 2.301
guint8 *dst_str;
char *buf;
- buf=ep_alloc(1024);
+ buf=(char *)ep_alloc(1024);
/* Data from the TCAP dissector */
if (actx->pinfo->private_data != NULL){
NULL, HFILL }},
/*--- End of included file: packet-ansi_map-hfarr.c ---*/
-#line 5237 "../../asn1/ansi_map/packet-ansi_map-template.c"
+#line 5241 "../../asn1/ansi_map/packet-ansi_map-template.c"
};
/* List of subtrees */
&ett_ansi_map_ReturnData,
/*--- End of included file: packet-ansi_map-ettarr.c ---*/
-#line 5270 "../../asn1/ansi_map/packet-ansi_map-template.c"
+#line 5274 "../../asn1/ansi_map/packet-ansi_map-template.c"
};
static const enum_val_t ansi_map_response_matching_type_values[] = {
static gboolean display_oid = TRUE;
static gboolean snmp_var_in_tree = TRUE;
+void proto_register_snmp(void);
+void proto_reg_handoff_snmp(void);
+void proto_register_smux(void);
+void proto_reg_handoff_smux(void);
+
static gboolean snmp_usm_auth_md5(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
static gboolean snmp_usm_auth_sha1(snmp_usm_params_t* p, guint8**, guint*, gchar const**);
static int hf_snmp_operation = -1; /* T_operation */
/*--- End of included file: packet-snmp-hf.c ---*/
-#line 232 "../../asn1/snmp/packet-snmp-template.c"
+#line 237 "../../asn1/snmp/packet-snmp-template.c"
static int hf_smux_version = -1;
static int hf_smux_pdutype = -1;
static gint ett_snmp_RReqPDU_U = -1;
/*--- End of included file: packet-snmp-ett.c ---*/
-#line 251 "../../asn1/snmp/packet-snmp-template.c"
+#line 256 "../../asn1/snmp/packet-snmp-template.c"
static const true_false_string auth_flags = {
"OK",
proto_tree_add_ether(pt_name,k->hfid,tvb,name_offset,buf_len, buf);
break;
case OID_KEY_TYPE_IPADDR: {
- guint32* ipv4_p = (void*)buf;
+ guint32* ipv4_p = (guint32*)buf;
proto_tree_add_ipv4(pt_name,k->hfid,tvb,name_offset,buf_len, *ipv4_p);
}
break;
return clear_tvb;
on_gcry_error:
- *error = (void*)gpg_strerror(err);
+ *error = (const gchar *)gpg_strerror(err);
if (hd) gcry_cipher_close(hd);
return NULL;
#else
return clear_tvb;
on_gcry_error:
- *error = (void*)gpg_strerror(err);
+ *error = (const gchar *)gpg_strerror(err);
if (hd) gcry_cipher_close(hd);
return NULL;
}
#endif
}
-gboolean
+static gboolean
check_ScopedPdu(tvbuff_t* tvb)
{
int offset;
/*--- End of included file: packet-snmp-fn.c ---*/
-#line 1631 "../../asn1/snmp/packet-snmp-template.c"
+#line 1636 "../../asn1/snmp/packet-snmp-template.c"
guint
NULL, HFILL }},
/*--- End of included file: packet-snmp-hfarr.c ---*/
-#line 2281 "../../asn1/snmp/packet-snmp-template.c"
+#line 2286 "../../asn1/snmp/packet-snmp-template.c"
};
/* List of subtrees */
&ett_snmp_RReqPDU_U,
/*--- End of included file: packet-snmp-ettarr.c ---*/
-#line 2297 "../../asn1/snmp/packet-snmp-template.c"
+#line 2302 "../../asn1/snmp/packet-snmp-template.c"
};
module_t *snmp_module;
#include <epan/conversation.h>
#include <epan/tap.h>
+void proto_register_udp(void);
+void proto_reg_handoff_udp(void);
+
static int udp_tap = -1;
static int udp_follow_tap = -1;
if (((ip_proto == IP_PROTO_UDP) && (udp_check_checksum)) ||
((ip_proto == IP_PROTO_UDPLITE) && (udplite_check_checksum))) {
/* Set up the fields of the pseudo-header. */
- cksum_vec[0].ptr = (guint8 *)pinfo->src.data;
+ cksum_vec[0].ptr = (const guint8 *)pinfo->src.data;
cksum_vec[0].len = pinfo->src.len;
- cksum_vec[1].ptr = (guint8 *)pinfo->dst.data;
+ cksum_vec[1].ptr = (const guint8 *)pinfo->dst.data;
cksum_vec[1].len = pinfo->dst.len;
cksum_vec[2].ptr = (const guint8 *)&phdr;
switch (pinfo->src.type) {
<LOADING>{xmlpi_start} BEGIN LOADING_XMLPI;
<LOADING_XMLPI>{whitespace} ;
<LOADING_XMLPI>{entityname} {
- xmlpi = g_malloc(sizeof(wimaxasncp_dict_xmlpi_t));
+ xmlpi = g_new(wimaxasncp_dict_xmlpi_t,1);
xmlpi->name = g_strdup(yytext);
xmlpi->key = NULL;
xmlpi->value = NULL;
<LOADING>{start_entity} BEGIN ENTITY;
<ENTITY>{entityname} {
- entity_t *e = g_malloc(sizeof(entity_t));
+ entity_t *e = g_new(entity_t,1);
D(("ENTITY: %s\n",yytext));
e->name = g_strdup(yytext);
e->next = ents.next;
<IN_DICT>{tlv_start} {
D(("tlv_start\n"));
- tlv = g_malloc(sizeof(wimaxasncp_dict_tlv_t));
+ tlv = g_new(wimaxasncp_dict_tlv_t,1);
tlv->type = 0;
tlv->name = NULL;
tlv->description = NULL;
<IN_TLV>{enum_start} {
D(("enum_start\n"));
- enumitem = g_malloc(sizeof(wimaxasncp_dict_enum_t));
+ enumitem = g_new(wimaxasncp_dict_enum_t,1);
enumitem->name = NULL;
enumitem->code = 0;
enumitem->next = NULL;
static void append_to_buffer(const gchar *txt, int len) {
if (strbuf == NULL) {
- read_ptr = write_ptr = strbuf = g_malloc(size_strbuf);
+ read_ptr = write_ptr = strbuf = (gchar *)g_malloc(size_strbuf);
}
if ( (len_strbuf + len + 1) >= size_strbuf ) {
- read_ptr = strbuf = g_realloc(strbuf,size_strbuf *= 2);
+ read_ptr = strbuf = (gchar *)g_realloc(strbuf,size_strbuf *= 2);
}
write_ptr = strbuf + len_strbuf;
wimaxasncp_dict_free(dict);
}
- dict = g_malloc(sizeof(wimaxasncp_dict_t));
+ dict = g_new(wimaxasncp_dict_t,1);
dict->tlvs = NULL;
dict->xmlpis = NULL;
in_checksum (void *buf, guint32 count)
{
guint32 sum = 0;
- guint16 *addr = buf;
+ guint16 *addr = (guint16 *)buf;
while (count > 1) {
/* This is the inner loop */