mirror of
https://github.com/mii443/qemu.git
synced 2025-08-31 11:29:26 +00:00
hw/net: Added plen fix for IPv6
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1708065 With network backend with 'virtual header' - there was an issue in 'plen' field. Overall, during TSO, 'plen' would be changed, but with 'vheader' this field should be set to the size of the payload itself instead of '0'. Signed-off-by: Andrew Melnychenko <andrew@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
@ -186,6 +186,7 @@ struct tcp_hdr {
|
||||
|
||||
#define ip6_nxt ip6_ctlun.ip6_un1.ip6_un1_nxt
|
||||
#define ip6_ecn_acc ip6_ctlun.ip6_un3.ip6_un3_ecn
|
||||
#define ip6_plen ip6_ctlun.ip6_un1.ip6_un1_plen
|
||||
|
||||
#define PKT_GET_ETH_HDR(p) \
|
||||
((struct eth_header *)(p))
|
||||
|
Reference in New Issue
Block a user