aboutsummaryrefslogtreecommitdiffstats
path: root/packet-atalk.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2001-03-22 16:24:16 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>2001-03-22 16:24:16 +0000
commit22d39f71fbfea866c5129fe63fe1fa7a3e4a9b6b (patch)
tree8dcce7638fb2b14aaa319ad72b530e33d6816dfd /packet-atalk.c
parent8459f988a546914adeff7df5b63b7385385f86ed (diff)
Move appletalk- and sna-related address routines out of the dissectors
and into epan. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3160 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-atalk.c')
-rw-r--r--packet-atalk.c21
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" },