簡體   English   中英

對原始數據包數據使用 tcpreplay.pcap 失敗

[英]Use tcpreplay .pcap with raw packet data fail

我正在使用 tcpreplay 從.pcap文件中為我的實驗生成流量。 更具體地說,我正在使用來自ISCX-VPN-NONVPN-2016公共數據集的文件。

但是,我在重新傳輸加密流量時遇到了問題,因為它們顯示了 L2 Raw packet data字段,如圖所示。

沒有 L2 標頭的 pcap 文件

當我嘗試中繼流量時顯示以下錯誤:

~ # tcpreplay -i enp0s25 input.pcap
tcpreplay: flows.c:204: flow_decode: Assertion `l2len > 0' failed.
Aborted (core image recorded)

在這種情況下,有沒有辦法添加以太網標頭以避免此錯誤?

我使用 Tcpreplay 4.4.2-beta解決了這個問題。 此版本 此版本僅修復錯誤。 其中之一是heap-buffer-overflow in get_l2len_protocol()

現在它完美地工作了。

tcpreplay -i enp0s25 input.pcap 
Actual: 422098 packets (369433883 bytes) sent in 224.07 seconds
Rated: 1648722.3 Bps, 13.18 Mbps, 1883.75 pps
Flows: 922 flows, 4.11 fps, 422098 flow packets, 0 non-flow
Statistics for network device: enp0s25
    Successful packets:        422098
    Failed packets:            0
    Truncated packets:         0
    Retried packets (ENOBUFS): 0
    Retried packets (EAGAIN):  0

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM