diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-22 16:24:16 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-03-22 16:24:16 +0000 |
commit | a8b0c240e6a57e9bb3e696d871c02420b7594b01 (patch) | |
tree | 8dcce7638fb2b14aaa319ad72b530e33d6816dfd /packet-atalk.c | |
parent | 5175434166d0ec5f21a675c08af10c79a30f9e80 (diff) | |
download | wireshark-a8b0c240e6a57e9bb3e696d871c02420b7594b01.tar.gz wireshark-a8b0c240e6a57e9bb3e696d871c02420b7594b01.tar.bz2 wireshark-a8b0c240e6a57e9bb3e696d871c02420b7594b01.zip |
Move appletalk- and sna-related address routines out of the dissectors
and into epan.
svn path=/trunk/; revision=3160
Diffstat (limited to 'packet-atalk.c')
-rw-r--r-- | packet-atalk.c | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/packet-atalk.c b/packet-atalk.c index 139dc0d7bc..54c9e77837 100644 --- a/packet-atalk.c +++ b/packet-atalk.c @@ -1,7 +1,7 @@ /* packet-atalk.c * Routines for Appletalk packet disassembly (DDP, currently). * - * $Id: packet-atalk.c,v 1.51 2001/03/15 09:11:00 guy Exp $ + * $Id: packet-atalk.c,v 1.52 2001/03/22 16:24:14 gram Exp $ * * Simon Wilkinson <sxw@dcs.ed.ac.uk> * @@ -34,10 +34,10 @@ #include <glib.h> #include "packet.h" -#include "packet-atalk.h" #include "etypes.h" #include "ppptypes.h" #include "aftypes.h" +#include "atalk-utils.h" static int proto_ddp = -1; static int hf_ddp_hopcount = -1; @@ -104,23 +104,6 @@ typedef struct _e_ddp { #define DDP_HEADER_SIZE 13 -gchar * -atalk_addr_to_str(const struct atalk_ddp_addr *addrp) -{ - static gchar str[3][14]; - 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, "%u.%u:%u", addrp->net, addrp->node, addrp->port); - return cur; -} static const value_string op_vals[] = { {DDP_RTMPDATA, "AppleTalk Routing Table response or data" }, |