Dear,

I created un pcap file with scapy  :

a=Ether()/IP(dst="anip")/UDP(sport=RandShort(),dport=53)/DNS(rd=1,qd=DNSQR(qname="adomain",
qtype="A"))
p=[]
for i in range(0,100000):
        p.append(a)
        
wrpcap("file.pcap",p)

I can replay packet with option --pps.

Now i need to send packets with an affine rate like this :
rate = a.t
Where :
-rate = the rate in pps
-a=a coefficient (float/integer)
-t=the time in second

Is it possible to do this with tcpreplay ?
Or, do i need to set the time with scapy and uses option --time=abstime ?

Thanks

-- 
Yohann L.
http://www.2xyo.info
Breizh Entropy Congress - Créativité et Technologies Libres
du 15 au 17 Avril 2010 à Rennes http://www.breizh-entropy.org

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to