diff options
author | Michael Mann <mmann78@netscape.net> | 2015-01-05 11:12:08 -0500 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-01-06 07:38:18 +0000 |
commit | 55de46f317b5e3aba957f4aa44e242aea0d29dfc (patch) | |
tree | 3e5c8a3d17ef272b098fc7db62b6f56ab0b96f78 /ui/gtk/rtp_stream_dlg.c | |
parent | 124272ec097852c0c0efa587cb1cb1bf8047ff73 (diff) |
Replace ep_address_to_str with address_to_str.
Change-Id: I4f1078b20f41800f72a751612703ad0d4c2ae87b
Reviewed-on: https://code.wireshark.org/review/6323
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/gtk/rtp_stream_dlg.c')
-rw-r--r-- | ui/gtk/rtp_stream_dlg.c | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/ui/gtk/rtp_stream_dlg.c b/ui/gtk/rtp_stream_dlg.c index 89d1fb9729..9242bb4208 100644 --- a/ui/gtk/rtp_stream_dlg.c +++ b/ui/gtk/rtp_stream_dlg.c @@ -380,6 +380,7 @@ rtpstream_on_filter(GtkButton *button _U_, gpointer user_data _U_) gchar *filter_string_fwd = NULL; gchar *filter_string_rev = NULL; gchar ip_version[3]; + char *src_addr, *dst_addr; if (selected_stream_fwd==NULL && selected_stream_rev==NULL) return; @@ -391,17 +392,21 @@ rtpstream_on_filter(GtkButton *button _U_, gpointer user_data _U_) } else { ip_version[0] = '\0'; } + src_addr = (char*)address_to_str(NULL, &(selected_stream_fwd->src_addr)); + dst_addr = (char*)address_to_str(NULL, &(selected_stream_fwd->dest_addr)); filter_string_fwd = g_strdup_printf( "(ip%s.src==%s && udp.srcport==%u && ip%s.dst==%s && udp.dstport==%u && rtp.ssrc==0x%X)", ip_version, - ep_address_to_str(&(selected_stream_fwd->src_addr)), + src_addr, selected_stream_fwd->src_port, ip_version, - ep_address_to_str(&(selected_stream_fwd->dest_addr)), + dst_addr, selected_stream_fwd->dest_port, selected_stream_fwd->ssrc); filter_string = filter_string_fwd; + wmem_free(NULL, src_addr); + wmem_free(NULL, dst_addr); } if (selected_stream_rev) @@ -411,17 +416,21 @@ rtpstream_on_filter(GtkButton *button _U_, gpointer user_data _U_) } else { ip_version[0] = '\0'; } + src_addr = (char*)address_to_str(NULL, &(selected_stream_rev->src_addr)); + dst_addr = (char*)address_to_str(NULL, &(selected_stream_rev->dest_addr)); filter_string_rev = g_strdup_printf( "(ip%s.src==%s && udp.srcport==%u && ip%s.dst==%s && udp.dstport==%u && rtp.ssrc==0x%X)", ip_version, - ep_address_to_str(&(selected_stream_rev->src_addr)), + src_addr, selected_stream_rev->src_port, ip_version, - ep_address_to_str(&(selected_stream_rev->dest_addr)), + dst_addr, selected_stream_rev->dest_port, selected_stream_rev->ssrc); filter_string = filter_string_rev; + wmem_free(NULL, src_addr); + wmem_free(NULL, dst_addr); } if ((selected_stream_fwd) && (selected_stream_rev)) |