提交 c8aa237c 编写于 作者: J Jan Kiszka 提交者: Mark McLoughlin

net: Don't deliver to disabled interfaces in qemu_sendv_packet

Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NMark McLoughlin <markmc@redhat.com>
上级 98ba2632
......@@ -494,7 +494,7 @@ ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov,
if (vc->link_down)
len = calc_iov_length(iov, iovcnt);
if (vc->fd_readv)
else if (vc->fd_readv)
len = vc->fd_readv(vc->opaque, iov, iovcnt);
else if (vc->fd_read)
len = vc_sendv_compat(vc, iov, iovcnt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册