mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-03 11:35:19 +00:00
wireshark: Fix header of get_message_len()
In wireshark commit ceb8d954 (v1.99.2) they have changed the
signature of a function that determines how long a libvirt packet
is. Now it accepts a void pointer for passing data into the
function. Well, this is nice, but we don't need it right now.
Anyway, we have to change our code.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit 4f47778591
)
This commit is contained in:
parent
81367d3642
commit
44681b7ae6
@ -431,8 +431,13 @@ dissect_libvirt_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if WIRESHARK_VERSION >= 1099002
|
||||||
|
static guint
|
||||||
|
get_message_len(packet_info *pinfo ATTRIBUTE_UNUSED, tvbuff_t *tvb, int offset, void *data ATTRIBUTE_UNUSED)
|
||||||
|
#else
|
||||||
static guint32
|
static guint32
|
||||||
get_message_len(packet_info *pinfo ATTRIBUTE_UNUSED, tvbuff_t *tvb, int offset)
|
get_message_len(packet_info *pinfo ATTRIBUTE_UNUSED, tvbuff_t *tvb, int offset)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return tvb_get_ntohl(tvb, offset);
|
return tvb_get_ntohl(tvb, offset);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user