aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2022-06-09 03:19:01 +0100
committerJoão Valverde <j@v6e.pt>2022-06-09 20:52:24 +0100
commit3e543bb0af1051d10e1ea586fee350a59cb63f52 (patch)
tree1ee6d83bf53e99241ff641ccc0d354aed03214a3 /doc
parent662957926ab505c6c1ac4da188ca7e15612619aa (diff)
Docs: Update README.dissector for string encodings
Diffstat (limited to 'doc')
-rw-r--r--doc/README.dissector6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/README.dissector b/doc/README.dissector
index 94b649e737..f69b0f3453 100644
--- a/doc/README.dissector
+++ b/doc/README.dissector
@@ -1491,7 +1491,8 @@ encoded. For FT_UINT_STRING fields, the byte order of the count must be
specified; for UCS-2 and UTF-16, the byte order of the encoding must be
specified (for counted UCS-2 and UTF-16 strings, the byte order of the
count and the 16-bit values in the string must be the same). In other
-cases, ENC_NA should be used. The character encodings that are
+cases the string encoding has no endianness or the endianness is implicitly
+specified and nothing should be used. The character encodings that are
currently supported are:
ENC_ASCII - ASCII (currently treated as UTF-8; in the future,
@@ -3343,8 +3344,7 @@ static int dissect_cstr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree,
len += 1; /* Add one for the '\0' */
if (tree) {
- proto_tree_add_item(tree, hf_cstring, tvb, offset, len,
- ENC_ASCII|ENC_NA);
+ proto_tree_add_item(tree, hf_cstring, tvb, offset, len, ENC_ASCII);
}
offset += (guint)len;
}