aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-23 09:15:08 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-23 09:15:08 +0000
commit9e18043830091ae70cf68dde7dc736aa4c532f3e (patch)
treeac5bc0ada3b4777a3db5b70a48aea3b2a87fa6ee /epan/to_str.c
parent883020806010ced14cc7ecc9c6961bd9b861c19b (diff)
Update to FC to store the source and destination id in a guint
to make it easier to add matching and response times later. svn path=/trunk/; revision=7916
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 5819d2b4f7..69c01e6ca7 100644
--- a/epan/to_str.c
+++ b/epan/to_str.c
@@ -1,7 +1,7 @@
/* to_str.c
* Routines for utilities to convert various other types to strings.
*
- * $Id: to_str.c,v 1.25 2003/02/12 00:44:04 guy Exp $
+ * $Id: to_str.c,v 1.26 2003/06/23 09:15:08 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -575,12 +575,22 @@ rel_time_to_secs_str(nstime_t *rel_time)
return cur;
}
+
gchar *
fc_to_str(const guint8 *ad)
{
return bytestring_to_str (ad, 3, '.');
}
+/* convert the fc id stored in the three high order bytes of a guint32 into a
+ fc id string*/
+gchar *
+fc32_to_str(const guint32 ad32)
+{
+ const guint8 *ad=(guint8 *)&ad32;
+ return bytestring_to_str (ad, 3, '.');
+}
+
/* FC Network Header Network Address Authority Identifiers */
#define FC_NH_NAA_IEEE 1 /* IEEE 802.1a */