net: Don't deliver to disabled interfaces in qemu_sendv_packet
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
This commit is contained in:
parent
98ba2632fc
commit
c8aa237c64
2
net.c
2
net.c
@ -494,7 +494,7 @@ ssize_t qemu_sendv_packet(VLANClientState *vc1, const struct iovec *iov,
|
|||||||
|
|
||||||
if (vc->link_down)
|
if (vc->link_down)
|
||||||
len = calc_iov_length(iov, iovcnt);
|
len = calc_iov_length(iov, iovcnt);
|
||||||
if (vc->fd_readv)
|
else if (vc->fd_readv)
|
||||||
len = vc->fd_readv(vc->opaque, iov, iovcnt);
|
len = vc->fd_readv(vc->opaque, iov, iovcnt);
|
||||||
else if (vc->fd_read)
|
else if (vc->fd_read)
|
||||||
len = vc_sendv_compat(vc, iov, iovcnt);
|
len = vc_sendv_compat(vc, iov, iovcnt);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user