hw/net/net_tx_pkt: Align l3_hdr
commit2a5f744ef200c02b10775b92c7c82e40558cc413
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Fri, 24 Mar 2023 09:54:34 +0000 (24 18:54 +0900)
committerJason Wang <jasowang@redhat.com>
Tue, 28 Mar 2023 05:10:55 +0000 (28 13:10 +0800)
treee55d611cbeb7578a5f1a87315ac1a7fd42275ee8
parent4cf3a63849c24021bf5a023d94c797acbb89b5b8
hw/net/net_tx_pkt: Align l3_hdr

Align the l3_hdr member of NetTxPkt by defining it as a union of
ip_header, ip6_header, and an array of octets.

Fixes: e263cd49c7 ("Packet abstraction for VMWARE network devices")
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1544
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/net_tx_pkt.c