https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5307
Summary: New function request for checking if a tvb has
printable characters
Product: Wireshark
Version: SVN
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Low
Component: Wireshark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: tamas.regos@xxxxxxxxxxxx
Build Information:
Version 1.5.0-Tamas
Copyright 1998-2010 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled with GTK+ 2.16.6, (32-bit) with GLib 2.24.2, with WinPcap (version
unknown), with libz 1.2.3, without POSIX capabilities, without libpcre, with
SMI
0.4.8, with c-ares 1.7.1, with Lua 5.1, without Python, with GnuTLS 2.8.5, with
Gcrypt 1.4.5, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built
Oct
17 2010), with AirPcap.
Running on 32-bit Windows Vista Service Pack 1, build 6001, with WinPcap
version
4.1.1 (packet.dll version 4.1.0.1753), based on libpcap version 1.0 branch
1_0_rel0b (20091008), GnuTLS 2.8.5, Gcrypt 1.4.5, without AirPcap.
Built using Microsoft Visual C++ 9.0 build 30729
Wireshark is Open Source Software released under the GNU General Public
License.
Check the man page and http://www.wireshark.org for more information.
--
Hi,
If an AVP has the property OctetString we can put anything in it.
e.g it's not wrong to put a string there, vendors may choose to do it any way
they like I guess.
The actual content of the OctetString may be defined elsewhere and may not be
"free to choose" of course.
For example, we are not violating the standard if we put an UTF8String in a AVP
which has OctetString type but it'd be convenient for us to have that displayed
in the tree in readable format.
So if we'd like see this AVP in readable format then we'd nee to change the AVP
type from OctetString to UTF8String, which might be a problem to maintain.
If we could add a "service" function to check if a tvb is all printable
characters, it may be useful.The function would check for printable string and
if a string buffer is included in the call it returns the string (if
printable).
Compare maybe with the BER or PER functions.
We could add this new function in tvbuff.c under ACCESSORS session because we
have some function there to modify tvb... e.g tvb_uncompress
A name idea for this new function tvb_check_printable()
Please comment.
Regards,
Tamas
--
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.