Hi, This tool is exactly what I need to test a UDP-based monitoring daemon, however I am having trouble getting the OS kernel to accept replayed packets. I could not find a discussion on the README or FAQs, so I assume I'm just doing it wrong.
Problem: my packet trace can be replayed, tcpdump shows it going out
of the sender's interface just fine (the sender is OS X), but the
receiving node does not receive them, i.e. tcpdump is silent (the
receiver is Linux/Fedora 12 x86_64).
A simple capture and replay of a 10-packet trace between the two hosts
works fine. I can change the port using tcpreplay and it works fine as
well. I have attached the trace that does not play correctly.
I apply the tcprewrite command below, then send them. There are no
errors in either. Somehow the kernel/network does not register the
re-written packets as worthy of reaching the dst host. Hmm. Any help
would be appreciated, I apologize if this report is vague.
CMDS
tcprewrite \
--infile=$infile \
--fixlen=trunc \
--enet-vlan=del \
--portmap=8649:8669 \
--enet-dmac=$dst_mac \
--dstipmap=0.0.0.0/0:${dst_addr}/32 \
--outfile=output.pcap
$ sudo tcpreplay --intf1=en1 output.pcap
VERSION
$ tcpreplay -V
tcpreplay version: 3.4.4 (build 2450)
Copyright 2000-2010 by Aaron Turner <aturner at synfin dot net>
Cache file supported: 04
Compiled against libdnet: 1.12
Compiled against libpcap: 1.0.0
64 bit packet counters: enabled
Verbose printing via tcpdump: enabled
Packet editing: disabled
Fragroute engine: enabled
Injection method: PF_PACKET send()
ganglia-antonapp-packets.30-May-2010.tcpdump
Description: Binary data
------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________ Tcpreplay-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tcpreplay-users Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
