diff options
author | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 06:32:10 +0000 |
---|---|---|
committer | Ed Warnicke <hagbard@physics.rutgers.edu> | 2001-04-01 06:32:10 +0000 |
commit | 1d4e8478376b520cba2007c777999652247a7ae4 (patch) | |
tree | 94f192318e93c5cf8a5e9a187572e7f4f8bac59a /packet-vines.c | |
parent | 48421be1d29b8aa633ed711f83312bfdadcace1c (diff) | |
download | wireshark-1d4e8478376b520cba2007c777999652247a7ae4.tar.gz wireshark-1d4e8478376b520cba2007c777999652247a7ae4.tar.bz2 wireshark-1d4e8478376b520cba2007c777999652247a7ae4.zip |
Moved vines_addr_to_str() from packet-vines.{h,c} to epan/to_str.{c,h}.
svn path=/trunk/; revision=3229
Diffstat (limited to 'packet-vines.c')
-rw-r--r-- | packet-vines.c | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/packet-vines.c b/packet-vines.c index 31dc1fa5f5..d63222aef8 100644 --- a/packet-vines.c +++ b/packet-vines.c @@ -1,7 +1,7 @@ /* packet-vines.c * Routines for Banyan VINES protocol packet disassembly * - * $Id: packet-vines.c,v 1.25 2001/03/13 21:34:24 gram Exp $ + * $Id: packet-vines.c,v 1.26 2001/04/01 06:32:09 hagbard Exp $ * * Don Lafontaine <lafont02@cn.ca> * @@ -173,24 +173,6 @@ proto_reg_handoff_vines_frp(void) proto_vines_frp); } -gchar * -vines_addr_to_str(const guint8 *addrp) -{ - static gchar str[3][214]; - static gchar *cur; - - if (cur == &str[0][0]) { - cur = &str[1][0]; - } else if (cur == &str[1][0]) { - cur = &str[2][0]; - } else { - cur = &str[0][0]; - } - - sprintf(cur, "%08x.%04x", pntohl(&addrp[0]), pntohs(&addrp[4])); - return cur; -} - static void dissect_vines(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { |