aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-10-22 08:53:41 +0000
committerGuy Harris <guy@alum.mit.edu>1999-10-22 08:53:41 +0000
commite30a15f04ff01f31d0d6c86983271e8a9351866c (patch)
treee3b3c8f6c5a7516146e506129805fc5547813885 /file.c
parent518c23417f5769e0222b3fbd1a37991509f2bf1e (diff)
Add support for SNA FID type 4 addresses to the code that handles the
"address" type. Use that in the SNA FID type 4 dissector. svn path=/trunk/; revision=915
Diffstat (limited to 'file.c')
-rw-r--r--file.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/file.c b/file.c
index d8e920c183..30eb0af405 100644
--- a/file.c
+++ b/file.c
@@ -1,7 +1,7 @@
/* file.c
* File I/O routines
*
- * $Id: file.c,v 1.112 1999/10/22 08:30:02 guy Exp $
+ * $Id: file.c,v 1.113 1999/10/22 08:53:40 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -95,6 +95,8 @@
#include "packet-ncp.h"
+#include "packet-sna.h"
+
extern GtkWidget *packet_list, *prog_bar, *info_bar, *byte_view, *tree_view;
extern guint file_ctx;
extern int sync_pipe[];
@@ -590,6 +592,7 @@ col_set_addr(frame_data *fd, int col, address *addr, gboolean is_res)
u_int ipv4_addr;
struct e_in6_addr ipv6_addr;
struct atalk_ddp_addr ddp_addr;
+ struct sna_fid_type_4_addr sna_fid_type_4_addr;
switch (addr->type) {
@@ -632,6 +635,12 @@ col_set_addr(frame_data *fd, int col, address *addr, gboolean is_res)
snprintf(fd->cinfo->col_data[col], COL_MAX_LEN, "%04X",
pntohs(&addr->data[0]));
break;
+
+ case SNA_FID_TYPE_4_ADDR_LEN:
+ memcpy(&sna_fid_type_4_addr, addr->data, SNA_FID_TYPE_4_ADDR_LEN);
+ strncpy(fd->cinfo->col_data[col],
+ sna_fid_type_4_addr_to_str(&sna_fid_type_4_addr), COL_MAX_LEN);
+ break;
}
break;