qemu-e2k/include/net
Jason Wang bc38e31b4e net: check the existence of peer before trying to pad
There could be case that peer is NULL. This can happen when during
network device hot-add where net device needs to be added first. So
the patch check the existence of peer before trying to do the pad.

Fixes: 969e50b61a ("net: Pad short frames to minimum size before sending from SLiRP/TAP")
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 20210423031803.1479-1-jasowang@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2021-04-23 11:11:28 +01:00
..
announce.h
can_emu.h
can_host.h
checksum.h
eth.h net: eth: Add a helper to pad a short Ethernet frame 2021-03-22 17:34:31 +08:00
filter.h
net.h net: check the existence of peer before trying to pad 2021-04-23 11:11:28 +01:00
queue.h net: introduce qemu_receive_packet() 2021-03-15 16:41:22 +08:00
slirp.h
tap.h
vhost_net.h
vhost-user.h
vhost-vdpa.h