This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

SnmpAdminString ascii representation not using UTF-8

0

We are sending a SnmpAdminString in a SNMP trap. The SNMP-FRAMEWORK mib describes SnmpAdminString as

"An octet string containing administrative information, preferably in human-readable form. To facilitate internationalization, this information is represented using the ISO/IEC IS 10646-1 character set, encoded as an octet string using the UTF-8 transformation format described in [RFC2279].

However, the string representation for this OctetString appears to not be using the UTF-8 character set. For example sending the string 'IQTV-ö05':
Receiving octets: - 495154562dc3b63035
String rep: IQTV-ö05

In UTF-8, the character ö = 0xc3b6, but in 8-bit extended ascii 0xc3b6 is ö which is what is being displayed. Is there something that I have misconfigured?

asked 24 Jun '15, 08:49

ccrotty's gravatar image

ccrotty
5113
accept rate: 0%


One Answer:

1

After a lot of searching in the source code, it appears that the snmp dissector in Wireshark doesn't make any use of the DISPLAY-HINT associated with the SnmpAdminString of "255t" that indicates a UTF-8 encoded string. Currently the snmp dissector treats all OCTET STRING values as ASCII.

I think that libsmi (the library Wireshark uses for parsing Mibs) makes the DISPLAY-HINT available so it could be used, but I'm not certain as the docs don't really indicate much about that.

You could raise a bug\enhancement item on the Wireshark Bugzilla to at least track this, if you do so please add a capture with an snmp packet showing the issue.

answered 24 Jun '15, 15:09

grahamb's gravatar image

grahamb ♦
19.8k330206
accept rate: 22%

edited 24 Jun '15, 15:09