of ansi_tcap code while in the neighbourhood.
svn path=/trunk/; revision=53530
guint8 *dst_str;
const char *buf = NULL;
- src_str = ep_address_to_str(src);
- dst_str = ep_address_to_str(dst);
+ src_str = address_to_str(wmem_packet_scope(), src);
+ dst_str = address_to_str(wmem_packet_scope(), dst);
/* Data from the TCAP dissector */
if ((!pinfo->fd->flags.visited)&&(p_private_tcap->TransactionID_str)){
/* Data from the TCAP dissector */
/* The hash string needs to contain src and dest to distiguish differnt flows */
- src_str = ep_address_to_str(src);
- dst_str = ep_address_to_str(dst);
+ src_str = address_to_str(wmem_packet_scope(), src);
+ dst_str = address_to_str(wmem_packet_scope(), dst);
/* Reverse order to invoke */
switch(ansi_map_response_matching_type){
case ANSI_MAP_TID_ONLY:
static void
save_invoke_data(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb _U_){
struct ansi_tcap_invokedata_t *ansi_tcap_saved_invokedata;
- address* src = &(pinfo->src);
- address* dst = &(pinfo->dst);
+ gchar *src, *dst;
char *buf;
+ src = address_to_str(wmem_packet_scope(), &(pinfo->src));
+ dst = address_to_str(wmem_packet_scope(), &(pinfo->dst));
+
if ((!pinfo->fd->flags.visited)&&(ansi_tcap_private.TransactionID_str)){
/* Only do this once XXX I hope its the right thing to do */
buf = wmem_strdup(wmem_packet_scope(), ansi_tcap_private.TransactionID_str);
break;
case 1:
- buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(src));
+ buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s",ansi_tcap_private.TransactionID_str,src);
break;
default:
- buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(src),ep_address_to_str(dst));
+ buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s%s",ansi_tcap_private.TransactionID_str,src,dst);
break;
}
static gboolean
find_saved_invokedata(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb _U_){
struct ansi_tcap_invokedata_t *ansi_tcap_saved_invokedata;
- address* src = &(pinfo->src);
- address* dst = &(pinfo->dst);
+ gchar *src, *dst;
char *buf;
if (!ansi_tcap_private.TransactionID_str) {
return FALSE;
}
+ src = address_to_str(wmem_packet_scope(), &(pinfo->src));
+ dst = address_to_str(wmem_packet_scope(), &(pinfo->dst));
+
/* The hash string needs to contain src and dest to distiguish differnt flows */
buf = (char *)wmem_alloc(wmem_packet_scope(), MAX_TID_STR_LEN);
buf[0] = '\0';
/* Reverse order to invoke */
- g_snprintf(buf, MAX_TID_STR_LEN, "%s%s%s",
- ansi_tcap_private.TransactionID_str, ep_address_to_str(dst),
- ep_address_to_str(src));
switch(ansi_tcap_response_matching_type){
case 0:
g_snprintf(buf,MAX_TID_STR_LEN,"%s",ansi_tcap_private.TransactionID_str);
break;
case 1:
- g_snprintf(buf,MAX_TID_STR_LEN,"%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(dst));
+ g_snprintf(buf,MAX_TID_STR_LEN,"%s%s",ansi_tcap_private.TransactionID_str,dst);
break;
default:
- g_snprintf(buf,MAX_TID_STR_LEN,"%s%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(dst),ep_address_to_str(src));
- break;
- }
+ g_snprintf(buf,MAX_TID_STR_LEN,"%s%s%s",ansi_tcap_private.TransactionID_str,dst,src);
+ break;
+ }
ansi_tcap_saved_invokedata = (struct ansi_tcap_invokedata_t *)g_hash_table_lookup(TransactionId_table, buf);
if(ansi_tcap_saved_invokedata){
static const gchar *gen_olc_key(guint16 lc_num, address *dst_addr, address *src_addr)
{
- return wmem_strdup_printf(wmem_packet_scope(), "%s/%s/%u", ep_address_to_str(dst_addr), ep_address_to_str(src_addr), lc_num);
+ return wmem_strdup_printf(wmem_packet_scope(), "%s/%s/%u",
+ address_to_str(wmem_packet_scope(), dst_addr),
+ address_to_str(wmem_packet_scope(), src_addr),
+ lc_num);
}
static void update_unicast_addr(unicast_addr_t *req_addr, unicast_addr_t *ack_addr)
nbap_debug4(" g_tree_insert(edch_flow_port_map) com_context_id %%u e_dch_macdflow_id %%u IP %%s Port %%u",
umts_fp_conversation_info->com_context_id,
e_dch_macdflow_id,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
/* Set address for collection of DDI entries */
nbap_debug4(" Insert in existing edch_flow_port_map com_context_id %%u e_dch_macdflow_id %%u IP %%s Port %%u",
umts_fp_conversation_info->com_context_id,
e_dch_macdflow_id,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
/* Must be same ADDRESS */
if(old_conversation){
nbap_debug3("Frame %%u E-DCH-FDD-Information-to-Modify: found old conv on IP %%s Port %%u",
actx->pinfo->fd->num,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
}else{
nbap_debug3("Frame %%u E-DCH-FDD-Information-to-Modify: Did not find old conv on IP %%s Port %%u",
actx->pinfo->fd->num,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
}
nbap_debug4("Frame %%u HSDSCH-MACdFlows-Information:hsdsch_macdflow_id %%u Look for conv on IP %%s Port %%u",
actx->pinfo->fd->num,
i,
- ep_address_to_str (&(nbap_hsdsch_channel_info[i].crnc_address)),
+ address_to_str (wmem_packet_scope(), &(nbap_hsdsch_channel_info[i].crnc_address)),
nbap_hsdsch_channel_info[i].crnc_port);
conversation = find_conversation(actx->pinfo->fd->num, &(nbap_hsdsch_channel_info[i].crnc_address), &null_addr,
PT_UDP,
if (nbap_hsdsch_channel_info[i].crnc_port != 0){
nbap_debug3(" hsdsch_macdflow_id %%u Look for conv on IP %%s Port %%u",
i,
- ep_address_to_str (&(nbap_hsdsch_channel_info[i].crnc_address)),
+ address_to_str (wmem_packet_scope(), &(nbap_hsdsch_channel_info[i].crnc_address)),
nbap_hsdsch_channel_info[i].crnc_port);
conversation = find_conversation(actx->pinfo->fd->num, &(nbap_hsdsch_channel_info[i].crnc_address), &null_addr,
PT_UDP,
guint8 *dst_str;
const char *buf = NULL;
- src_str = ep_address_to_str(src);
- dst_str = ep_address_to_str(dst);
+ src_str = address_to_str(wmem_packet_scope(), src);
+ dst_str = address_to_str(wmem_packet_scope(), dst);
/* Data from the TCAP dissector */
if ((!pinfo->fd->flags.visited)&&(p_private_tcap->TransactionID_str)){
/* Data from the TCAP dissector */
/* The hash string needs to contain src and dest to distiguish differnt flows */
- src_str = ep_address_to_str(src);
- dst_str = ep_address_to_str(dst);
+ src_str = address_to_str(wmem_packet_scope(), src);
+ dst_str = address_to_str(wmem_packet_scope(), dst);
/* Reverse order to invoke */
switch(ansi_map_response_matching_type){
case ANSI_MAP_TID_ONLY:
static void
save_invoke_data(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb _U_){
struct ansi_tcap_invokedata_t *ansi_tcap_saved_invokedata;
- address* src = &(pinfo->src);
- address* dst = &(pinfo->dst);
+ gchar *src, *dst;
char *buf;
+ src = address_to_str(wmem_packet_scope(), &(pinfo->src));
+ dst = address_to_str(wmem_packet_scope(), &(pinfo->dst));
+
if ((!pinfo->fd->flags.visited)&&(ansi_tcap_private.TransactionID_str)){
/* Only do this once XXX I hope its the right thing to do */
buf = wmem_strdup(wmem_packet_scope(), ansi_tcap_private.TransactionID_str);
break;
case 1:
- buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(src));
+ buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s",ansi_tcap_private.TransactionID_str,src);
break;
default:
- buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(src),ep_address_to_str(dst));
+ buf = wmem_strdup_printf(wmem_packet_scope(), "%s%s%s",ansi_tcap_private.TransactionID_str,src,dst);
break;
}
static gboolean
find_saved_invokedata(packet_info *pinfo, proto_tree *tree _U_, tvbuff_t *tvb _U_){
struct ansi_tcap_invokedata_t *ansi_tcap_saved_invokedata;
- address* src = &(pinfo->src);
- address* dst = &(pinfo->dst);
+ gchar *src, *dst;
char *buf;
if (!ansi_tcap_private.TransactionID_str) {
return FALSE;
}
+ src = address_to_str(wmem_packet_scope(), &(pinfo->src));
+ dst = address_to_str(wmem_packet_scope(), &(pinfo->dst));
+
/* The hash string needs to contain src and dest to distiguish differnt flows */
buf = (char *)wmem_alloc(wmem_packet_scope(), MAX_TID_STR_LEN);
buf[0] = '\0';
/* Reverse order to invoke */
- g_snprintf(buf, MAX_TID_STR_LEN, "%s%s%s",
- ansi_tcap_private.TransactionID_str, ep_address_to_str(dst),
- ep_address_to_str(src));
switch(ansi_tcap_response_matching_type){
case 0:
g_snprintf(buf,MAX_TID_STR_LEN,"%s",ansi_tcap_private.TransactionID_str);
break;
case 1:
- g_snprintf(buf,MAX_TID_STR_LEN,"%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(dst));
+ g_snprintf(buf,MAX_TID_STR_LEN,"%s%s",ansi_tcap_private.TransactionID_str,dst);
break;
default:
- g_snprintf(buf,MAX_TID_STR_LEN,"%s%s%s",ansi_tcap_private.TransactionID_str,ep_address_to_str(dst),ep_address_to_str(src));
- break;
- }
+ g_snprintf(buf,MAX_TID_STR_LEN,"%s%s%s",ansi_tcap_private.TransactionID_str,dst,src);
+ break;
+ }
ansi_tcap_saved_invokedata = (struct ansi_tcap_invokedata_t *)g_hash_table_lookup(TransactionId_table, buf);
if(ansi_tcap_saved_invokedata){
/*--- End of included file: packet-ansi_tcap-fn.c ---*/
-#line 352 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
+#line 353 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
NULL, HFILL }},
/*--- End of included file: packet-ansi_tcap-hfarr.c ---*/
-#line 488 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
+#line 489 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
};
/* Setup protocol subtree array */
&ett_ansi_tcap_T_paramSet,
/*--- End of included file: packet-ansi_tcap-ettarr.c ---*/
-#line 499 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
+#line 500 "../../asn1/ansi_tcap/packet-ansi_tcap-template.c"
};
static const enum_val_t ansi_tcap_response_matching_type_values[] = {
static const gchar *gen_olc_key(guint16 lc_num, address *dst_addr, address *src_addr)
{
- return wmem_strdup_printf(wmem_packet_scope(), "%s/%s/%u", ep_address_to_str(dst_addr), ep_address_to_str(src_addr), lc_num);
+ return wmem_strdup_printf(wmem_packet_scope(), "%s/%s/%u",
+ address_to_str(wmem_packet_scope(), dst_addr),
+ address_to_str(wmem_packet_scope(), src_addr),
+ lc_num);
}
static void update_unicast_addr(unicast_addr_t *req_addr, unicast_addr_t *ack_addr)
static int hf_h245_encryptedAlphanumeric = -1; /* EncryptedAlphanumeric */
/*--- End of included file: packet-h245-hf.c ---*/
-#line 388 "../../asn1/h245/packet-h245-template.c"
+#line 391 "../../asn1/h245/packet-h245-template.c"
/* Initialize the subtree pointers */
static int ett_h245 = -1;
static gint ett_h245_MobileMultilinkReconfigurationIndication = -1;
/*--- End of included file: packet-h245-ett.c ---*/
-#line 393 "../../asn1/h245/packet-h245-template.c"
+#line 396 "../../asn1/h245/packet-h245-template.c"
/* Forward declarations */
static int dissect_h245_MultimediaSystemControlMessage(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);
/*--- End of included file: packet-h245-fn.c ---*/
-#line 402 "../../asn1/h245/packet-h245-template.c"
+#line 405 "../../asn1/h245/packet-h245-template.c"
static void
dissect_h245(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
NULL, HFILL }},
/*--- End of included file: packet-h245-hfarr.c ---*/
-#line 483 "../../asn1/h245/packet-h245-template.c"
+#line 486 "../../asn1/h245/packet-h245-template.c"
};
/* List of subtrees */
&ett_h245_MobileMultilinkReconfigurationIndication,
/*--- End of included file: packet-h245-ettarr.c ---*/
-#line 490 "../../asn1/h245/packet-h245-template.c"
+#line 493 "../../asn1/h245/packet-h245-template.c"
};
module_t *h245_module;
if(old_conversation){
nbap_debug3("Frame %u E-DCH-FDD-Information-to-Modify: found old conv on IP %s Port %u",
actx->pinfo->fd->num,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
}else{
nbap_debug3("Frame %u E-DCH-FDD-Information-to-Modify: Did not find old conv on IP %s Port %u",
actx->pinfo->fd->num,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
}
nbap_debug4("Frame %u HSDSCH-MACdFlows-Information:hsdsch_macdflow_id %u Look for conv on IP %s Port %u",
actx->pinfo->fd->num,
i,
- ep_address_to_str (&(nbap_hsdsch_channel_info[i].crnc_address)),
+ address_to_str (wmem_packet_scope(), &(nbap_hsdsch_channel_info[i].crnc_address)),
nbap_hsdsch_channel_info[i].crnc_port);
conversation = find_conversation(actx->pinfo->fd->num, &(nbap_hsdsch_channel_info[i].crnc_address), &null_addr,
PT_UDP,
if (nbap_hsdsch_channel_info[i].crnc_port != 0){
nbap_debug3(" hsdsch_macdflow_id %u Look for conv on IP %s Port %u",
i,
- ep_address_to_str (&(nbap_hsdsch_channel_info[i].crnc_address)),
+ address_to_str (wmem_packet_scope(), &(nbap_hsdsch_channel_info[i].crnc_address)),
nbap_hsdsch_channel_info[i].crnc_port);
conversation = find_conversation(actx->pinfo->fd->num, &(nbap_hsdsch_channel_info[i].crnc_address), &null_addr,
PT_UDP,
nbap_debug4(" g_tree_insert(edch_flow_port_map) com_context_id %u e_dch_macdflow_id %u IP %s Port %u",
umts_fp_conversation_info->com_context_id,
e_dch_macdflow_id,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
/* Set address for collection of DDI entries */
nbap_debug4(" Insert in existing edch_flow_port_map com_context_id %u e_dch_macdflow_id %u IP %s Port %u",
umts_fp_conversation_info->com_context_id,
e_dch_macdflow_id,
- ep_address_to_str(&dst_addr),
+ address_to_str(wmem_packet_scope(), &dst_addr),
BindingID_port);
/* Must be same ADDRESS */