Re: [PATCH 6/7] virtio-net: Copy received header to buffer

2024-10-21 Thread Akihiko Odaki
On 2024/10/21 17:22, Jason Wang wrote: On Mon, Oct 21, 2024 at 4:21 PM Jason Wang wrote: On Sun, Sep 15, 2024 at 9:07 AM Akihiko Odaki wrote: 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

Re: [PATCH 6/7] virtio-net: Copy received header to buffer

2024-10-21 Thread Jason Wang
On Mon, Oct 21, 2024 at 4:21 PM Jason Wang wrote: > > On Sun, Sep 15, 2024 at 9:07 AM Akihiko Odaki > wrote: > > > > 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. > >

Re: [PATCH 6/7] virtio-net: Copy received header to buffer

2024-10-21 Thread Jason Wang
On Sun, Sep 15, 2024 at 9:07 AM Akihiko Odaki wrote: > > 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 > --- > hw/net/virtio-net.c | 85

[PATCH 6/7] virtio-net: Copy received header to buffer

2024-09-14 Thread Akihiko Odaki
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 --- hw/net/virtio-net.c | 85 + 1 file changed,