aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/voip_calls.c
diff options
context:
space:
mode:
authorLuis Ontanon <luis.ontanon@gmail.com>2007-03-19 00:36:42 +0000
committerLuis Ontanon <luis.ontanon@gmail.com>2007-03-19 00:36:42 +0000
commit529c65f713a781f5dd58a16d69503662e206850e (patch)
tree3c78a5ffa30a9c5c435c247a8274dc44a0a1fa89 /gtk/voip_calls.c
parentd3120ba5075b04f1dcdcb98c758b4feef4833622 (diff)
downloadwireshark-529c65f713a781f5dd58a16d69503662e206850e.tar.gz
wireshark-529c65f713a781f5dd58a16d69503662e206850e.tar.bz2
wireshark-529c65f713a781f5dd58a16d69503662e206850e.zip
voip_calls.c:
- instead of wrongly using the h248 call counter use tapinfo's counter graph_analysis.c: - beautify the code (I was trying to the bug that got fixed by bzeroing m3ua tap data however this looks better!). svn path=/trunk/; revision=21063
Diffstat (limited to 'gtk/voip_calls.c')
-rw-r--r--gtk/voip_calls.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/voip_calls.c b/gtk/voip_calls.c
index 5f9ab6e872..66022ae02e 100644
--- a/gtk/voip_calls.c
+++ b/gtk/voip_calls.c
@@ -2724,7 +2724,6 @@ remove_tap_listener_actrace_calls(void)
/**************************** TAP for H248 **********************************/
static gboolean have_h248_tap_listener = FALSE;
-static guint16 h248_call_num = 0;
#define h248_is_req(type) ( type == H248_CMD_ADD_REQ || type == H248_CMD_MOVE_REQ || type == H248_CMD_MOD_REQ || \
type == H248_CMD_SUB_REQ || type == H248_CMD_AUDITCAP_REQ || type == H248_CMD_AUDITVAL_REQ || \
@@ -2788,7 +2787,7 @@ static int h248_calls_packet(void *ptr _U_, packet_info *pinfo, epan_dissect_t *
COPY_ADDRESS(&(strinfo->initial_speaker), mgc);
strinfo->protocol = TEL_H248;
- strinfo->call_num = h248_call_num++;
+ strinfo->call_num = tapinfo->ncalls++;
strinfo->start_sec=pinfo->fd->rel_ts.secs;
strinfo->start_usec=pinfo->fd->rel_ts.nsecs;
strinfo->stop_sec=pinfo->fd->rel_ts.secs;
@@ -2825,7 +2824,9 @@ static int h248_calls_packet(void *ptr _U_, packet_info *pinfo, epan_dissect_t *
++(tapinfo->npackets);
}
- add_to_graph(tapinfo, pinfo, cmd->str, "", strinfo->call_num, &(pinfo->src), &(pinfo->dst), 1);
+ add_to_graph(tapinfo, pinfo, cmd->str,
+ ep_strdup_printf("TrxId = %d, CtxId = %.8x",cmd->trx->id,cmd->ctx->id),
+ strinfo->call_num, &(pinfo->src), &(pinfo->dst), 1);
tapinfo->redraw = TRUE;
@@ -2853,8 +2854,6 @@ void h248_calls_init_tap(void)
have_h248_tap_listener=TRUE;
}
-
- h248_call_num = 0;
}
void