]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnetclientstream: Introduce virNetClientStreamHandleHole
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 May 2017 09:27:53 +0000 (11:27 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 18 May 2017 05:42:13 +0000 (07:42 +0200)
commitc6e0fcce4cab2f3c792742a38fd0b841c4c623e4
treeeabd7e2bb3e4d1c3871f874a97a2565ffff40ea1
parent470aaa20d4bd5ae62849373976b7630f6e0158a5
virnetclientstream: Introduce virNetClientStreamHandleHole

This is a function that handles an incoming STREAM_HOLE packet.
Even though it is not wired up yet, it will be soon. At the
beginning do couple of checks whether server plays nicely and
sent us a STREAM_HOLE packed only after we've enabled sparse
streams. Then decodes the message payload to see how big the hole
is and stores it in passed @length argument.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/rpc/virnetclientstream.c