Right now, the stream stuff assumes that a stream is always
going to be used for transmit. This is not the case, and in
fact doesn't work with the tunnelled migration stuff. Add
a flag to remoteClientStream() to allow it to do RX only.
Signed-off-by: Chris Lalancette <clalance@redhat.com>
* @stream: a stream to add
*/
int remoteAddClientStream(struct qemud_client *client,
- struct qemud_client_stream *stream)
+ struct qemud_client_stream *stream,
+ int transmit)
{
struct qemud_client_stream *tmp = client->streams;
stream->filter.next = client->filters;
client->filters = &stream->filter;
- stream->tx = 1;
+ if (transmit)
+ stream->tx = 1;
remoteStreamUpdateEvents(stream);
struct qemud_client_stream *stream);
int remoteAddClientStream(struct qemud_client *client,
- struct qemud_client_stream *stream);
+ struct qemud_client_stream *stream,
+ int transmit);
struct qemud_client_stream *
remoteFindClientStream(struct qemud_client *client,