summaryrefslogtreecommitdiff
path: root/epan/address_to_str.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-08-02 18:51:40 +0000
committerGuy Harris <guy@alum.mit.edu>2012-08-02 18:51:40 +0000
commitdfe0389590d359f877703a6deef40a118492601c (patch)
treede051e25332fbdc7869200056219f9f371326099 /epan/address_to_str.c
parentaa65950896c9b179b8cd4b554ed53c41efd4823e (diff)
downloadwireshark-dfe0389590d359f877703a6deef40a118492601c.tar.gz
Move the AX.25 address routines to address_to_str.c, where they belong;
hopefully this will fix some of the build errors. svn path=/trunk/; revision=44219
Diffstat (limited to 'epan/address_to_str.c')
-rw-r--r--epan/address_to_str.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/epan/address_to_str.c b/epan/address_to_str.c
index 1965d88cee..ba3b25388c 100644
--- a/epan/address_to_str.c
+++ b/epan/address_to_str.c
@@ -477,6 +477,30 @@ tvb_fcwwn_to_str(tvbuff_t *tvb, const gint offset)
return fcwwn_to_str (tvb_get_ptr(tvb, offset, 8));
}
+/* XXX FIXME
+remove this one later when every call has been converted to address_to_str()
+*/
+gchar *
+ax25_to_str(const guint8 *ad)
+{
+ return bytestring_to_str(ad, 7, ':');
+}
+
+/* XXX FIXME
+remove this one later when every call has been converted to address_to_str()
+*/
+gchar *
+get_ax25_name(const guint8 *ad)
+{
+ address addr;
+
+ addr.type = AT_AX25;
+ addr.len = 7;
+ addr.data = ad;
+
+ return address_to_str( &addr );
+}
+
/*XXX FIXME the code below may be called very very frequently in the future.
optimize it for speed and get rid of the slow sprintfs */
/* XXX - perhaps we should have individual address types register