Skip to content
Snippets Groups Projects
  1. Feb 14, 2022
    • Thomas Jansen's avatar
      net/eth: Don't consider ESP to be an IPv6 option header · 9d6267b2
      Thomas Jansen authored
      The IPv6 option headers all have in common that they start with some
      common fields, in particular the type of the next header followed by the
      extention header length. This is used to traverse the list of the
      options. The ESP header does not follow that format, which can break the
      IPv6 option header traversal code in eth_parse_ipv6_hdr().
      
      The effect of that is that network interfaces such as vmxnet3 that use
      the following call chain
        eth_is_ip6_extension_header_type
        eth_parse_ipv6_hdr
        net_tx_pkt_parse_headers
        net_tx_pkt_parse
        vmxnet3_process_tx_queue
      to send packets from the VM out to the host will drop packets of the
      following structure:
        Ethernet-Header(IPv6-Header(ESP(encrypted data)))
      
      Note that not all types of network interfaces use the net_tx_pkt_parse
      function though, leading to inconsistent behavior regarding sending
      those packets. The e1000 network interface for example does not suffer
      from this limitation.
      
      By not considering ESP to be an IPv6 header we can allow sending those
      packets out to the host on all types of network interfaces.
      
      Fixes: 75020a70 ("Common definitions for VMWARE devices")
      Resolves: https://gitlab.com/qemu-project/qemu/-/issues/149
      Buglink: https://bugs.launchpad.net/qemu/+bug/1758091
      
      
      Signed-off-by: default avatarThomas Jansen <mithi@mithi.net>
      Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
      9d6267b2
  2. Mar 22, 2021
  3. Nov 11, 2020
  4. Jun 12, 2019
    • Markus Armbruster's avatar
      Include qemu-common.h exactly where needed · a8d25326
      Markus Armbruster authored
      
      No header includes qemu-common.h after this commit, as prescribed by
      qemu-common.h's file comment.
      
      Signed-off-by: default avatarMarkus Armbruster <armbru@redhat.com>
      Message-Id: <20190523143508.25387-5-armbru@redhat.com>
      [Rebased with conflicts resolved automatically, except for
      include/hw/arm/xlnx-zynqmp.h hw/arm/nrf51_soc.c hw/arm/msf2-soc.c
      block/qcow2-refcount.c block/qcow2-cluster.c block/qcow2-cache.c
      target/arm/cpu.h target/lm32/cpu.h target/m68k/cpu.h target/mips/cpu.h
      target/moxie/cpu.h target/nios2/cpu.h target/openrisc/cpu.h
      target/riscv/cpu.h target/tilegx/cpu.h target/tricore/cpu.h
      target/unicore32/cpu.h target/xtensa/cpu.h; bsd-user/main.c and
      net/tap-bsd.c fixed up]
      a8d25326
  5. Jul 31, 2017
  6. Mar 06, 2017
  7. Jul 18, 2016
  8. Jun 02, 2016
  9. Feb 04, 2016
    • Peter Maydell's avatar
      net: Clean up includes · 2744d920
      Peter Maydell authored
      
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      
      Signed-off-by: default avatarPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-11-git-send-email-peter.maydell@linaro.org
      2744d920
  10. Jul 27, 2013
  11. Mar 25, 2013
Loading