aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-12-23 16:14:06 +0000
committerBill Meier <wmeier@newsguy.com>2011-12-23 16:14:06 +0000
commit43466d9eb1041dfd6f68e7522ae44f3270d38d58 (patch)
tree50f9a9f3c6299c05f75ae4ad66576435923e354a /gtk
parent70397ecfb1e3cd4cb46cc08374ccca89de9b413f (diff)
Use tvb accessors rather than directly accessing tvb struct.
svn path=/trunk/; revision=40286
Diffstat (limited to 'gtk')
-rw-r--r--gtk/follow_udp.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/follow_udp.c b/gtk/follow_udp.c
index 30cfda4c10..abfec12bde 100644
--- a/gtk/follow_udp.c
+++ b/gtk/follow_udp.c
@@ -36,7 +36,6 @@
#include <epan/ipproto.h>
#include <epan/strutil.h>
#include <epan/tap.h>
-#include <epan/tvbuff-int.h>
#include <../simple_dialog.h>
@@ -53,14 +52,14 @@ udp_queue_packet_data(void *tapdata, packet_info *pinfo,
{
follow_record_t *follow_record;
follow_info_t *follow_info = tapdata;
- const tvbuff_t *next_tvb = data;
+ tvbuff_t *next_tvb = (tvbuff_t *)data;
follow_record = g_malloc(sizeof(follow_record_t));
- follow_record->data = g_byte_array_sized_new(next_tvb->length);
+ follow_record->data = g_byte_array_sized_new(tvb_length(next_tvb));
follow_record->data = g_byte_array_append(follow_record->data,
- next_tvb->real_data,
- next_tvb->length);
+ tvb_get_ptr(next_tvb, 0, -1),
+ tvb_length(next_tvb));
if (follow_info->client_port == 0) {
follow_info->client_port = pinfo->srcport;