diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-22 06:24:56 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 1999-11-22 06:24:56 +0000 |
commit | 942b69ce9abe7cfa1709a098339167062476cb84 (patch) | |
tree | ed13166754e04deb5f4d93f80a6b7e5bb4dce422 /packet-sna.c | |
parent | f94d38cbd3864dfb32ed0f1202d56ac29620b2f3 (diff) | |
download | wireshark-942b69ce9abe7cfa1709a098339167062476cb84.tar.gz wireshark-942b69ce9abe7cfa1709a098339167062476cb84.tar.bz2 wireshark-942b69ce9abe7cfa1709a098339167062476cb84.zip |
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.
svn path=/trunk/; revision=1089
Diffstat (limited to 'packet-sna.c')
-rw-r--r-- | packet-sna.c | 5 |
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]); |