Ticket #320 (closed enhancement: worksforme)

Opened 6 months ago

Last modified 6 months ago

Patch on 3.3.1 version - substitute ip addresses

Reported by: anonymous Owned by: aturner
Priority: low Milestone: Future Release
Component: tcpreplay Version: 3.3.1
Keywords: substitute IP Cc:
Operating System: Linux Add to FAQ?: no
Hardware: All
Output of tcpreplay -V: tcpreplay version: 3.3.1 (build 2033) Copyright 2001-2008 by Aaron Turner <aturner at synfin dot net> Cache file supported: 04 Not compiled with libnet. Compiled against libpcap: 0.7.2 64 bit packet counters: enabled Verbose printing via tcpdump: disabled Packet editing: disabled Fragroute engine: disabled

Description

Dear all

this patch adds a new --subst ip1:ip2 enabling to substitute an ip1 by ip2.

I believe this need a deep revision by someone with more expertise. By now, for me it works OK.

Here comes the patch.

Best Regards, Fernando

Attachments

patch (6.4 KB) - added by anonymous 6 months ago.
the patch

Change History

Changed 6 months ago by anonymous

the patch

Changed 6 months ago by aturner

  • status changed from new to closed
  • resolution set to worksforme

Hi Fernando,

Unless I misunderstand, the patch and your description, the same effect can be accomplished using the --pnat option. Say you want to rewrite 1.1.1.1 to be 2.2.2.2: --pnat=1.1.1.1/32:2.2.2.2/32

As this patch adds no new functionality, I'm unlikely to accept it. If I'm confused about this patch's purpose, please let me know.

-Aaron

Changed 6 months ago by Fernando

It's OK, I didn't know that. I'm going to change my scripts in order to use pnat instead of subst.

Thanks

Add/Change #320 (Patch on 3.3.1 version - substitute ip addresses)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.