[英]Use tcpreplay .pcap with raw packet data fail
我正在使用 tcpreplay 從.pcap
文件中為我的實驗生成流量。 更具體地說,我正在使用來自ISCX-VPN-NONVPN-2016
公共數據集的文件。
但是,我在重新傳輸加密流量時遇到了問題,因為它們顯示了 L2 Raw packet data
字段,如圖所示。
當我嘗試中繼流量時顯示以下錯誤:
~ # 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.