diff options
author | Akihiko Odaki <akihiko.odaki@daynix.com> | 2024-11-22 14:03:12 +0900 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2024-11-25 14:00:51 +0800 |
commit | 7987d2be5a8bc3a502f89ba8cf3ac3e09f64d1ce (patch) | |
tree | ef7edce0f61253a3962194b35c312eb516c10c1b /hw/virtio/vhost-stub.c | |
parent | 17437418c4ed0b779f7e9747fbffb08e139aa0ae (diff) |
virtio-net: Copy received header to buffer
receive_header() used to cast the const qualifier of the pointer to the
received packet away to modify the header. Avoid this by copying the
received header to buffer.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-stub.c')
0 files changed, 0 insertions, 0 deletions