aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address_to_str.c
diff options
context:
space:
mode:
authormorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-21 02:48:55 +0000
committermorriss <morriss@f5534014-38df-0310-8fa8-9805f1628bb7>2011-01-21 02:48:55 +0000
commit9a739c62d81bcfd892a5c012c7858725c5d49659 (patch)
treeb0e59e8026e85564d0963662dbd4e08a5738bea0 /epan/address_to_str.c
parentd20fb9313af006fa091f45e4ffed2ed29996042d (diff)
Introduce, and start using, tvb_eth_to_str().
Export tvb_*_to_str() and put them in alphabetical order. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35602 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r--epan/address_to_str.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c
index d3cf15fab3..0ffc6ab7b2 100644
--- a/epan/address_to_str.c
+++ b/epan/address_to_str.c
@@ -91,6 +91,12 @@ ether_to_str(const guint8 *ad)
return bytestring_to_str(ad, 6, ':');
}
+gchar *
+tvb_ether_to_str(tvbuff_t *tvb, const gint offset)
+{
+ return bytestring_to_str(tvb_get_ptr(tvb, offset, 6), 6, ':');
+}
+
/*
This function is very fast and this function is called a lot.
XXX update the ep_address_to_str stuff to use this function.