From: Simon T. <sim...@gm...> - 2016-09-16 15:45:37
|
Hi Aaron, Thanks for the info. I was able to do what I needed by hacking tcpedit.c, but I am curious - would it be much work to further modify it so the packets are edited immediately prior to sending, rather than prior to delaying? I'm going to take a quick look to see, but you perhaps know off the top of your head. Thanks, Simon. On Thu, Sep 15, 2016 at 7:59 PM, Aaron Turner <syn...@gm...> wrote: > Hey Simon, > > Basically, if you're using tcpreplay-edit each packet is edited prior > to the delay before sending. What that means is that if you're > sending packets as fast as possible (delay=0) then the timestamp > should closely match when the packet is actually sent. However, if > you are sending packets at a slower rate, then there will be a > difference equal to the delay. > -- > Aaron Turner > https://synfin.net/ Twitter: @synfinatic > Those who would give up essential Liberty, to purchase a little temporary > Safety, deserve neither Liberty nor Safety. > -- Benjamin Franklin > > > On Thu, Sep 15, 2016 at 5:40 PM, Simon Thornington > <sim...@gm...> wrote: > > Hi all, > > > > I am interested in running a tcpreplay where, just prior to sending the > > packets, I rewrite some timestamps in the interior of the UDP payloads. > I > > need this timestamp rewrite to happen as close as possible prior to > sending > > the frame out the interface. Is this when tcpreplay-edit plugins are > > invoked? Or are they invoked prior to some intermediate buffering to the > > outbound interface? (as appears to be the case with solar_replay for > > solarflare cards). > > > > Thanks, > > > > Simon. > > > > ------------------------------------------------------------ > ------------------ > > > > _______________________________________________ > > Tcpreplay-devel mailing list > > Tcp...@li... > > https://lists.sourceforge.net/lists/listinfo/tcpreplay-devel > > > > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Tcpreplay-devel mailing list > Tcp...@li... > https://lists.sourceforge.net/lists/listinfo/tcpreplay-devel > |