aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address_to_str.c
diff options
context:
space:
mode:
authorJeff Morriss <jeff.morriss@ulticom.com>2011-02-11 03:13:24 +0000
committerJeff Morriss <jeff.morriss@ulticom.com>2011-02-11 03:13:24 +0000
commit0f59bc7c4521cc6139dfe44d9775d06d99b8a583 (patch)
treea26cae2ece217ef1faadaabb707931125b649b7a /epan/address_to_str.c
parentd8659693eff66f7e89c53871776c455cd11b4cae (diff)
Rename vines_to_str() to tvb_vines_to_str() and make it take a pointer a TVB
and an offset instead of (generally) a pointer into a TVB. Move most of the contents of packet-vines.h into packet-vines.c: the moved content is only needed in that file. svn path=/trunk/; revision=35912
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r--epan/address_to_str.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c
index 0ffc6ab7b2..e65aa0e220 100644
--- a/epan/address_to_str.c
+++ b/epan/address_to_str.c
@@ -203,13 +203,13 @@ vines_addr_to_str_buf(const guint8 *addrp, gchar *buf, int buf_len)
}
gchar *
-vines_addr_to_str(const guint8 *addrp)
+tvb_vines_addr_to_str(tvbuff_t *tvb, const gint offset)
{
gchar *buf;
buf=ep_alloc(214); /* XXX, 14 here? */
- vines_addr_to_str_buf(addrp, buf, 214);
+ vines_addr_to_str_buf(tvb_get_ptr(tvb, offset, VINES_ADDR_LEN), buf, 214);
return buf;
}