2013-07-18 164 views
2

tcpreplay有其中,根據official FAQ's,調用與參數-T一個非常有用的特徵:tcpreplay:-T選項

分組長度(在這種情況下8892個字節)是大於所述 傳出接口上的最大傳輸單元(MTU)。 Tcpreplay 必須跳過數據包。或者,您可以指定-T選項tcpreplay將數據包截斷爲MTU大小,修復校驗和 並將其發送到

不幸的是,-T似乎是不同的man page東西:

-T string, --timer=string 
       Select packet timing mode: select, ioport, rdtsc, gtod, nano, abstime. This option may appear up to 1 times. The default string for this option is: 
        gtod 
       Allows you to select the packet timing method to use: 
       nano - Use nanosleep() API 
       select - Use select() API 
       ioport - Write to the i386 IO Port 0x80 
       rdtsc - Use the x86/x86_64/PPC RDTSC 
       gtod [default] - Use a gettimeofday() loop 
       abstime - Use OS X's AbsoluteTime API 

有這個選項被在較新版本的tcpreplay的去除

回答

2

是的,它被分成tcprewrite(轉換捕獲文件),然後這些選項合併回命令tcpreplay-edit

看起來你可能需要相當於這個-T選項選項-C--mtu-trunc(+ --mtu=n如果你不是一個標準的1500交易)很可能,你需要-F如果這個問題是在收集時間。

下面是從FAQ

它與tcprewrite寫的更詳細的描述,但它應該工作以同樣的方式與tcpreplay-edit