libvirt/tools/wireshark/src
Michal Privoznik 7e299ba649 wireshark: Switch to tvb_bytes_to_str()
When the dissector sees a byte sequence that is either an opaque
data (xdr_opaque) or a byte sequence (xdr_bytes) it formats the
bytes as a hex numbers using our own implementation. But
wireshark already provides a function for it: tvb_bytes_to_str().
NB, the reason why it returns a const string is so that callers
don't try to free it - the string is allocated using an allocator
which will decide when to free it.

The wireshark formatter was introduced in wireshark commit of
v1.99.2~479 and thus is present in the version we require at
least (2.6.0).

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
2021-11-29 15:05:33 +01:00
..
libvirt
meson.build meson: Fix build with -Dtest_coverage=true 2021-01-19 16:25:50 +01:00
packet-libvirt.c wireshark: Switch to tvb_bytes_to_str() 2021-11-29 15:05:33 +01:00
packet-libvirt.h
plugin.c wireshark: Prefer ws_version.h over config.h 2020-09-08 10:58:24 +02:00