aboutsummaryrefslogtreecommitdiffstats
path: root/packet-sna.c
diff options
context:
space:
mode:
authorgram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-22 06:24:56 +0000
committergram <gram@f5534014-38df-0310-8fa8-9805f1628bb7>1999-11-22 06:24:56 +0000
commit4564f849c6de7591b60756378316f46f29c1d163 (patch)
treeed13166754e04deb5f4d93f80a6b7e5bb4dce422 /packet-sna.c
parenta2c7358d7a7c921bb5ea75c94d14eac86da06315 (diff)
A "character encoding" variable is now set per packet. The existence
of SNA in a packet changes the character encoding from the default ASCII to EBCDIC. The hex-printing routines in the GUI code and in the printing code convert to EBCDIC if appropriate. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@1089 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-sna.c')
-rw-r--r--packet-sna.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/packet-sna.c b/packet-sna.c
index 4a89e22ddb..e7a8b7c8a7 100644
--- a/packet-sna.c
+++ b/packet-sna.c
@@ -2,7 +2,7 @@
* Routines for SNA
* Gilbert Ramirez <gram@xiexie.org>
*
- * $Id: packet-sna.c,v 1.9 1999/11/16 11:42:57 guy Exp $
+ * $Id: packet-sna.c,v 1.10 1999/11/22 06:24:39 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -309,6 +309,9 @@ dissect_sna(const u_char *pd, int offset, frame_data *fd, proto_tree *tree) {
guint8 th_fid;
int sna_header_len = 0, th_header_len = 0;
+ /* SNA data should be printed in EBCDIC, not ASCII */
+ fd->encoding = CHAR_EBCDIC;
+
if (IS_DATA_IN_FRAME(offset)) {
/* Transmission Header Format Identifier */
th_fid = hi_nibble(pd[offset]);