summaryrefslogtreecommitdiff
path: root/epan/address_to_str.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-05-14 20:15:03 -0700
committerGuy Harris <guy@alum.mit.edu>2014-05-15 03:16:15 +0000
commit09bf1702a6b0210aa74a4665985f2094c311d19f (patch)
tree9ba67760aa4e37ba1c5bf1682290edf3d438a494 /epan/address_to_str.c
parent1bfe396ca445f5d2eda510edf74abf20bfb815c8 (diff)
downloadwireshark-09bf1702a6b0210aa74a4665985f2094c311d19f.tar.gz
Get rid of some uses of tvb_get_ptr().
Introduce a new tvb_ipxnet_to_string() routine to help that. Change-Id: Icb27f7cdd6e6e7de67e765715e450063d7de6072 Reviewed-on: https://code.wireshark.org/review/1647 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r--epan/address_to_str.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c
index 2ae8b2af93..361e3a0554 100644
--- a/epan/address_to_str.c
+++ b/epan/address_to_str.c
@@ -294,6 +294,13 @@ ipxnet_to_string(const guint8 *ad)
return ipxnet_to_str_punct(addr, ' ');
}
+
+gchar*
+tvb_ipxnet_to_string(tvbuff_t *tvb, const gint offset)
+{
+ return ipxnet_to_str_punct(tvb_get_ntohl(tvb, offset), ' ');
+}
+
gchar *
ipxnet_to_str_punct(const guint32 ad, const char punct)
{