Ticket #379 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

Enhancement: Add legacy tcpreplay 2.3.5 options in tcpreplay 3.4.1

Reported by: bwbrown Owned by: aturner
Priority: low Milestone: 3.4.1
Component: tcpreplay Version: 3.4.0
Keywords: Cc: rbrown@…
Operating System: Linux Add to FAQ?: no
Hardware: Other
Output of tcpreplay -V: tcpreplay version: 2.3.5 Cache file supported: 04 Compiled against libnet: 1.1.2.1 Compiled against libpcap: 0.9.7 Not compiled against libpcapnav. Using tcpdump located in: /usr/sbin/tcpdump tcpreplay for 3.4 tcpreplay version: 3.4.0 (build 2145) Copyright 2001-2009 by Aaron Turner <aturner at synfin dot net> Cache file supported: 04 Not compiled with libdnet. Compiled against libpcap: 0.7.2 64 bit packet counters: enabled Verbose printing via tcpdump: disabled Packet editing: disabled Fragroute engine: disabled Injection method: PF_PACKET send()

Description

What I am specifically looking for is an option that existed in 2.3.5: -T Truncate packets > MTU so packets can be sent It would also be nice to have options such as:

-e <ip1:ip2> Specify IP endpoint rewriting

-I <mac> Rewrite dest MAC on primary interface

-J <mac> Rewrite dest MAC on secondary interface

-s <seed> Randomize src/dst IP addresses w/ given seed

These options provide a great degree of flexibility without the need to use cache files or tcprewrite to go through firewalls and routers.

Change History

comment:1 Changed 3 years ago by aturner

  • Status changed from new to closed
  • Resolution set to worksforme

packet editing is available in 3.3.x/3.4.x when you use ./configure --enable-tcpreplay-edit as documented in the wiki & README.

In 3.4.1 onwards, there will be a separate tcpreplay-edit binary built (see #372)

comment:2 Changed 3 years ago by aturner

  • Status changed from closed to reopened
  • Resolution worksforme deleted

Re-opening to track -T feature. Oops.

Note: -I/-J always did and still require a cache file to split traffic.

comment:3 Changed 3 years ago by aturner

(In [2211]) add mtu truncate feature back. refs #379

comment:4 Changed 3 years ago by aturner

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [2212]) merge r2211 from 3.4 to trunk. fixes #379

comment:5 Changed 3 years ago by aturner

This fix might have some unexpected results, so here's what you need to know:

  • If truncating IPv4 packets, then checksums (L3/L4) will be updated so that the packets appear valid
  • All other cases, the packets are just truncated- no checksum updates

comment:6 Changed 3 years ago by aturner

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:7 Changed 3 years ago by aturner

(In [2213]) little endian mtu truncate unit test. refs #379

comment:8 Changed 3 years ago by aturner

(In [2214]) merge r2213 to trunk. refs #379

comment:9 Changed 3 years ago by aturner

  • Status changed from reopened to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.