diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-08-02 16:54:43 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-08-02 16:54:43 +0000 |
commit | 835111692f4a1313deb4d699a376e4496f8eabb2 (patch) | |
tree | 450e1533309ed244373923da34cafe84adca7b1c /epan/to_str.c | |
parent | 89e6169fc56576893c9ffedc0541994b73521c0d (diff) |
From Richard Stearn: support for AX.25, including support for
LINKTYPE_AX25.
svn path=/trunk/; revision=44211
Diffstat (limited to 'epan/to_str.c')
-rw-r--r-- | epan/to_str.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/epan/to_str.c b/epan/to_str.c index cda834f11c..f173816b65 100644 --- a/epan/to_str.c +++ b/epan/to_str.c @@ -1024,6 +1024,30 @@ decode_numeric_bitfield(const guint32 val, const guint32 mask, const int width, return buf; } +/* 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 ); +} + /* This function is very fast and this function is called a lot. XXX update the ep_address_to_str stuff to use this function. |