libvirt/tools
Michal Privoznik caa9560c15 wireshark: Prefer ws_version.h over config.h
A wireshark plugin must declare what major and minor version it
was built with as these are checked when wireshark loads plugins.
On the top of that, we use major + minor + micro to adapt to
changed API between releases. So far, we were getting these
version numbers from wireshark/config.h.

And while most distributions install wireshark/config.h file some
don't. On distros shipping it it's hack^Wsaved during built by
packaging system and installed later. But some distros are not
doing that. At least not for new enough wireshark because as of
wireshark's commit v2.9.0~1273 the ws_version.h is installed
which contains the version macros we need and is installed by
wireshark itself.

But of course, some distros which have new enough wireshark
packaged do not ship ws_version.h and stick to the hack. That is
why we can't simply bump the minimal version and switch to the
new header file. We need a configure check and adopt our code to
deal with both ways. At least for the time being.

Based on Andrea's original patch:

https://www.redhat.com/archives/libvir-list/2020-September/msg00156.html

Closes: https://gitlab.com/libvirt/libvirt/-/issues/74
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
2020-09-08 10:58:24 +02:00
..
bash-completion meson: tools: install bash-completion files 2020-08-03 09:27:05 +02:00
nss lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
wireshark wireshark: Prefer ws_version.h over config.h 2020-09-08 10:58:24 +02:00
libvirt_recover_xattrs.sh
libvirt_win_icon_16x16.ico
libvirt_win_icon_32x32.ico
libvirt_win_icon_48x48.ico
libvirt_win_icon_64x64.ico
libvirt-guests.service.in
libvirt-guests.sh.in tools: fix libvirt-guests.sh text assignments 2020-08-21 08:31:18 +02:00
libvirt-guests.sysconf
meson.build meson: Use @BASENAME@ more 2020-09-01 13:22:24 +02:00
virsh_win_icon.rc
virsh-backup.c
virsh-backup.h
virsh-checkpoint.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
virsh-checkpoint.h
virsh-completer-checkpoint.c
virsh-completer-checkpoint.h
virsh-completer-domain.c
virsh-completer-domain.h
virsh-completer-host.c virsh: completer: use signed variable for XPathNodeSet errors 2020-08-03 15:19:29 +02:00
virsh-completer-host.h
virsh-completer-interface.c
virsh-completer-interface.h
virsh-completer-network.c
virsh-completer-network.h
virsh-completer-nodedev.c
virsh-completer-nodedev.h
virsh-completer-nwfilter.c
virsh-completer-nwfilter.h
virsh-completer-pool.c
virsh-completer-pool.h
virsh-completer-secret.c
virsh-completer-secret.h
virsh-completer-snapshot.c
virsh-completer-snapshot.h
virsh-completer-volume.c
virsh-completer-volume.h
virsh-completer.c
virsh-completer.h
virsh-console.c
virsh-console.h
virsh-domain-monitor.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-domain-monitor.h
virsh-domain.c qemu: Allow NBD migration over UNIX socket 2020-09-04 10:20:49 +02:00
virsh-domain.h
virsh-edit.c
virsh-host.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
virsh-host.h tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-interface.c Move declarations before statements 2020-08-25 19:03:11 +02:00
virsh-interface.h
virsh-network.c Move declarations before statements 2020-08-25 19:03:11 +02:00
virsh-network.h
virsh-nodedev.c Move declarations before statements 2020-08-25 19:03:11 +02:00
virsh-nodedev.h
virsh-nwfilter.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-nwfilter.h
virsh-pool.c virsh: Add source-initiator opt to build the initiator of pool XML 2020-08-25 09:32:05 +02:00
virsh-pool.h
virsh-secret.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-secret.h tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-snapshot.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
virsh-snapshot.h tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virsh-util.c Move declarations before statements 2020-08-25 19:03:11 +02:00
virsh-util.h virsh: Track if vol-upload or vol-download work over a block device 2020-08-24 13:32:53 +02:00
virsh-volume.c Split declarations from initializations 2020-08-25 19:03:11 +02:00
virsh-volume.h
virsh.c vsh: Introduce wrapper for add_history() 2020-09-03 16:25:43 +02:00
virsh.h tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virt-admin-completer.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virt-admin-completer.h
virt-admin.c vsh: Introduce wrapper for add_history() 2020-09-03 16:25:43 +02:00
virt-admin.h
virt-host-validate-bhyve.c virt-host-validate-bhyve.c: Reintroduce @ret to virHostValidateBhyve() 2020-05-05 14:45:58 +02:00
virt-host-validate-bhyve.h
virt-host-validate-common.c Move declarations before statements 2020-08-25 19:03:11 +02:00
virt-host-validate-common.h tools: Secure guest check for AMD in virt-host-validate 2020-06-16 09:43:44 +02:00
virt-host-validate-lxc.c
virt-host-validate-lxc.h
virt-host-validate-qemu.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
virt-host-validate-qemu.h
virt-host-validate.c lib: Prefer WITH_* prefix for #if conditionals 2020-09-02 10:28:10 +02:00
virt-login-shell-helper.c Use g_strfeev instead of virStringFreeList 2020-08-03 15:37:36 +02:00
virt-login-shell.c
virt-login-shell.conf
virt-pki-validate.in
virt-sanlock-cleanup.in
virt-xml-validate.in
vsh-table.c tools: remove unnecessary includes 2020-08-03 15:30:40 +02:00
vsh-table.h
vsh.c tools: avoid unused parameter warning when readline is disabled 2020-09-04 10:17:30 +01:00
vsh.h vsh: Introduce wrapper for add_history() 2020-09-03 16:25:43 +02:00