]> git.proxmox.com Git - mirror_qemu.git/commit - net/dump.c
net: Strip virtio-net header when dumping
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 23 Feb 2023 10:20:05 +0000 (19:20 +0900)
committerJason Wang <jasowang@redhat.com>
Fri, 10 Mar 2023 07:35:38 +0000 (15:35 +0800)
commit481c52320a26e2e3a3c8a1cdac3d1460b9b15d13
tree323d5a1bc1cb1c332954cee1e0d0c193ce209a87
parentd921db0ae937cfa5935ae505f3c77a46dd505265
net: Strip virtio-net header when dumping

filter-dump specifiees Ethernet as PCAP LinkType, which does not expect
virtio-net header. Having virtio-net header in such PCAP file breaks
PCAP unconsumable. Unfortunately currently there is no LinkType for
virtio-net so for now strip virtio-net header to convert the output to
Ethernet.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/net.h
net/dump.c
net/net.c
net/tap.c