aboutsummaryrefslogtreecommitdiffstats
path: root/epan/to_str.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-24 15:37:31 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-06-24 15:37:31 +0000
commit728d0bab444a69ba031fc5984cb601a564691507 (patch)
tree2389367d356e5ff2fdce29f7a0a92717e8a08fb7 /epan/to_str.c
parent1867f2ff247bc93afa0033fe434e9b08a99ddc18 (diff)
Updates to the fibre channel dissector
removed two hf fields that are now redundant since F_CTL is decoded placed most interesting header fields in a struct added request response matching and measurement of delta time between the first and the last frame of an exchange. todo: 1, finish restructure of decoding of fc header so that it will populate the tree as it reads more data fields from the tvb so that we can get useful info in the tree even for short frames. 2, add TAP to fc and pass the header struct and the time delta struct to tap listeners 3, add ServiceResponseTime tap listener for FC svn path=/trunk/; revision=7923
Diffstat (limited to 'epan/to_str.c')
-rw-r--r--epan/to_str.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/to_str.c b/epan/to_str.c
index 69c01e6ca7..cd8e185640 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.26 2003/06/23 09:15:08 sahlberg Exp $
+ * $Id: to_str.c,v 1.27 2003/06/24 15:37:31 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -587,8 +587,9 @@ fc_to_str(const guint8 *ad)
gchar *
fc32_to_str(const guint32 ad32)
{
- const guint8 *ad=(guint8 *)&ad32;
- return bytestring_to_str (ad, 3, '.');
+ static gchar str[9];
+ sprintf(str,"%02x.%02x.%02x", ad32&0xff, (ad32>>8)&0xff, (ad32>>16)&0xff);
+ return str;
}
/* FC Network Header Network Address Authority Identifiers */