Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/nplab/packetdrill. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer or owner.
Last successful update .
  1. Dec 28, 2014
    • Michael Tüxen's avatar
      Fix alignment of headers in the packet buffer · a9e2e535
      Michael Tüxen authored
      
      This patch makes sure that all heaaders start at a four byte
      boundary. This is done by not having the ethernet header, which
      is 14 bytes long, in the packet buffer.
      This fixes the remote mode for platforms having strict alignment
      restrictions, like ARM. Without this patch you can't use the remote
      mode on a Rasperry Pi running FreeBSD.
      This patch has been tested on Linux (Intel) in local and remote mode
      and one FreeBSD (Intel and ARM) in local and remote mode.
      
      Signed-off-by: default avatarMichael Tuexen <tuexen@fh-muenster.de>
      a9e2e535
  2. May 09, 2014
    • Neal Cardwell's avatar
      net-test: packetdrill: read outbound packets from tun device · d799c219
      Neal Cardwell authored
      In local mode, read the outbound packets from the tun device.
      
      A recent Linux patch "tcp: avoid retransmits of TCP packets hanging in
      host queues" means that TCP behavior now depends on whether and when
      the network device (tun device here) consumes the packets. We now read
      all these packets so that the kernel can exercise its normal code
      paths for packet transmit completion.
      
      An alternative approach would be to set the tun txqueuelen to 0, but
      this would impact qdisc behavior. It is more realistic, and has fewer
      side-effects, to make sure the network device has a non-zero queue
      length, but packets are still consumed.
      
      Change-Id: Ia922994d4eeea12e61d7876b4c4ef34bc9cef34e
      d799c219
  3. Jan 24, 2014
    • Neal Cardwell's avatar
      net-test: packetdrill: fix bug in remote mode packet sniffing direction · 05737427
      Neal Cardwell authored
      Fix wire_server_netdev_receive() to reflect the fact that in remote
      mode the server is sniffing packets that are inbound (whereas in local
      mode we are sniffing *outbound* packets).
      
      This was a bug introduced in "net-test: packetdrill encap
      support: refactor packet receive loops into one loop".
      
      Remote mode has been broken since the addition of encapsulation
      support, partly due to this issue.
      
      Change-Id: Ia92f70f48ae90cb2e089ee51d728473a12c63595
      05737427
  4. Nov 28, 2013
  5. Jun 26, 2013
Loading