Skip to content

Network traffic dumping via netfilter

Thomas Huth qemu-devel 2 versions – Applied

Status from this message: Applied in https://github.com/jasowang/qemu/commits/net

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesApplied
  2. v15 patches 1 replySuperseded

Changes in v2 from the cover letter

- Only rebased to master branch (to suit the final version of the netfilter patches that are now merged into master)

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5net/dump: Add support for receive_iov functionnet/dump.c+21 -31 reply
2/5net/dump: Rework net-dump init functionsnet/dump.c+13 -141 reply
3/5net/dump: Separate the NetClientState from the DumpStatenet/dump.c+49 -251 reply
4/5net/dump: Provide the dumping facility as a net-filternet/dump.c vl.c+134 -21 reply
5/5options: Add documentation for filter-dumpqemu-options.hx+8 -00 replies

Reviews trailers per patch

4 of 5 patches have a Reviewed-by or Acked-by.

PatchYang Hongyang
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] Network traffic dumping via netfilter

The "-net dump" option only works with the "-net" option. So far, it is not possible to dump network traffic with the "-netdev" option yet. This patch series now fixes this ugliness by enabling dumping for the netdev devices via the new netfilter infrastructure from Yang Hongyang. The dumping filter can be used like this for example:

 ppc64-softmmu/qemu-system-ppc64 -device virtio-net,netdev=mynet \
     -netdev user,id=mynet,tftp=/tmp/tftp,bootfile=zImage \
     -object filter-dump,id=f0,netdev=mynet,file=/tmp/dumpfile.dat

Changes in v2:
- Only rebased to master branch (to suit the final version of the netfilter patches that are now merged into master)

Thomas Huth (5):
net/dump: Add support for receive_iov function net/dump: Rework net-dump init functions net/dump: Separate the NetClientState from the DumpState net/dump: Provide the dumping facility as a net filter
options: Add documentation for filter-dump

 net/dump.c      | 228 ++++++++++++++++++++++++++++++++++++++++++++++++--------
 qemu-options.hx |   8 ++
 vl.c            |   7 +-
 3 files changed, 212 insertions(+), 31 deletions(-)
Signature · 1 line
1.8.3.1